Skip to content

Web widget

The web widget puts a chat bubble on your site, answered by your bot. It’s the fastest channel to ship — no third-party approvals.

  1. Open your bot’s flow and add (or click) a Web Widget Trigger node.
  2. Click Enable web widget in its config drawer. Zapito generates a public key for this bot.
  3. Copy the embed snippet and paste it before </body> on your site:
<script src="https://<your-zapito-api-host>/widget.js"
data-bot="YOUR_PUBLIC_KEY"
data-color="#25D366" defer></script>

The exact snippet — with your real API host and public key filled in — is shown in the trigger’s config drawer and in the Deploy modal; copy it from there.

AttributeWhat it does
data-botThe bot’s public key (identifies which flow answers).
data-colorAccent color of the bubble and header.
  • The bubble answers only while the bot is live — pause the bot and the widget goes quiet.
  • Each visitor gets their own conversation; history persists for the session.
  • Replies come from the same flow engine as every other channel, so what you saw in Test chat is what visitors get.

Click Disconnect widget in the trigger’s config drawer. The public key is revoked and existing embeds stop answering.