Skip to content
Zapito
Open App

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 and hit Connect a channel (or click the Web Widget Trigger node on the canvas — the setup form already added it if you picked the web widget as a platform).
  2. Click Enable web widget. 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.

Attribute What it does
data-bot The bot’s public key (identifies which flow answers).
data-color Accent 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.