Chat widget FAQs
Setup page related FAQs
Chatbot is auto-scrolling upwards after navigating to a different tab by clicking the URL from the chatbot. How to resolve this issue?
How to enable chat history conversation?
For cloud.yellow.ai platform, ensure that Show history of the conversation is enabled.

For app.yellowmessenger.com
or app.yellow.ai
platform, ensure that Reset Context for every load checkbox is unchecked in the dashboard settings.

Note: If you want to maintain a history across devices or browsers, you can create an authentication token, which is a unique token, and pass it in the given format, as shown below:
if (userIsAuthenticated) {
// replace this with your own auth logic and reload the bot with new info.
window.YellowMessengerPlugin.init({
ymAuthenticationToken: 'Your_Unique_token'
});
window.YellowMessengerPlugin.show(); // display the bot icon
}
Is it possible to change the chat widget background colour for bot and agent messages?
How to change the font size in the widget?
To change the font size in the widget, follow these steps:
-
Navigate to Channels > Chat widget > Widget panel.
-
Expand Font drop-down and select your preferred font size and click Save changes.
Can we change the color scheme of the chat header gradient from top to bottom?
Is it possible to block the users from uploading specific attachment formats?

Chat widget related FAQs
How to resolve a website performance issue after installing the bot?

Why is the bot not displaying or loading any of the configured messages?
Is it possible to deploy two bots on a single website?
How to set the position of the bot dynamically?
alignLeft:true
inside ymConfig of the chatbot script on the respective webpage.Does the Chat widget or PWA contain a pop-up component?
Is drop-down option supported in the Chat widget?
Is it possible to integrate the Yellow AI chatbot with a NextJS website?
Yes, you can add the script to any NextJS page. To do so:
- Create a file called
static/yellowai.js
and paste our script. Note: You need to remove the<script>
tags. - You can now load this file on your page's
.jsx
or.tsx
file.
import Head from 'next/head';
import MyComponent from '../components/mycomponent';
export default () => (
<div>
<Head>
<script type="text/javascript" src="/static/yellowai.js"></script>
</Head>
<MyComponent />
</div>
)
Is the React SDK supported for the web widget?
Is it possible to change the language of the weekdays displayed on the Chat Widget
How to disable the like and dislike buttons shown under the chats in the chat widget (PWA)?
Is it possible to remove the user's button selection from the list or quick replies in chatbot?
• Providing feedback: When a user selects an option/sends a message, they expect feedback in response. By displaying the messages, users will know that their message has been received.
• Transparency: When a user message is displayed, it builds trust between the user and the chatbot.
• Clarification: At times, the bot may not understand the context of the user's message. Displaying the message in such instances will be essential.
Why does a blank space appear when scrolling in the widget?

Is it possible to hide the chat widget icon on the website?
Yes, use "window.YellowMessengerPlugin.hide()" function to hide the icon of the chat widget on the website.
Can we pass data to the widget for every page of the website?
Is it possible to configure the position of the bot to be on right when the user selects Arabic and to the left when the user selects English?
How can we change the font color in the bot name and description?
Does the chat widget support HTML tags?
)
Does the chat widget automatically aligns the text based on the selected language?
Note: If a text message contains both languages, the text will be aligned based on the language set in the bot at the respective step.

