Skip to main content
AlonChat

Embedding Your Agent

Add the website widget, an inline frame, or the Chat API

Embedding Your Agent#

Put the agent where customers already are. Copy the website code from the dashboard. Do not retype it.

Private checks in Playground and Agent Studio → Test do not publish website chat. Customers reach it after the channel is on, the install code is on the site, and AI Auto-Reply is on. Saving the look does not do those steps.

OptionWhere customers see itStart here
Floating chatA bubble or a bar on your siteDeploy → Chat widget or Chat bar → Install
Inline chatA panel inside a pageInline chat (iframe) on the same Install tab
Help PageA standalone page you can shareDeploy → Help Page
Chat APIYour own appProject Settings → API Keys and Deploy → API
Other channelsMessenger, Instagram, WhatsApp, and the restChannels

Floating chat#

Chat widget is a floating bubble. Chat bar is a bar on the page. Turning one on replaces the other. Both use the same install code.

  1. Open Deploy and find On your website.
  2. Turn Chat widget or Chat bar on. Confirm the switch if the other one is already on.
  3. Choose Manage to edit that look, then Save changes.
  4. Open Install and copy the code shown there. Until the channel is on, Install does not show the code.
  5. Paste it on the site. The manual guide on Install covers a custom site, Wix, and theme fallbacks. Shopify and WordPress can also connect from Platform installs without editing the theme.
  6. Turn AI Auto-Reply on only when the agent should answer. Off means the chat stays silent. AlonChat can keep auto-reply off until the agent is ready for live replies.

Copy the snippet from Install. Do not retype it from this page.

TabWhat you set
ContentName, initial message, suggestions, notices, and the lead-capture shortcut
StyleColors, light or dark, text size, and the bubble or bar
AIWhether website chat follows Guidance or its own writing style
InstallEmbed code, allowed domains, and identity verification

Calling appears only when website voice is available. Widget setup covers the controls. Lead capture covers the form. The lead card opens Collect Lead. It does not enable the form. A lead is saved when the form is submitted, not when someone opens chat.

Where the code goes#

SiteWhere
WordPress or ShopifyPlatform installs on Install, or the theme fallback in the manual guide
WixThe manual guide on Install: custom code at the end of the body, then publish
Other HTMLThe end of the body, using the current snippet

Turn on Allowed domains when the embed should load only on your domains. Add hosts such as example.com or *.example.com, without http://. Allowed domains save as you edit them. If the list is empty, the code can load on any site that has it.

Identity verification identifies a signed-in website user. It is on Install for the floating script. Save settings once to create the secret, and keep that secret on your server.

Inline chat#

On Install, copy Inline chat (iframe) and paste it where the panel should sit. Give it enough height to use, including on a phone. It does not include the floating launcher or website identity verification.

The initial message, colors, and lead form still come from the chat editor, not from extra URL parameters.

Chat API#

Use the API when you build your own chat screen. Create a key in Project Settings → API Keys. The agent endpoint is also on Deploy → API. Call it from your server only.

bash
curl -X POST https://alonchat.com/api/v1/chat/{agentId} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "How much does shipping cost?"
  }'

The full request and response fields are in the Chat API. Keys are shown once and look like sk-….

Before you publish#

  • Match the color and initial message to the business.
  • Put the bubble on the right unless that side is already taken. The bar can sit left, center, or right.
  • Use Auto-show popup only on pages where people expect help.
  • Say in your privacy notice that the chat uses an AI agent, and collect only the lead fields you need.
  • Send one real message on the published page and read it in Activity → Inbox.

Continue#