Follow these steps to add the TailorTalk Widget to your website and customize its appearance and behavior.
Add Channels integration option.Website Channel.
Please enter your preferred settings and information in the widget configuration form and test the widget within it.

TailorTalk uses a configuration object with both top-level parameters and a nested options object for detailed customization.
| Parameter | Type | Default | Description | Required |
|---|---|---|---|---|
| widgetName | string | (to be filled) | Internal name or window title of the widget. | Yes |
| agentId | string | (to be filled) | Your unique Agent ID. | Yes |
| color | string | '#6366f1' | Widget primary color (hex code). | Yes |
| position | string | 'right' | Horizontal position of the widget ('left' or 'right'). | Yes |
| options | object | {} | Nested object for UI/UX customizations (see below). | No |
options object)| Parameter | Type | Default | Description |
|---|---|---|---|
| buttonIcon | string | 'bot' | Icon displayed on the widget button. |
| buttonText | string | 'Let's Chat' | Text displayed on the widget button. |
| welcomeMessage | string | (default message) | Initial greeting shown to users when they open the chat. |
| popupMessage | string | (empty) | Short teaser message shown in a bubble before the widget opens. |
| quickQuestions | string[] | [] | List of up to 3 short questions (max 55 chars each) for quick interactions. |
| askDetails | boolean | false | Toggle to collect user name and phone before chat. |
| defaultCountryCode | string | 'IN' | Default country code for phone number input (ISO 3166-1 alpha-2). |
| sideButton | boolean | false | Show a vertical side button instead of a bubble (Mobile only). |

Choose your integration method and add the code as follows:
HTML Website:
Paste the code just before the closing </body> tag in your main HTML file (e.g., index.html).
React Application:
Place the code inside a useLayoutEffect (or useEffect) in your main component (e.g., App.js).
You can also create a dedicated component for the widget.
Next.js Application:
Use the code in your main layout or page file.
Make sure to import next/script as Script.
Choose your integration method and use the corresponding code snippet below.
Replace the values as needed for your configuration.
<script>
(function() {
function loadTailorTalkWidget(callback) {
var script = document.createElement('script');
script.src = "https://plugins.tailortalk.ai/widget.js";
script.onload = callback;
document.head.appendChild(script);
}
loadTailorTalkWidget(function() {
TailorTalk.init({
widgetName: "YOUR_WIDGET_NAME",
agentId: "YOUR_AGENT_ID",
color: "#6366f1",
position: "right",
options: {
buttonText: "Let's Chat",
welcomeMessage: "Hello! How can I assist you today?",
quickQuestions: ["How can you help?", "Tell me more about..."], // Optional
sideButton: true // Mobile only feature
}
});
});
})();
</script>
import React from "react";
React.useLayoutEffect(() => {
if (!document.getElementById("tailortalk-widget-script")) {
const script = document.createElement("script");
script.id = "tailortalk-widget-script";
script.src = "https://plugins.tailortalk.ai/widget.js";
script.async = true;
document.body.appendChild(script);
script.onload = () => {
window.TailorTalk && window.TailorTalk.init({
widgetName: "YOUR_WIDGET_NAME",
agentId: "YOUR_AGENT_ID",
color: "#6366f1",
position: "right",
options: {
buttonText: "Let's Chat",
welcomeMessage: "Hello! How can I assist you today?",
quickQuestions: ["How can you help?", "Tell me more about..."], // Optional
sideButton: true // Mobile only feature
}
});
};
}
return () => {
const container = document.querySelector(".tt-widget-container");
if (container) container.remove();
};
}, []);
import Script from "next/script";
<>
<Script src="https://plugins.tailortalk.ai/widget.js" strategy="afterInteractive" />
<Script id="tailortalk-init" strategy="afterInteractive">{`
function initTailorTalkWidget() {
if (window.TailorTalk && window.TailorTalk.init) {
window.TailorTalk.init({
widgetName: "YOUR_WIDGET_NAME",
agentId: "YOUR_AGENT_ID",
color: "#6366f1",
position: "right",
options: {
buttonText: "Let's Chat",
welcomeMessage: "Hello! How can I assist you today?",
quickQuestions: ["How can you help?", "Tell me more about..."], // Optional
sideButton: true // Mobile only feature
}
});
} else {
setTimeout(initTailorTalkWidget, 100);
}
}
initTailorTalkWidget();
`}</Script>
</>
Tip:

Once integrated, your TailorTalk widget will appear on your website, ready to assist your visitors.
By following these steps, you can easily integrate and customize the TailorTalk Widget to match your website's style and user experience.