Step-by-step setup
Name the integration
Set an internal name (e.g., “Main Website”, “Blog EN”) to identify this Widget in Inbox filters.
Customize the appearance
Adjust primary color, accent color, button position (
bottom-right or bottom-left), welcome message, assistant name, avatar, and theme (auto, light, or dark).Copy the snippet
Timely.ai generates the code with the
data-agent-id of your integration. Paste it before the </body> tag on all pages where the chat should appear.Customization notes
- Attributes set directly in the snippet override Dashboard settings — useful for multiple variations on different pages.
- The Widget supports embeddable mode: add
data-embedded="true"anddata-target="#container-id"to render it inside a<div>instead of the floating button. - For voice support, the site must use HTTPS and the Agent must have voice configured in Agents → [agent] → Voice.
- The
embed.jsscript cache is 5 minutes — configuration changes may take that long to reflect on the site.
| Snippet attribute | Description |
|---|---|
data-agent-id | Widget integration ID — required |
data-theme | Visual theme: auto, light, or dark (default: auto) |
data-position | Floating button position: bottom-right or bottom-left |
The Widget uses
sessionStorage to maintain the session while the tab is open. When the browser is closed and reopened, a new session begins — the previous Chat History remains available to the attendant in the Inbox.