Does the chat widget support auto-complete feature?
• You need to enable auto complete in Yellow.ai Platform > Channels > Chat widget > Settings > enable Auto complete > click Save changes. For more information, click here
)
• Navigate to Automation > select a flow > click on the respective node > click Make prompt smarter. For more information, click here.
How to disable Message feedback?
)
How to restrict users from clicking on carousel card buttons repeatedly?
)
How to deploy a website bot on sites.google.com?
Navigate to the admin portal of your Google site > Add an Embed block > Select Embed code > Paste the bot script > Click Next.
)
The bot will be deployed on sites.google.com.
)
Is it possible to deploy a bot in multiple locations on a website or Mobile SDK?
window.YellowMessengerPlugin.init({bot: '<botId>'})
Note that, this will replace the previously loaded bot. On Mobile SDK, if you want to maintain a separate session and history for each order, you need to pass the ymAuthToken parameter. Ensure that these approaches allow you to manage different instances of the bot, but only one bot can be active at a time.
How long will the session be active in the chat widget?
By configuring the session duration according to your specific requirements, you can ensure that users have an adequate amount of time to interact with the chat widget before the session expires.
If you have any additional questions or need further assistance, contact our support team
When you receive new messages from a bot or agent, how do you enable scroll behaviour for the chat widget?
Navigate Channels > Chat widget > Settings > expand General settings > Scroll behaviour.
)
Under Scroll behavior, choose your preferred option:
• Bottom: Select this option to scroll the widget automatically to the bottom of the new message.
• Top: Select this option to scroll the widget automatically to the top of the new message.
• Off: Select this option to disable scrolling, the widget will remain at the same message when a new message is received.

Is it possible to drag the chatbot icon and place it anywhere on the website?
<script type="text/javascript">
window.ymConfig = {"bot":"x1657623696077","host":"[https://cloud.yellow.ai](https://cloud.yellow.ai)", "floatingIcon":true};
(function() {
var w = window,
ic = w.YellowMessenger;
if ("function" === typeof ic) ic("reattach_activator"), ic("update", ymConfig);
else {
var d = document,
i = function() {
i.c(arguments)
};
function l() {
var e = d.createElement("script");
e.type = "text/javascript", e.async = !0, e.src = "[https://cdn.yellowmessenger.com/plugin/widget-v2/latest/dist/main.min.js](https://cdn.yellowmessenger.com/plugin/widget-v2/latest/dist/main.min.js)";
var t = d.getElementsByTagName("script")[0];
t.parentNode.insertBefore(e, t)
}
i.q = [], i.c = function(e) {
i.q.push(e)
}, w.YellowMessenger = i, w.attachEvent ? w.attachEvent("onload", l) : w.addEventListener("load", l, !1)}
})();
</script>
Is it possible to minimise the callout banner?

How to load the callout banner dynamically in the middle of a chat?
A callout banner allows you to add a banner to the chatbot's conversation. Before starting a chat with the user, the callout banner is shown at the top of the chat window with a description of the chatbot’s purpose. To know more, click here.
Banners can be used to alert users about new products, services, special offers, and promotions.
How to load the callout banner dynamically in the middle of a chat?
A callout banner allows you to add a banner to the chatbot's conversation. Before starting a chat with the user, the callout banner is shown at the top of the chat window with a description of the chatbot’s purpose. To know more, click here.
Banners can be used to alert users about new products, services, special offers, and promotions.
If the V1 bot consists of a banner and you want to move to V2 dynamically in the middle of the chat conversation, then you need to add a function to display the same banner in V2.
While migrating from V1 to V2, use the following function code to copy the banner from V1 to V2:
return new Promise(async (resolve, reject) => {
try {
app.log(app.profile, "in profile");
if (
app.profile &&
app.profile.payload &&
app.profile.payload.widgetVersion === "v2"
) {
await app.sendEvent({
code: "ui-event-update-promotion",
data: [
{
title: app.renderMessage('indiatour', {}, ''),
options: [
{
title: app.renderMessage('activate_now', {}, 'Activate Now'),
text: "activate channel"
}
]
},
{
title: app.renderMessage('promotion_2', {}, ''),
options: [
{
title: app.renderMessage('download_now', {}, 'Download Now'),
url: "https://watcho.onelink.me/eyNf/4plou2wu"
}
]
},
{
title: app.renderMessage('promotion_3', {}, ''),
options: [
{
title: app.renderMessage('subscribe', {}, 'Subscribe'),
text: 'Subscribe'
}
]
}
]
});
} else {
await app.sendEvent({
code: "ui-event-update-promotion",
data: {
quickReplies: [
{
title: app.renderMessage('indiatour', {}, ''),
options: [
{
title: app.renderMessage('activate_now', {}, 'Activate Now'),
text: "activate channel"
}
]
},
{
title: app.renderMessage('promotion_2', {}, ''),
options: [
{
title: app.renderMessage('download_now', {}, 'Download Now'),
url: "https://watcho.onelink.me/eyNf/4plou2wu"
}
]
},
{
title: app.renderMessage('promotion_3', {}, ''),
options: [
{
title: app.renderMessage('subscribe', {}, 'Subscribe'),
text: 'Subscribe'
}
]
}
],
autoPlay: true,
autoPlaySpeed: "4000",
hide: true,
showPromotionMessage: 'Hi! I am Dia, your <strong>d</strong>2h <strong>I</strong>ntelligent <strong>A</strong>ssistant.',
displayShowPromotionBar: true
}
});
}
return resolve();
} catch (e) {
app.log(e, 'error in showPromotion');
return resolve();
}
});

