
A chat widget is the chat bubble in the corner of your website. Visitors click it to ask a question. Your AI agent can answer straight away, and when a visitor wants a person, the chat is handed to your team in the Team Inbox. Customers who are signed in to your site can also raise tickets and follow them from the same widget.
Everything about a widget is set on one page, Customer Support Settings → Chat Widget: how it looks, where it sits, who answers, who receives chats, where its tickets go, what visitors fill in first, and the code that puts it on your site. This article walks through that page from top to bottom while creating a widget called Website Support Chat.
Part | You will… |
|---|---|
1 | Open the Chat Widget tab and create a widget. |
2 | Brand it: name, heading, button text, home card, colours, position, whether the chat opens by itself, and the welcome message. |
3 | Choose whether an AI agent answers first. |
4 | Route live chats to a team or to chosen agents, and set the online, offline and unanswered messages. |
5 | Decide whether customers can raise tickets, and which team and agent those tickets go to. |
6 | Add a pre-chat form. |
7 | Copy the install script and review signed-in visitors. |
8 | Activate the widget and save. |
Admin access to Customer Support Settings.
Live chat switched on for your organisation: General Settings → Chat conversation is enabled. See Support General Settings.
A team or agents to receive chats. While live chat is on, a widget can’t be made Active until it has a team or at least one agent (Part 4). See Create Teams.
An AI agent (optional), already built and active. See Build Your First AI Agent. Draft agents can’t answer.
Access to your website’s code, or someone who has it, to paste the install script.
Open Customer Support (the headset icon in the left rail), click Settings at the bottom of its sidebar, then click the Chat Widget tab. You can also go straight to app.aiengagecrm.com/dashboard/settings/service-support/chat-widget.

What this screenshot shows. The Customer Support Settings page, with its title and tabs ringed. Chat Widget · Install script & routing is selected (orange).
Chat Widget: the tab this article is about.
Support Email, From Email, Notifications and General Settings: the other support settings tabs.
Below the tabs (faded): on the left, the list of your widgets; on the right, the settings of the selected widget.

What this screenshot shows. The top of the tab is ringed: the description, the widget list on the left, and the header of the selected widget on the right.
“Add live chat to your website and route incoming chats to the right team.”
Online Store Chat and Help Centre Chat: existing widgets (samples). Click a name to open its settings on the right. You can have several widgets, for example one per website or brand.
+ New widget (orange, under the list): creates another widget (Step 3).
Agents online (green) and the status list (Active) at the top right of the selected widget: explained in Step 4.

What this screenshot shows. After clicking + New widget, the widget list is ringed. The new widget appears at the top.
New Widget: the widget you just created. It is created straight away, with sensible defaults, and opens on the right. Its name in the list changes once you rename it and save.
Online Store Chat and Help Centre Chat: your other widgets, unchanged.

What this screenshot shows. The top-right corner of the new widget’s settings is ringed.
Agents online (green): at least one agent who can take chats is available right now. When nobody is, it reads Agents offline.
Draft: the widget’s status. A new widget starts as a Draft when it has nobody assigned to receive its chats yet.
A Draft or Inactive widget is never shown to visitors, even if its script is on your site. You set it to Active at the end (Part 8).

What this screenshot shows. The text settings, filled in, are ringed.
Widget name: Website Support Chat. Shown in your widget list. Visitors only see it if you leave the heading empty.
Heading: Chat with Support. “Shown at the top of the chat. Defaults to the widget name.”
Sub heading: We usually reply in a few minutes. A short line under the heading; use it to set expectations.
Button name: Chat with us. “The wording on the chat button. Defaults to the heading.”
Home card title: Send us a message. The card visitors click on the widget’s home screen to start a conversation.
Home card subtitle: We typically reply in a few minutes. The line under the home card title.

What this screenshot shows. The two colour settings are ringed.
Accent color: the main colour of the chat button and header, here #F3724C. Type a hex code, click the swatch on the left to pick any colour, or click one of the five preset colours underneath.
Secondary color: AUTO. “Used for the gradient. Left empty, one is derived from the accent.”
Use your brand colours so the widget looks like part of your website.

