---
title: "Build an AI support bot"
description: "Step-by-step guide to training an Advanced AI bot on your website and documents, enabling streaming and lead extraction, and going live."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.aminos.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an AI support bot

An **Advanced AI bot** (Knowledge Base mode) answers visitor questions directly from your website pages, PDFs, Word documents, and text files. It keeps answers grounded in your real content instead of guessing.

1. **Create the bot and configure its look**

   On the **Dashboard**, click **New Bot**, name it (for example `Support Assistant`), and open **Widget Style**. Set your **Widget title**, **Welcome message** (e.g. `"Ask me anything about our pricing, setup, or policies."`), **Theme Color**, and **Chat Avatar**, then click **Save**.
2. **Switch to Standalone AI Chat**

   Open **AI Knowledge Studio** in the sidebar:
   - Enter your **Business Name** (required).
   - Toggle the mode from **Flow Builder** to **Standalone AI Chat**.
   - Keep **Response Streaming** turned on so visitors see answers stream word by word.
3. **Write clear Global Instructions**

   Review **Global Instructions** (up to 25,000 characters). Tell the assistant:
   - Its role and tone (friendly, concise, plain English).
   - To answer strictly from the provided knowledge base and never invent pricing, policies, or guarantees.
   - What to do when it doesn't know an answer (for example, ask for the visitor's name and email so a human can follow up).
4. **Add your website and files in Knowledge Base mode**

   Under **Knowledge Source**, select **Knowledge Base**:
- **Crawl your website:** Paste your homepage or docs URL and click **Crawl Site** (crawls up to 30 pages per crawl) or **Add URL** for individual pages.
- **Upload files:** Upload **PDF**, **TXT**, or **DOCX** files (up to 50 MB total per bot).
   - Watch the storage meter so your total characters stay within your plan's **Knowledge Base character limit** (500,000 characters by default; up to 2,000,000 depending on your plan).
   - Click **Sync Knowledge Base**.
   - Wait until each source's status changes from **Processing** to **Trained** (the table polls automatically).
5. **Turn on AI Lead Extraction (recommended)**

   Still in **AI Knowledge Studio**, enable **AI Lead Extraction**:
   - Select the fields to capture (`Full Name`, `Email Address`, `Phone Number`, `Company Name`, plus any custom fields you need).
   - Set **Inactivity Timeout (minutes)** (1–60 minutes, default `10`). After a conversation is quiet for that long — or immediately if the visitor uses **End chat** — Aminos extracts any shared contact details into **Responses** and sends them to your integrations.
   - Click **Save AI Knowledge Studio** (or **Sync Knowledge Base**).
6. **Optional: enable ratings, transcripts, and notifications**

   Open **Settings**:
   - Under **Notifications**, add your email under **Send to** and optionally check **Only send when contact details were captured**.
   - Under **General → Ending chats**, turn on **Let visitors end the chat**, **Ask for a rating**, and **Let visitors email themselves the transcript** so visitors can rate support and keep a copy.
   - Under **Protection**, consider setting a per-visitor message limit if your site receives high traffic.
   - Click **Save Settings**.
7. **Test real questions and embed**

   Open **Widget Style** and test 5–10 real customer questions in the live preview, including an out-of-scope question to verify the assistant refuses gracefully. Check **AI Chat Log** to inspect the transcript, then open **Integration Code** and paste the embed script onto your site.

:::tip
If all of your business context fits in one compact prompt (under 250,000 characters) and you don't need multi-page website crawling or PDF uploads, choose **Direct Prompt** instead of **Knowledge Base** — it saves instantly with no indexing step.
:::

Source: https://docs.aminos.ai/guides/ai-support-bot/index.mdx
