Chat & Documents

How to build and embed a website chatbot

An external chatbot is the assistant your visitors talk to on your own website. You give it a name and a voice, tell it what it is allowed to talk about, train it on your pages and documents, then paste a small snippet into your site.

This guide follows the whole creation flow: configure, customise, train, test and embed.

When to use this

  • You answer the same questions from visitors over and over.
  • You want help available on your site outside working hours.
  • You want visitors to reach a human when the assistant cannot help.

Create the chatbot

  1. Open AI Bots

    Select AI Bots in the workspace menu. This is where every chatbot you build lives, together with the conversations visitors have had with them.

    AmmarAI workspace menu with AI Bots highlighted
    AI Bots holds every chatbot you build.
  2. Add a new chatbot

    Choose Add New Chatbot to start. If you already have bots, the same page lists them under Active Chatbots so you can pick one up again instead of starting over.

    Add New Chatbot action on the AmmarAI chatbot page
    Start a new chatbot from the AI Bots page.
  3. Fill in the basics

    Give the chatbot a title, the short bubble message that invites people to open it, and the welcome message it opens with. In Chatbot Instructions, describe its role, what it should help with and what it should refuse. Turn on Do Not Go Beyond Instructions when you want it to stay strictly inside that brief, pick the language and choose the model. The live preview on the right updates as you type.

    Chatbot configure step with title, bubble message, welcome message, instructions, language and model fields beside a live preview
    Everything you set here is visible in the preview straight away.
  4. Decide how conversations are handled

    Set the interaction type to choose whether the assistant answers alone or can pass a conversation to a person, and write the connect message the visitor sees when that happens. The same panel has optional extras such as feedback collection, a voice call agent and booking or shopping help.

    Interaction type, connect message and optional assistant toggles in the chatbot editor
    Decide what happens when the assistant cannot answer.
  5. Offer starter questions

    Turn on Suggested Prompts/Questions and add a few openers, such as your pricing, delivery or booking questions. Visitors who do not know what to ask will usually pick one of these, which keeps the conversation on ground the assistant knows well.

    Suggested Prompts and Questions panel with an Add Prompt button
    Starter prompts guide visitors into useful questions.

Style it for your site

  1. Choose the look

    In the customise step, upload your logo, pick an avatar and an accent colour, then decide whether to show the logo and timestamps. You can set the size of the launcher and place it on the left or the right of the page.

    Chatbot customise step with logo upload, avatar choices, colour swatches and position controls
    Match the assistant to your site before anyone sees it.
  2. Pick the bubble design

    The bubble design controls what the closed launcher looks like on your page — a plain bubble, a link bubble, a modern style, a suggestion bubble or a promo banner. Choose the one that suits how much attention you want it to draw.

    Bubble design dropdown showing Blank, Plain, Links, Modern, Suggestions and Promo Banner options
    The bubble design is the first thing a visitor sees.

Train, test and publish

  1. Train it on your own content

    Training is optional but it is what makes the answers yours. Point it at your website, upload a PDF, paste text, or write question-and-answer pairs for the things you are asked most. Start with the pages you would send a customer to anyway.

    Chatbot training step with Website, PDF, Text and Q&A sources and an Add URL field
    Website, PDF, text and Q&A are all accepted as training sources.
  2. Check it before it goes live

    Use the preview to ask the questions your customers actually ask, including one the assistant should refuse. Adjust the instructions or add training material until the answers read the way you would answer yourself.

    Chatbot editor preview pane showing a test conversation
    Test the awkward questions, not just the easy ones.
  3. Embed it on your website

    The final step gives you a small snippet and a width and height for the window. Copy the snippet and paste it just before the closing </body> tag of your site, then save and refresh the page to see the assistant appear.

    Test and Embed step with the copyable embed snippet and window size controls
    One snippet, pasted before the closing body tag.

Let visitors talk to the assistant

  1. Switch on the voice call agent

    In the chatbot configuration, turn on Enable Voice Call Agent. Visitors can then hold a spoken conversation with the assistant in the same window instead of typing.

    Chatbot configuration with the voice call agent switch turned on
    The voice switch sits under the feedback option.
  2. Write the first spoken line

    Fill in the first message of the voice agent. This is the greeting the assistant speaks when a visitor starts a call, so keep it short, warm and in the voice of your business.

Before you publish

  • Read the instructions back as if you were a customer: anything vague will show up as a vague answer.
  • Give the assistant a clear route to a human for refunds, complaints and anything with money attached.
  • Do not train it on internal documents, price lists or customer data you would not publish on the page.
  • Check the conversations in the first week and add the questions you did not anticipate.