Documentation - Chatbot Embed
OpenAssistantGPT Chatbots.
When embeding a chatbot there is one way to do it and it is to use IFRAME tags in HTML. You can find the code to add on your website when you click on a chatbot options.
Note: When you add a chatbot make sure it at the root of the body tags and there is no div with custom CSS around it because it may break the chatbot.
Parameters
Client Side Prompt
We offer different feature when embedding a chatbot like client side prompt.
Adding a client-side prompt override feature to a chatbot makes it more user-friendly and flexible. With this feature, users can temporarily change how the chatbot behaves and responds to better suit their specific needs or situations. This customization happens on the user's side and doesn't affect the main settings of the chatbot on the server.
Here's how it works:
Note: This feature shouldn't not be used for user authentication it doesn't provide any security on the content since anyone change change the prompt client side.
Default Message
Default messages are pre-defined text that can be added to the user input field, saving the user from having to type it manually. These messages are set within the IFRAME URL, making them fully dynamic and customizable via JavaScript.
Here's how it works:
Note: You have to add %20 for every spaces and encode any other character for a better result.