Put an agent on your website
One script tag adds a chat bubble. Limit it to your domains and cap its daily spend.
Any agent can have its own page and a chat bubble for your website. Visitors talk to it without an account; it spends your credits, within the daily limit you set.
Switch it on
- In the agent's builder, open Share and switch on Public page.
- Add the domains it may appear on (for example
example.comand*.example.com). With none, any site can show it. - Set a daily limit in credits. When it is reached, the bubble says it is resting until tomorrow.
Add the script
Paste this before </body> on your site, with your agent's share token (shown in the builder):
<script src="https://tengochat.com/embed/agent.js" data-agent="YOUR_SHARE_TOKEN" defer></script>Options, as attributes on the same tag:
data-color | The bubble's colour, like #6E56CF. |
data-position | right (default) or left. |
data-open | true to open the chat when the page loads. |
data-label | The bubble's accessible name (default: "Chat with us"). |
The chat runs on tengochat.com inside a frame, so your page's cookies and data stay yours. Each visitor gets their own thread, and a few messages a minute at most.