Skip to content

Web Widget

The Web Widget lets you embed a live chat window powered by your AI bot directly onto any website. Customize it to match your brand and deploy in minutes.

Widget Settings & Live Preview

  1. Go to ChannelsWeb Widget in the left menu.

  2. Click Create Widget and give it a name.

  3. Configure the widget settings (see Customization below).

  4. Copy the embed code snippet provided.

  5. Paste the snippet into your website’s HTML, just before the closing </body> tag.

  6. Save and publish your site — the widget will appear immediately.

<!-- Clienta.ai Web Widget -->
<script>
window.ClientaConfig = {
botId: "YOUR_BOT_ID",
widgetId: "YOUR_WIDGET_ID",
};
</script>
<script
src="https://cdn.clienta.ai/widget/v1/loader.js"
async
></script>

Replace YOUR_BOT_ID and YOUR_WIDGET_ID with the values shown in your dashboard.

OptionDescription
Theme ColorSet the primary color to match your brand (hex code or color picker)
Welcome MessageThe first message displayed when a user opens the widget
PositionChoose bottom-right or bottom-left placement on the screen
AvatarUpload a custom avatar image for the bot

Additional options include:

  • Widget Title — Name shown in the widget header
  • Placeholder Text — Hint text inside the message input box
  • Auto-Open Delay — Automatically open the widget after N seconds (optional)
  • Hide on Mobile — Toggle widget visibility on mobile devices
  1. User opens the widget — The chat window slides open from the corner of the page.

  2. Message sent to bot — The user’s message is sent to Clienta.ai over a secure WebSocket connection.

  3. AI processes and responds — The bot retrieves relevant content from the knowledge base and generates a reply.

  4. Human handoff if needed — If confidence is low or the user requests a human, the conversation is routed to an available agent via the Conversations inbox.

The widget uses a persistent WebSocket connection for real-time, low-latency messaging. Key behaviors:

  • Auto-reconnect — The client automatically reconnects if the connection drops.
  • Typing indicator — Shows a typing animation while the bot is generating a response.
  • Message history — Conversation history is preserved within the same browser session.
  • Cross-tab sync — If the user has multiple tabs open, the conversation state is synced.
PlanWidgetsConcurrent SessionsMessage Retention
Starter1507 days
Pro550030 days
EnterpriseUnlimitedUnlimited90 days