Can i embed my Chatbot into my App

Good day all, Please, can i embed my chatbot into my app or embed any other pop up into the app?

1 Like

You should be able to with a webview component as long as the site you are embedding does allow itself to be embedded.

2 Likes

Thank you…but how do I embed…which function on Glide column can I use

You use a webview component on the screen. You can use any column, such as a text column or a link column. All you are doing is storing the url for your chat bot in a column. Then the web view component points to that column that contains the url. You can even place the url directly into the web view component settings by selecting ‘custom’. Then you wouldn’t need a column at all.


image

2 Likes

Ok sir, but just one more confusion. You know, chatbots come with a code snippet like the one below, that’s the bot i want to embed in my app

<script>
  window.watsonAssistantChatOptions = {
      integrationID: "********-****-****-****-************", // The ID of this integration.
      region: "eu-gb", // The region your integration is hosted in.
      serviceInstanceID: "********-****-****-****-************", // The ID of your service instance.
      onLoad: function(instance) { instance.render(); }
    };
  setTimeout(function(){
    const t=document.createElement('script');
    t.src="https://web-chat.global.assistant.watson.appdomain.cloud/versions/" + (window.watsonAssistantChatOptions.clientVersion || 'latest') + "/WatsonAssistantChatEntry.js"
    document.head.appendChild(t);
  });
</script>

Your code wasn’t showing up in your post because it wasn’t enclosed in code blocks. I fixed that for you so it shows now. I also hid your ID’s. I’m not sure if you wanted those to be shared with everyone.

Looks like you are trying to embed JavaScript. Glide will not allow that. If the chatbot provides an iframe embed option, then that would maybe work better. If not, then in some cases you can iframe embed a seperate website that contains the script. If the script you provided above is the only option, then I would look into using a third party web host that can host that on an embeddable web page, and then try to embed that page into your app using the webview component.

2 Likes

Ya…you’ll need to find an embeddable chatbot…landbot is one such chatbot:

3 Likes

You could also find a web-page builder with an Embed Code function to embed the bot’s JavaScript, then use the url of that web-page in your webview component inside of Glide.

5 Likes

This works…I’ve done this with Twitter widgets before…

4 Likes

I tried Joonbot and it works well :slight_smile:

2 Likes