How to hide the home and input buttons when the user opens the chatbot for first time?
Is it possible to prevent the bot icon from overlapping with CTAs on mobile screens?
The following are the two options to prevent the bot icon from overlapping:
- Write a custom script to override the position.
Hide the default icon and create a custom entry point or button on the site.
Use thewindow.YellowMessengerPlugin.openBot()
function to open the bot when a user clicks on the custom button. For more information, click here.
Note that the chat bubble and notification icon will not be displayed if a custom icon is deployed.
Can the Bot title, description and logo be changed dynamically based on website?
Yes, you can configure different themes for different websites. Set a default theme in Channels > Chat Widget > Widget Panel/Bot icon
. Then, based on the user, you can override it on the web and mobile SDK.
For the web, you need to pass the following values inside window.ymConfig
in the bot script:
window.ymConfig = {
theme: {
botName: "", // Text up to 50 characters
botDesc: "", // Text up to 50 characters
primaryColor: "", // RGB or HEX value
secondaryColor: "", // RGB or HEX value
botIcon: "", // CDN link
botClickIcon: "" // CDN link
}
};
Is it possible to replace the close (X) button in the chat widget with a drop-down arrow button?
PWA related FAQs
Is it possible to change the short cut icon for PWA bot?
* Mobile: 192192
* Desktop: 512512.
Is it possible to customise the URL of the PWA bot?
Is it possible to pass the data from the URL to a widget?
Is it possible to integrate the Yellow AI chatbot with a NextJS website?
* Create a file called static/yellowai.js and paste our script. Note: You need to remove the tags.
* You can now load this file on page (page name). (jsx|tsx) file
import Head from 'next/head';
import MyComponent from '../components/mycomponent';
export default () => (
<div>
<Head>
<script type="text/javascript" src="/static/yellowai.js"></script>
</Head>
<MyComponent />
</div>
)
It is possible to automatically open PWA chatbot using chat widget functions?
Why is the date picker not working in the PWA bot, even though it works on the web bot?
* Channel support: Make sure you are testing on a supported channel. Some channels like WhatsApp do not support the date picker. PWA and Web do support it.
* Variable type: Ensure the date is being saved in a variable of type Object. If it is not, the date picker may not function as expected.
Chat history related FAQs
Is it possible to auto-delete conversations between the user and the bot after 48 hours?
How do we add ymAuthenticationToken to the PWA script so that we can see the same chat history in the PWA and mobile SDK?
You need to pass the ymAuthenticationToken in the URL as a query parameter.
https://cloud.yellow.ai/pwa/v2/live/<your_bot_id>?ymAuthenticationToken=<your_user_token>
General FAQs
How to trigger the closeBot() function when a specific flow ends or when you reach a specific node?
Is it possible to change the bot title and description when the bot switches from parent bot to child bot?
What to do if buttons are not loading on the parent website?
* cdn.jsdelivr.net (to load the font)
* https://cdn.yellowmessenger.com (to load buttons)
Is speech-to-text (STT) feature supported in the chat widget?
Is it possible to implement the callout banner for child bots and view them when the parent bot switches to child bots in the app?
Is it possible to remove the user's button selection from the list or quick replies in chatbot?
• Providing feedback: When a user selects an option/sends a message, they expect feedback in response. By displaying the messages, users will know that their message has been received.
• Transparency: When a user message is displayed, it builds trust between the user and the chatbot.
• Clarification: At times, the bot may not understand the context of the user's message. Displaying the message in such instances will be essential.
Can we have custom fonts for V2 web bots?
Is it possible to display image and text in a single node?
Yes, you can make use of a Generic card and not include any options in it. You need to include an image and a description. Store the function response in a variable of type array and connect it to a message carousel node.

