---
title: "How Aminos works"
description: "Understand the three bot modes (Flow, AI, and Knowledge Base), how widgets run on your site, and how leads are stored."
---

> 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.

# How Aminos works

Every bot in Aminos starts as a single bot record in your dashboard. From there, you decide whether it runs a scripted flow, an AI conversation from a direct prompt, an AI conversation grounded in a Knowledge Base, or a hybrid that combines scripted steps with an AI Assistant block.

## The three bot modes

| Mode | Where you configure it | Best for |
| --- | --- | --- |
| **Flow bot** | **Flow Builder** (with **Standalone AI Chat** turned off) | Guided lead capture, quote calculators, appointment qualification, multi-step FAQs with buttons, and predictable scripts. |
| **AI bot (Direct Prompt)** | **AI Knowledge Studio** → **Standalone AI Chat** on → **Direct Prompt** | Fast-moving conversational bots whose entire context fits in one text prompt (up to 250,000 characters) — ideal for service businesses, coaches, and local lead generation. |
| **Advanced AI bot (Knowledge Base)** | **AI Knowledge Studio** → **Standalone AI Chat** on → **Knowledge Base** | Website support, documentation assistants, and larger businesses that need to train a bot on crawled web pages and uploaded PDF, TXT, or DOCX files (up to your plan's character limit). |

### Hybrid bots (Flow + AI)

You don't have to pick only one approach. Inside **Flow Builder**, you can drop an **AI Assistant** block anywhere in a scripted flow. For example:

1. Greet the visitor and ask what they need with **Multi Choice** buttons.
2. Hand them to an **AI Assistant** block backed by your Knowledge Studio or a custom prompt.
3. Let them exit the AI block using exit keywords or after a maximum number of AI replies, then collect their email and save the lead.

See [Build a hybrid Flow + AI bot](/guides/hybrid-flow-ai-bot).

## How the widget runs on your website

When you paste the Aminos script tag onto your site, the widget mounts inside a browser **Shadow DOM**. That keeps your website's CSS from breaking the chat bubble and keeps the widget's styles from affecting your site.

You can embed any bot in three ways:

- **Universal floating bubble** (`/w/chat_plugin.js`) — a chat button in the bottom-right or bottom-left corner of your page.
- **GoHighLevel embed** (`/w/chat_plugin_ghl.js`) — tuned for GoHighLevel pages and funnels.
- **Inline embed** (`/w/chat_form_plugin.js`) — places the chat window directly inside a container (`<div id="chat_form"></div>`) on the page, with optional **Responsive mode** that switches to a floating bubble on mobile screens.

## How conversations and leads are saved

- **Flow bots** save answers as the visitor progresses through questions and choices. A lead is sent to your integrations when the flow hits a **Save Data** block, when an **Email** block is answered with no later Save Data or AI block, or after a delay following an **AI Assistant** block.
- **Standalone AI bots** record every conversation in **AI Chat Log**. When **AI Lead Extraction** is enabled, Aminos scans inactive conversations (after your configured inactivity timeout, or immediately when a visitor clicks **End chat**) to extract contact details and send them to **Responses** and your enabled integrations.
- If you turn on **Do not save responses** in **Settings → General**, Aminos stops storing visitor answers and leads for that bot.

## How sessions and caching work

Visitor progress is remembered in the browser's `localStorage` and server state for the duration of **Conversation Cache Time (minutes)** (configured in **Settings → General**, default 80 minutes). Visitors can start fresh at any time using the header reset button (when **Allow users to reset chat** is enabled) or end the conversation when **Let visitors end the chat** is turned on.

Source: https://docs.aminos.ai/start/concepts/index.mdx
