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

# Quickstart

> Create a chatbot, train it on your website, and add it to your site in about two minutes.

By the end of this guide, a chatbot trained on your website answers your visitors' questions in a chat bubble on your site.

You need:

* A website where you can add a script tag to the HTML, or a site builder that lets you add custom code.
* A CustomerGPT account. New accounts start with a 14-day free trial, no credit card required.

**1. Create your account**

Open the [signup page](https://dashboard.customergpt.ai/?mode=register). Sign up with Google, or fill in your name, email address and a password and click **Sign Up**.

The trial is of Starter. To try another plan, start from its button on the [pricing page](https://customergpt.ai/pricing) instead: the signup form then names the plan your trial is for.

**2. Create a chatbot**

In **My Chatbots**, click **Create Custom Chatbot** and fill in:

* **Chatbot Name**: the name visitors see in the chat window, for example `Acme Support`.
* **Website Domain Link**: the site the chatbot will live on, for example `https://acme.com`.

Click **Create Widget**. The dashboard opens the **Customizer** for your new chatbot.

> [!WARNING]
>
> The widget loads only on the domain you enter here and its subdomains. With `https://acme.com`, it works on `acme.com` and `help.acme.com`, and on `localhost` while you develop, but not on `acme-store.com`.

**3. Train it on your website**

A new chatbot doesn't know anything yet. Open **Knowledge Base** in the sidebar.

Under **Crawl Website Links**, paste your home page, or the section you want, and click **Crawl Link**. The crawler opens pages in a real browser and follows links under that address, up to 50 pages. Leave **Remove headers, footers, sidebars, and navigation links** checked, so menus and page chrome stay out of the answers.

To add documents, drag a PDF, DOCX, TXT, MD or CSV file (up to 10 MB) onto the upload area. Scanned PDFs need OCR first. See [Upload files](https://customergpt.ai/docs/knowledge/upload-files.md).

Each source appears under **Trained Knowledge Sources**. Wait until it shows **completed** before you test.

> [!TIP]
>
> Start with the pages customers ask about most: pricing, FAQ, shipping and returns, getting started. You can add more at any time. See [Add your website](https://customergpt.ai/docs/knowledge/add-your-website.md) for crawling a larger site.

**4. Make it yours**

This step is optional. In **Customizer**, under **General Settings**, set:

* **Welcome Message Greeting**: the first message visitors see.
* **Quick Prompts / Icebreakers**: click **+ Add Prompt** to add questions visitors can click to start, such as "How much does it cost?"
* **Branding Primary Color**: the widget's main color.

Changes save as you type.

**5. Test it**

Every chatbot has a **Widget ID**, shown on its card in **My Chatbots** with a copy button. Open this address in your browser, with your ID in place of `YOUR_WIDGET_ID`:

```text theme={null}
https://widget.customergpt.ai/?widgetId=YOUR_WIDGET_ID
```

Ask the questions your customers ask. Then ask something your content doesn't cover: the chatbot should say it can't confirm the answer rather than make one up.

> [!NOTE]
>
> Test conversations are real conversations. They appear in **Chat History** and count toward your plan's monthly messages.

**6. Add it to your website**

In **Customizer**, scroll to **Get Embed Code**, keep **HTML Script** selected, and click **Copy Code**. Paste the code into your site's HTML just before the closing `</body>` tag, then publish your site:

```html theme={null}
<script src="https://widget.customergpt.ai/embed.js" data-widget-id="YOUR_WIDGET_ID" defer></script>
```

A chat bubble appears in the bottom-right corner of your site.

The other tabs under **Get Embed Code** cover other setups:

```html Lazy HTML theme={null}
<!-- Loads the widget once the page is idle, so it never slows the first render -->
<script src="https://widget.customergpt.ai/embed.js" data-widget-id="YOUR_WIDGET_ID" data-lazy="true" defer></script>
```

```jsx Next.js theme={null}
import Script from "next/script";

// In your root layout, so the widget is on every page
<Script
  src="https://widget.customergpt.ai/embed.js"
  data-widget-id="YOUR_WIDGET_ID"
  strategy="afterInteractive"
/>
```

```html IFrame theme={null}
<!-- Shows the chat panel inside a container on one page, instead of a bubble -->
<iframe
  src="https://widget.customergpt.ai/?widgetId=YOUR_WIDGET_ID"
  title="CustomerGPT Support Assistant"
  frameborder="0"
  scrolling="no"
  style="width: 100%; height: 100%; background: transparent !important; color-scheme: none;"
  allow="clipboard-write">
</iframe>
```

Using a site builder? See [WordPress](https://customergpt.ai/docs/install/wordpress.md) and [Webflow](https://customergpt.ai/docs/install/webflow.md).

## Prefer the terminal?

> [accordion] Do the same steps with the CLI
>
> The CLI needs Node.js 20 or later and a plan with API access (Growth and above).
>
> ```bash theme={null}
> npm install -g @customergpt/cli
> customergpt login
> customergpt chatbots create "Acme Support" --url https://acme.com --yes
> ```
>
> `chatbots create` prints the new chatbot's `id`. Use it in place of `BOT_ID`:
>
> ```bash theme={null}
> customergpt knowledge website add https://acme.com --chatbot BOT_ID --yes --wait
> customergpt messages send "What do you offer?" --chatbot BOT_ID --yes
> customergpt installation snippet --chatbot BOT_ID
> ```
>
> By default the CLI crawl reads up to five pages from the same site. Add `--max-pages 20` for a larger crawl. See [CLI](https://customergpt.ai/docs/cli/overview.md) for everything else.

## Next steps

> [card] [Your first week](https://customergpt.ai/docs/get-started/your-first-week.md)
>
> What to check after launch so answers improve quickly.

> [card] [Add your website](https://customergpt.ai/docs/knowledge/add-your-website.md)
>
> More ways to train: sitemaps, exact page lists, and re-syncing.

> [card] [Change how the widget looks](https://customergpt.ai/docs/customize/widget-appearance.md)
>
> Name, welcome message, and color.

> [card] [Collect leads](https://customergpt.ai/docs/leads/collect-leads.md)
>
> Ask for contact details during the conversation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.