TengoChatDevelopers

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

  1. In the agent's builder, open Share and switch on Public page.
  2. Add the domains it may appear on (for example example.com and *.example.com). With none, any site can show it.
  3. 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):

HTML
<script src="https://tengochat.com/embed/agent.js" data-agent="YOUR_SHARE_TOKEN" defer></script>

Options, as attributes on the same tag:

data-colorThe bubble's colour, like #6E56CF.
data-positionright (default) or left.
data-opentrue to open the chat when the page loads.
data-labelThe 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.