Is it possible to configure customized icons for carousel (card) buttons?
Is it possible to update the token without refreshing the webpage?
Even though the agent is not connected to the bot, the app.yellowmessenger.com chatbot displays a green round circle, indicating that the agent is online. Is it possible to change the settings of the bot on the app platform?
Yes, on "app.yellowmessenger.com" or "app.yellow.ai" platform you can disable it in Configuration > Channels > Chat Widget > General > Show Dot Status in Title.

Is it possible to change the language of the bot whenever the user switches from one language to another on the website?
What are the minimum compatible versions of the browsers supported by the web widget?
• Edge 89 and later
• Firefox 70 and later
• Safari 10.1 and later
How to add the image in Quick Replies node?


When an agent is connected to the bot, is it possible to close the conversation and trigger a journey?
When an agent is connected to the bot, the bot will not trigger any flow. To trigger a particular flow and close the conversation, you need to add the "talk to bot" button in the Callout banner. You can add the button either from the UI or using the function.
Add talk to bot button using the function
The following is the sample function:
var array = [{
"title": "Wish to end your chat with our Live Agent",
"options": [
{
"title": "End Chat",
"text": "talk to bot"
}
]
}]
event: ui-event-update-promotion
Add Talk to bot button using Automation's Conversation settings
To add the banner text for the talk to bot button, follow these steps:
-
Navigate to Studio > Conversation settings > Callout banner. <img src="https://i.imgur.com/HBKYqOg.png"/\>
-
Enter the title and button name. Click Update. <img src="https://i.imgur.com/rorMtMu.png" alt="drawing" width="40%"/><img src="https://i.imgur.com/0qqQDEI.png" alt="drawing" width="40%"/>
The callout banner will be updated accordingly.
Is it possible to block users from copying bot them and pasting messages in the text field?
Yes, it is possible to block users from copying bot messages. To implement this, you need to pass disableCopyPaste: true
inside the the window.ymConfig
chatbot script.
window.ymConfig = {"bot":"x1657623696077","host":"[https://cloud.yellow.ai](https://cloud.yellow.ai)", "disableCopyPaste": true};
How to disable users from clicking on images in the carousel node?
To disable users from clicking on images in the carousel node, include disableCardImageClick: true
inside the window.ymConfig
chatbot script.
window.ymConfig = {"bot":"x1657623696077","host":"[https://cloud.yellow.ai](https://cloud.yellow.ai)", "disableCardImageClick": true};
Can I hide the chat separator when an agent is connected to the bot?
To hide the chat separator when an agent is connected to the bot, include hideTransferEvent: true
inside the window.ymConfig
chatbot script.
window.ymConfig = {"bot":"x1657623696077","host":"[https://cloud.yellow.ai](https://cloud.yellow.ai)", "hideTransferEvent": true };
How to retrieve the sender ID on a website if Yellow Messenger authentication is not passed?

How can I start a new conversation when my chat has stopped, and the intent is not working?
• Click the Home icon – This will reset the conversation and allow you to start fresh.Clear cache – Clearing your browser or app cache can help resolve issues caused by stored session data.