Element
Text messages are the building blocks of a chatbot, but we often want to send more than just text to the user such as images, videos, and more.
That is where elements come in. Each element is a piece of content that can be attached to a Message or a Step and displayed on the user interface.
Text Element
Ideal to display RAG sources.
Image Element
Ideal to display generated images.
PDF Element
Ideal to display RAG sources.
More Elements
The complete list of elements you can display on the user interface.
Example
To attach an element to a message or step, we need to:
- Instantiate the element
- Attach the element to a message or step
Display Options
There are 3 display options that determine how an element is rendered:
Side
The image will not be displayed in the message. Instead, the name of the image will be displayed as clickable link. When the user clicks on the link, the image will be displayed on the side of the message.
Page
The image will not be displayed in the message. Instead, the name of the image will be displayed as clickable link. Clicking on the link will redirect to a dedicated page where the image will be displayed.
Inline
The image will be displayed below with the message regardless of whether the image name is referenced in the message content.
Was this page helpful?