Adding a support chatbot to your SaaS app: a first-day plan
A step-by-step plan for getting a support chatbot live on your SaaS site in a day: create it, point it at your help content, match your branding, install it and check it.
If you are the CTO and someone has asked you to "just add a support bot", the job is smaller than it sounds. The real work is not the code. It is making sure the bot has good help content to answer from. This plan splits one working day into five blocks, in the order that avoids rework.
You will need three things before you start: a help centre or a Markdown help file with real content, an AI key you can use, and the list of website addresses where the chat should appear.
Morning: create the bot and give it something to read
Create the chatbot (about 10 minutes)
Open your platform and go to Settings › Chatbots. Click New chatbot at the top right, type a Name, and click Create chatbot. Only your team sees the name, but it also becomes the chat's first title until you change it on the Look tab. Pick something your visitors would not mind seeing.
The new bot opens on its Help sources tab. That is where you go next.
Choose your help sources (1 to 2 hours)
A help source is where the bot learns what to say. It answers only from what it read there, and it cannot answer anyone until at least one source has been read. You can add up to 10 sources per chatbot, and each one is one of two kinds:
- A help website. The address of your help centre's home page, for example
https://help.example.com. - A help file. The address of one public Markdown or text file, for example
https://example.com/llms-full.txt.
Click Add help website, paste the address in Address, and click Add help website again. Reading starts straight away. Wait for the status to show Ready. A website can take a few minutes.
Two choices matter here.
If your help centre is built in the browser with JavaScript, use a help file. The page that gets downloaded is empty for those sites, so nothing can be read. A Markdown file avoids the problem. In a help file, each top-level heading starts a new page, and a URL: line under the heading tells the bot where that page lives so it can link to it.
If your help site lives in a folder, end the address with a slash. https://example.com/help/ reads the help folder. Without the slash, it is treated as a page in the top folder and the whole site is read. A separate address like https://help.example.com does not have this problem.
Also check what gets skipped. PDFs, images and videos are not read, nor are pages your robots.txt blocks or marks "noindex". If your best troubleshooting guide is a PDF, rewrite it as a page or put it in the help file.
While sources are reading, spend the time on the content itself. The bot searches for the words in the visitor's question, so use the words people really type. Include common alternatives such as "refund" and "money back". Write steps out in text instead of "see the screenshot". And include a contact or support page, because the bot only links to addresses found in your sources.
Midday: match the look and feel
Open the Look tab. The settings are on the left and a Preview updates as you type. You can ask the preview real questions too.
The settings you will likely touch:
- Title, up to 60 characters. It defaults to the chatbot's name.
- Greeting, up to 500 characters. The default is "Hi! Ask me anything about how to use our product." Change it if that is not how you talk.
- Suggested questions, up to four, shown as buttons before the first question.
- Colour, used for the chat button, header and visitors' messages. Pick one or type a code. Text on your colour switches between light and dark automatically.
- Corner, Bottom right or Bottom left. Check this against anything else that sits in the corner of your app, such as a cookie banner.
- Logo, PNG, JPEG, WebP or GIF up to 200 KB. SVG is not accepted, and square works best.
Pick suggested questions your help pages answer well, then try each one in the preview. If an answer is weak, fix the help page or choose a different question. A suggested question that gives a poor answer is worse than none, because it is the first thing visitors click.
Click Save look to apply changes. The logo saves as soon as you choose the file.
Visitors will also see a note under the message box: "AI answers from our help pages. They can be wrong." You do not need to add your own disclaimer to make that point.
Afternoon: install and test
Set the model, key and websites
Open the Install tab. Under AI model and key, choose the AI model and the AI key. The key must match the model's provider. Under Websites, list the addresses where the chat may appear, one per line, in Website addresses.
A few details save you time:
- Only the start of the address counts.
https://www.example.com/helpis saved ashttps://www.example.com. www.example.comandexample.comare different websites. List both if visitors use both.- A different port is a different website, so add
http://localhost:3000if you want to test on your own machine. - You can list up to 20 websites.
Set Most questions per day under Daily limit to something you are comfortable paying for. It starts at 1,000 and can be 1 to 100,000. Each visitor is also limited to 20 questions every 10 minutes. Click Save at the bottom.
Paste the embed code
Under Add it to your website, click Copy. Paste the code just before the closing </body> tag on every page where the chat should appear. In a single-page app, put it in the main HTML page once. The data-bot value is different for each chatbot, so use your own copy.
If you want the chat inside a signed-in area and only for logged-in customers, that is a separate setting on the same tab. See Signed-in visitors before you decide. For a first day, a public help chat is the simpler place to start.
Try it before you switch it on
Open the Instructions tab and use the Try it chat. Ask the ten questions your support inbox sees most. Ask a few it should not know the answer to, and see whether it says so. When you are happy, click Switch on at the top of the page.
Then test on the real page. Open your actual website and ask a question there, not only in the preview. Check it appears on the Conversations tab.
If the chat button does not show
Open the browser console (usually F12, then Console). The chat leaves a note when it cannot start. The common one says the chat is not available on this website. Add the website's exact address under Websites, including www if your address has it, click Save, and check the bot is live.
The days after: read the gaps
Back on Settings › Chatbots, the list shows each bot's status and how many questions it got in the last 24 hours. Some chats get an amber label. Not in your help means your pages did not have the answer. Couldn't answer means something went wrong, such as a problem with the AI key. Asked for a person means the visitor wanted someone to talk to them. Click Needs a look to see only those, and use Mark as handled when you have dealt with one.
The Not in your help chats are your to-do list. Write or improve those pages, then open the source's ⋯ menu on the Help sources tab and choose Read again. Every source is also read again every night, so routine edits to your help centre are picked up without you doing anything.
That loop is most of the ongoing work. For a longer routine, see Chats that need a look in the help.