Chatbots
A chatbot is a conversational frontend for your agents. You define the set of agents it can call, give it a branded look and a few standard messages, then deploy it as a chat widget on Liferay DXP pages or external sites. Where an agent performs a single task, a chatbot handles a multi-turn conversation, coordinating its assigned agents to answer each message. It works like the AI Assistant supervisor, but scoped to the agents you assign it and deployed as a widget rather than running inside Liferay CMS.
Because a chatbot works through the agents you assign it, it draws on whatever data sources those agents use. Build the agents first, then create the chatbot that calls them.
Creating a Chatbot
Open Chatbots in the AI Hub left navigation to see your account’s chatbots and their status.

Click New Chatbot and complete the form:
-
Use the Enable Chatbot toggle to make the chatbot active.
-
Enter a Title and Description.
-
Enter a unique External Reference Code to identify the chatbot.
-
Set an Avatar for the chatbot: click Select File and choose a JPEG, JPG, or PNG image no larger than 500 KB. The form then shows the file name beside a Clear button. Click Clear to remove the image and restore the default icon. The avatar brands the chatbot in its deployed chat widget, in the chat header and beside each response.
-
In Assigned Agents, select the agents the chatbot can call. If the list is empty, create the agents first (see Agents).
-
Set the messages the widget shows visitors: Disclaimer Message, Intro Message, Notification Message, and Placeholder Message. You can format the Disclaimer Message and Intro Message with Markdown (see Formatting Messages with Markdown).
-
Add suggested questions for visitors to send when they open the chat (see Adding Suggested Questions).
-
Click Save.

The chatbot appears in the Chatbots list, where you can see its status and use its Actions (
) menu to view or delete it.
Adding Suggested Questions
To help visitors start a conversation, write suggested questions they can send instead of typing their own. You can add up to five questions to a chatbot, each up to 200 characters. A question must have text in the default language, and you can also provide translations.
-
In the chatbot form’s Suggested Questions panel, click Add Question.
-
Enter the question in the Question field. Optionally, use the language selector to provide translations.

-
Click Add, or click Save and Add Another to add another question.
-
Click Save on the chatbot form to save your changes.
Use a question’s Actions (
) menu to edit, move, or delete it. You can also drag rows to reorder them. The order determines how questions appear in the widget. In the question dialog, Clear removes the question’s text in every language.

In the chat widget, suggested questions appear as buttons below the intro message until the visitor sends a first message. If any questions are translated into the visitor’s language, only those appear. Otherwise, the questions appear in the default language.

Formatting Messages with Markdown
The Disclaimer Message and Intro Message fields accept GitHub Flavored Markdown, so you can format them with its syntax, such as bold text, links, and lists. For example, **Welcome** renders as bold text.
The widget renders Markdown this way:
-
A link opens in a new tab, so a visitor who follows one keeps the chat open.
-
A blank line starts a new paragraph.
-
The widget strips Markdown images from the text and does not honor pass-through HTML. Entering
<b>Welcome</b>renders with the tags shown.
The Notification Message and Placeholder Message fields are plain text, so Markdown in them appears literally. All four message fields can hold different text for each language.
If you leave the Disclaimer Message empty, the widget shows a default disclaimer in English:
AI generated responses may be inaccurate. Please review carefully.
Deploying a Chatbot
You can embed a saved chatbot directly with its generated code, or serve it through Liferay DXP’s Click to Chat. In both cases, visitors can rate or report chatbot replies with the thumbs up and thumbs down buttons. To review those ratings and reports, see Rating and Reporting AI Responses.
Embedding the Widget
To embed the chatbot in an external site,
-
Open the saved chatbot and copy its Chatbot Code snippet.
-
Paste the snippet into the HTML of the page where you want the chat widget.
The snippet loads the widget and connects it to your chatbot by its External Reference Code. To add the chatbot to a Liferay DXP site, use Click to Chat instead.
Serving the Chatbot Through Click to Chat
Liferay DXP’s Click to Chat feature can add the chatbot to a site without editing page HTML. To set it up,
-
Open Control Panel → Instance Settings → Content & Data → Click To Chat, and enable it.
-
Select AI Hub as the chat provider.
-
Enter the chatbot’s External Reference Code in the Chat Provider Account ID field.
For the general Click to Chat setup, see Enabling Automated Live Chat Systems.