Add an AI sales agent to your website
Put a Dopia Sales Agent on your website with one line of code. Visitors chat or call it, it answers from your knowledge base and books meetings with your team.
To put a Dopia Sales Agent on your website, set up the agent's website widget,
copy its one-line embed code, and paste it before </body> on your site.
Visitors can then chat with the agent or call it from their browser. It
answers from its knowledge base, asks interested visitors for their details,
offers times to meet your team, and every conversation lands in Dopia. The
video above walks through the same steps.
Before you begin
- You have a Sales Agent with a knowledge base. If not, create a sales agent first.
- Your workspace is on Plus, Pro or Business, or in its free trial.
- You have Write access to the agent, and you can edit your site's HTML or add a script in your site builder.
- For booking: at least one teammate has Meets customers turned on and a calendar connected. See how agents book meetings and hand off leads.
Set up the widget
If you chose Talk with website visitors when you created the agent, the widget is already set up; start at step 2.
Add the widget
Open the agent, go to Channels, click Add Channel and add
Web Widget. The widget page opens, already allowed on the website you
created the agent from, with and without www.
Choose how it looks
On the Appearance tab, check the agent's Name and Logo. Turn on Video bubble to show a short video in place of the chat icon (MP4, MOV or WebM). On Business, you can turn on Hide “Powered by Dopia”.
Set up chat and booking
On the Chat tab, write the Welcome message, the first thing a visitor sees. Under Actions, Answer questions is always on. Leave Arrange meetings on to let visitors book time with your team, and tick what the booking card should ask for besides name and email: company website, company name, phone, job title, or what they'd like to talk about. Add Instructions for how the agent handles chats.
Set up voice
On the Voice tab, leave Voice mode on to put a call button next to the chat box. Pick a Voice (click a row to hear it), write the Opening line, and choose the Longest call. Under Actions, Arrange meetings and Hang up can each be turned off. Add Instructions for how it handles calls.
Save
When you change a text field, click Save changes at the bottom. The switches under Actions and the Longest call save as soon as you click them.
The preview on the right shows what visitors will see. It only shows the look; to talk to the agent, use Test agent (see below).
Install the embed code
Check the allowed domains
On the Embed tab, Allowed domains lists every site the widget may
load on, one per line, as https://example.com with no path and no
trailing slash. example.com and www.example.com count as different
sites. Optionally, list pages where it should stay hidden under
Hide on paths.
Copy the snippet
Under Embed Code, copy the snippet. It looks like this, with your agent's own key:
<script src="https://cdn.dopia.ai/public/widget/dopia-widget.iife.js" data-key="wk_..."></script>
Paste it before the closing body tag
Put it on every page the agent should appear on. Usually that means your site-wide template or layout, so you only do it once. Most site builders have a "custom code" or "footer scripts" box for this.
Publish and open your site
Publish the change and visit a page that carries the snippet. Dopia confirms the install the first time a real page loads it.
You can also get the code from the agent's Overview: until the widget has been seen on your site, the Website row has a Deploy button that opens Deploy to your site with the same snippet and steps.
Once a page has loaded the widget, the agent's Overview shows Embed detected on your site with when it was last seen, and Agents lists the agent as Live on your site.
What visitors see
- A bubble in the bottom-right corner: a chat icon, or your video. On a phone, the chat opens full screen.
- The agent's name, picture and title at the top of the chat. The title always starts with "AI". Unless you change it, the welcome message reads "Hi! I'm Kai, the AI sales agent for Acme. Ask me anything about Acme."
- Answers from your knowledge base. While it looks something up, the chat shows "Searching the knowledge base…". It replies in the visitor's language.
- A short form when they show interest, titled Let's stay in touch, asking for their name, company email and business website. It asks for a work email; addresses at Gmail and other public providers aren't accepted. Not now lets the visitor keep chatting without filling it in.
- A booking card when they want to meet. It lists times over the next 14 days when someone on your team is free. The visitor picks a day and time, enters their name and email (and anything you ticked), and the invite goes out right away.
- A call button, if Voice mode is on. The visitor talks to the agent out loud in the browser. On a call, the agent agrees a meeting time and spells the visitor's email back; the invite goes out after the call.
- "Powered by Dopia" at the bottom, unless you're on Business and hid it.
Test the agent before visitors do
On the widget page, click Test agent. The Test page stands in for your site: open the bubble and ask what a visitor would, or start a call. You get the same replies a visitor gets.
Test conversations appear under Tests in the agent's Chats and Voice calls tabs, never in your CRM. Each shows what it would have added, marked Test · Nothing saved to CRM, and a meeting picked in a test isn't booked. Tests use credits like real conversations.
Where website conversations land
Every chat is in the agent's Chats tab and every call in Voice calls, each with a line saying what came of it.
- Chats. When a visitor fills in the form or books a meeting, their contact (and their company, from a work email) is created right away. Once the visitor has been quiet for a few minutes, the Analyze chats automation reads the chat, adds what it learned to your CRM, and opens a deal if they showed buying intent. A chat where the visitor left no details stays in Chats only and is marked No contact details left.
- Calls. When a visitor hangs up, Analyze calls reads the transcript, finds or creates their contact, opens a deal if they showed buying intent, and attaches the recording with a summary. If they asked for something only a person can do, the deal's owner gets a notification (or, with no deal owner, the people who manage the agent).
The conversation also shows in the contact's Activity, for example "Kai had a widget conversation with Dana Lee". Review your agent's conversations covers reading them and correcting the agent.
Troubleshooting
The widget doesn't appear on my site. Check, in order: the page's address
matches an entry in Allowed domains exactly (with or without www); the
page isn't under Hide on paths; the switch at the top of the widget page is
on; and the published page really carries the snippet. A mismatched domain
fails silently.
Overview says "Not detected on" my site yet. Dopia only sees the widget when someone opens a page that carries it. Open one yourself after publishing.
Visitors never get a booking card. Check that Arrange meetings is on in the Chat tab and that the Meetings go to list under it names someone. A teammate is listed once they meet customers, have a calendar connected and have a booking page.
There's no call button. Voice mode is off on the Voice tab.
Common questions
- Will visitors know they are talking to an AI?
- Yes. The chat shows the agent's title under its name, and the title always starts with "AI", such as "AI sales agent". The default welcome message introduces it the same way, and if a visitor asks, the agent says plainly that it is an AI.
- Do I need to paste new code after changing the agent's settings?
- No. The embed code stays the same. Changes to the agent's name, welcome message, voice, knowledge or instructions reach your site without touching the code again.
- Does a website chat create a contact if the visitor leaves no details?
- No. The chat is kept in the agent's Chats tab, but nothing is written to your CRM until the visitor fills in the agent's form or books a meeting with their name and email.
- Can I remove the "Powered by Dopia" mark from the widget?
- Yes, on the Business plan. Turn on Hide "Powered by Dopia" in the widget's Appearance tab. On other plans the mark stays.
- Can I hide the widget on some pages of my site?
- Yes. In the widget's Embed tab, list the paths under Hide on paths. /app hides that page only, and /app/* hides it and every page below it.
Up next
Give your sales agent a phone number
Get a local US or Canadian number for your Dopia Sales Agent. It answers calls, books meetings with your team, logs every call and calls back new leads.