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 "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?
1.Navigate to Channels > Chat widget > Widget panel.
2. Expand Font drop-down and select your preffered 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?
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?
* 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>
)
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](https://cloud.yellow.ai) > 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", "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";
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?
Banners can used to alert the 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 th 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 && 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?
1.Write a custom script to override the position.
2. Hide the default icon and create a custom entry point or button on the site. Use the window.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 can be changed dynamically based on website?
`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
}
For the mobile SDK, you need to send the values as mentioned below:
let theme = YMTheme()
theme.botName = ""
theme.botDesc = ""
theme.primaryColor = ""
theme.secondaryColor = ""
theme.botIcon = ""
config.theme = theme
Note: botClickIcon is not applicable for Mobile SDKs since the entry point will be set within the app. On the website, botClickIcon refers to the floating icon displayed when the bot is minimized.
PWA related FAQs
Is it possible to change the short cut icon for PWA bot?
* Mobile: 192*192
* Desktop: 512*512.
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?
Chat history related FAQs
Is it possible to auto-delete conversations between the user and the bot after 48 hours?
Is it possible to share the same chat session history across PWA and mobile SDK if a script is used to integrate the chatbot?
On PWA, you can use the same ymAuthenticationToken that you used on the mobile SDK. You can add the same ymAuthenticationToken at the end of the PWA URL to get the same chat session history.
https://cloud.yellow.ai/pwa/v2/live/<your_bot_id>?ymAuthenticationToken=<your_user_token>
window.ymConfig = {
ymAuthenticationToken: "your_unique_token"
}
How do we add ymAuthenticationToken to the PWA script so that we can see the same chat history in the PWA and mobile SDK?
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 possible to display image and text in a single 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?
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, it is possible to close the conversation and trigger a journey?
Add talk to bot button using the function
The following is the sample function:
array = [{
title: 'Wish to end your chat with our Live Agent',
options: [
{
title: 'End Chat', text: "talk to bot"
}
]
}]
event : ui-event-update-promotion
To add the banner text for the talk to bot button, follow these steps:
1. Navigate to Studio > Conversation settings > Callout banner.
2. Enter the title and button name. Click Update.
• The callout banner will be updated accordingly.
Is it possible to block users from copying bot them and pasting messages in the text field?
window.ymConfig = {"bot":"x1657623696077","host":"https://cloud.yellow.ai", "disableCopyPaste": true};
How to disable users from clicking on images in the carousel node?
window.ymConfig = {"bot":"x1657623696077","host":"https://cloud.yellow.ai", "disableCardImageClick": true};
Can I hide the chat separator when an agent is connected to the bot?
window.ymConfig = {"bot":"x1657623696077","host":"https://cloud.yellow.ai", "hideTransferEvent": true };