Chatbot
Learn how to embed a chatbot component with Libraria AI.
Chatbot
When the user clicks on any type of Chatbot button, the same chatbot interface will be shown.
Chatbot Interface. Button and pop up. It goes in full width on Mobile.
There are 2 types of Chatbot embeddings.
Chatbot with Default Button
Features a small, circular button which is typically located in the bottom right corner of the webpage to access the assistant.
Chatbot with the Default Libraria Button
To embed the chatbot with user options, copy the code snippet and follow the instructions below:
- The
key
is used used for authenticating and accessing the assistant. Add quotation marks around the key when you paste it.
- After enclosing the key in quotation marks. Make sure that the
name
,email
, anduserId
must be filled with the actual user information they represent.
Chatbot with Custom Styled Button
Provides you with the flexibility to customize the appearance of the button used to access the chatbot.
Chatbot with Custom Styled Button
To embed the chatbot custom styled button, use the following code snippet.
You can change the image of the button by replacing the link in the src
attribute of the <img>
tag. You can also customize its size by changing the values of the width
and height
attributes.