What this screenshot shows. The position settings are ringed.
Launcher position: Bottom right or Bottom left. “Which corner the chat button sits in.”
Distance from bottom: “Pixels up from the bottom edge (0–200). 0 keeps the default inset.” Raise it if the button covers something on your site, such as a cookie banner.
Distance from right: “Pixels in from that side (0–200).” With Bottom left chosen, this is measured from the left edge.
By default the chat stays closed until a visitor clicks the chat button. If you want to greet visitors proactively, you can have the chat panel open on its own a few seconds after the page loads. This setting is per widget, so you can switch it on for one website and leave it off for another.

What this screenshot shows. The Open the chat automatically row is ringed, directly under the launcher position settings from Step 7. The switch on the right is grey, meaning it is off, which is the default for every widget.
Open the chat automatically: the name of the setting.
“The panel opens on its own shortly after the page loads — once per visit, and only on desktop.” This hint sums up the rules explained below.
The switch (right, grey = off): click it to turn the setting on. While it is off, nothing else appears in this row, and visitors must click the chat button themselves.
Above (faded): Launcher position, Distance from bottom and Distance from right (Step 7). Below (faded): the Welcome message box (Step 9), then the AI agent and Live agent handoff sections (Parts 3 and 4).
Click the switch to turn it on. A new Open after box appears underneath. Type how many seconds to wait before the chat opens.

What this screenshot shows. The same row after the switch is turned on. The switch is now orange (on), and the new Open after box is ringed, set to 5. The red arrow points to it.
Open the chat automatically (orange switch): on. Once you save (Step 20), the chat panel opens by itself for visitors to this widget’s website.
Open after: 5. How many seconds the widget waits, after the chat button appears, before opening the panel. Use the arrows or type a number.
“Seconds to wait before it opens (0–60).” The default is 3. 0 opens the chat as soon as the chat button appears, and the highest value is 60. Anything outside 0–60 is brought back into that range when you save.
If you switch the setting off again, the Open after box disappears, but your number is kept and comes back when you switch it on.
So that visitors aren’t annoyed, the widget always follows these rules. You can’t change them:
Rule | What it means for your visitors |
|---|---|
Once per visit | The chat opens by itself only once per browser tab session. It doesn’t pop open again when the visitor moves to another page of your site, or after they close it. A new visit (a new tab, or coming back another day) can open it again. |
Desktop only | It only opens on screens at least 768 pixels wide, such as laptops and desktops. On phones and small tablets the chat stays closed so it never covers your page. Visitors can still tap the chat button. |
Never over the visitor | If the visitor opens or closes the chat before the wait is over, the automatic opening is cancelled for that page. |
Only when the widget is showing | A Draft or Inactive widget, or one that fails to load, never opens by itself. |

What this screenshot shows. The Welcome message box is ringed.
Hi! 👋 How can we help you today? is the first message visitors see when they open the chat.
Keep it short and friendly. When an AI agent answers first (Part 3), it takes over from here.

What this screenshot shows. The AI agent section (“Whether a bot answers first, and which one.”) is ringed, with the switch on.
Answer with an AI agent first (switch on): “The bot replies first. Visitors can ask for a live agent at any time.”
AI agent: which agent answers, here Support Assistant. “Only built agents can answer. Drafts are not listed.”
The read-only card underneath summarises the chosen agent (Step 11).
Turn the switch off if every chat should go straight to your team.

What this screenshot shows. The AI agent list is open and ringed.
No agent selected, followed by every active AI agent in your account (here Support Assistant and Booking Helper). Pick the one trained on your support content.
If the agent you want is missing, it is still a draft. Finish and publish it under AI Agents first.
If you switch the AI on but leave this empty, saving shows “Please select an AI Agent.”

What this screenshot shows. With an agent chosen, its read-only summary is part of the ringed section.
SUPPORT ASSISTANT · Read-only: the agent’s name and description.
Status (active), Type (here Trained on your content), Hands over to a person (Yes) and Knowledge sources (3).
“How this agent answers is edited under AI Agents, not here. Its appearance is not used — this widget is branded by the settings above, bot or no bot.”

What this screenshot shows. The Live agent handoff section is ringed. “Who receives a chat when the visitor asks for a person. Available whether or not an AI agent answers first.”
Route to team: No team so far. “Used when no agents are picked below.”
Assigned agents · + Add agent: “Only these agents receive this widget’s live-chat requests. Leave empty to use the team above.”
Tell visitors when no agents are online: the switch on the right (Step 14).

What this screenshot shows. The Route to team list is open and ringed.
No team, followed by your teams, here Billing Team and Technical Support.
Pick your support team to share chats among all its members. In this example, Technical Support is chosen.

What this screenshot shows. The + Add agent picker is open and ringed.
Search agents…: type to find a teammate.
Prakhar Aiengage, Daniel Brooks, Nina Patel: tick each person who should receive this widget’s chats. Each row shows their name and email.
If you pick agents, only they receive chats from this widget and the team above is ignored. Leave it empty to use the team.

What this screenshot shows. The visitor messages are ringed.
Tell visitors when no agents are online (on): “An agent counts as online while their inbox is open and their live chat is switched on. When none of this widget’s agents is, visitors see the offline message below instead of ‘Connect with live agent’.”
Online message: shown when the visitor asks for a person and someone is available, for example Thanks — we’re connecting you to an agent now.
Offline message: shown in place of “Connect with live agent” while nobody is online, for example We’re offline right now.
Unanswered-request message: shown when a live-agent request isn’t picked up, for example because the team is away. “Falls back to the default wording if left blank.”

What this screenshot shows. The Tickets section is ringed, with a default team and assignee chosen.
Customers can raise tickets (green switch): “The widget shows ‘Raise a new ticket’ to customers who are signed in to your site.” This switch is shared by your whole organisation, so turning it off here turns it off for every widget. It saves as soon as you click.
Default assignment for this widget: “Where tickets raised from this widget are filed and assigned. This takes priority over the live-agent routing above.”
Default team: Billing Team, the team that tickets from this widget are filed under.
Default assigned to: Sara Malik. Only agents on the chosen team are listed, so pick the team first. Leave both blank to use the live-agent routing from Part 4.

What this screenshot shows. The note under the Tickets section is ringed.
“The emails a ticket sends — to the customer and to the agent handling it — are shared by your whole organization. Set them under Notifications.”
Click Notifications to open that tab. Every option is explained in Automatic Customer Emails.

What this screenshot shows. The Pre-chat form card is ringed. “Customers fill this form before starting a conversation.” It starts switched off.
Click the switch on the right to turn it on. Its options then appear.

What this screenshot shows. The pre-chat form, switched on, is ringed.
Form heading: “Displayed above the questions in the pre-chat form”. Left empty, visitors see Before we start, please answer a few quick questions:
Start chat button text: for example Start Chat.
FORM FIELDS: What’s your email address? is on and Required by default, so you can always reply by email. What’s your name? and What’s your phone number? are off; switch each on to ask for it. Email and phone can be set to Required or Optional.
“This widget also answers with an AI agent. If that agent has its own pre-chat form configured, the agent’s form is the one visitors see.”

What this screenshot shows. The Install script card is ringed.
“Paste this just before the closing </body> tag on every page you want the widget on.”
The red notice: “This widget is a draft, so the script above will not load on your site — the widget answers Widget not found until it is live. Set its status to Active and save.” It disappears once the widget is Active (Part 8).
Copy (top right of the dark box): copies the whole script. Paste it into your website, or send it to whoever manages your site.
The script contains this widget’s own ID, so each widget has its own script.
The two lines visitor.name('Mark Holt') and visitor.email('mark@example.com') are examples. Replace them with the signed-in customer’s details from your website, or delete both lines if your pages don’t know who is visiting.
The optional visitor.account('store_1') lines are only for businesses with several stores, to keep each store’s chats and tickets separate.
If customers sign in to your website, the widget can recognise them. They skip the pre-chat form, and a My tickets view shows the tickets on their CRM record.

What this screenshot shows. The Logged-in visitors section is ringed. It is Enabled, and it “Applies to every chat widget in your organization.”
“Let visitors see their own tickets in the widget. Tell the widget who is visiting with crmwidget.visitor.email() and My tickets works — nothing to compute, and no secret needed.”
Login page URL: https://yourcompany.com/login, with Save URL. “Where the widget’s Log in button takes a visitor who is not signed in. Leave empty to hide the button.”
How visitors are recognised: your site calls crmwidget.visitor.email('customer@example.com') with the signed-in customer’s address. They can then chat and raise tickets without filling in the form.
When a customer signs out of your website, call crmwidget('logout'). Otherwise the widget keeps recognising them on that browser.

What this screenshot shows. The status list at the top right of the widget is open and ringed.
Draft: being set up. The script loads, but the widget stays hidden.
Active: live. Visitors see the chat button on every page that has the script.
Inactive: switched off, for example while you pause chat on that site.
Choose Active when you are ready to go live.

What this screenshot shows. The bar at the bottom of the widget settings is ringed.
Save changes (orange): saves everything you changed on this widget. Nothing in Parts 2–8 is stored until you click it. (The Customers can raise tickets switch and Login page URL save on their own.)
Delete widget (red): removes the widget. Take its script off your website first, because a new widget gets a new ID.

What this screenshot shows. The confirmation in the bottom-right corner is ringed: Widget saved.
The widget list now shows Website Support Chat, with its AI agent (Support Assistant) underneath.
Open your website in a new tab and refresh it. The chat button should appear in the corner you chose.

What this screenshot shows. If you try to activate a widget that has no team and no agents, saving is refused and this message is ringed.
“Assign a team or at least one agent before activating this widget.”
Because live chat is switched on for your organisation, an active widget offers visitors “Talk to a person”. With nobody assigned, that request would reach no one.
Pick a team or add an agent in Live agent handoff (Steps 12–13), then save again.
The chat button doesn’t appear on my site. Check the widget is Active (a Draft or Inactive widget stays hidden and answers “Widget not found”), that you clicked Save changes, and that the script is on that page, just before </body>. Clear your browser cache and reload.
“Assign a team or at least one agent before activating this widget.” Choose a team or add agents under Live agent handoff, then save.
“Please select an AI Agent.” Answer with an AI agent first is on but no agent is chosen. Pick one, or switch the option off.
“The selected AI agent was deleted.” Choose another agent, or turn off Answer with an AI agent first.
My AI agent is not in the list. Only built, active agents are listed. Finish and publish the agent under AI Agents.
Visitors always see the offline message. An agent only counts as online while their inbox is open and their live chat is switched on. Ask your agents to keep the Team Inbox open, and check the team or agents chosen in Live agent handoff.
Visitors can’t reach a person. The AI agent may not hand over (Step 11), or live chat may be switched off for the organisation: check General Settings → Chat conversation is enabled.
Customers don’t see “Raise a new ticket”. It is only shown to signed-in customers, and only when Customers can raise tickets is on. Make sure your site calls crmwidget.visitor.email().
Widget tickets go to the wrong team. Check Default team and Default assigned to in the Tickets section; they override the live-agent routing.
A customer still appears signed in after logging out. Call crmwidget('logout') when they sign out of your website.
The chat doesn’t open by itself. Check that Open the chat automatically is on and that you clicked Save changes. Then test in a new private window on a computer. It opens only once per visit, never on screens narrower than 768 pixels (phones), and not if you clicked the chat button before the wait was over.
The chat opens too soon or too late. Change Open after (0–60 seconds) and save. The count starts when the chat button appears, not when the page starts loading.
A customer can’t start a chat, or sees “This conversation is closed.” An agent may have blocked that customer from the Team Inbox. A blocked customer isn’t offered a new chat in the widget, but their tickets and past messages stay visible. If the block was a mistake, unblock them from their conversation in the Team Inbox.
Previous: Support General Settings: Live Chat, Reply Display, Reopen on Reply & Auto-Close Resolved Tickets
OpenAI Engage and apply what you just learned to your own workspace.
Open AI Engage CRM