> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/creating-your-first-chatbot.md).

# Creating Your First Chatbot

How to set up your first chatbot in 5 minutes.

## Create your agent

Go to **Agents** in the left sidebar and click **Create Agent** at the top right. The **Create an agent** window opens. Everything in it can be changed later in the agent's settings.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-d02a89502ba9ca61cef29be4e19fcd04158d7d93%2Fcreate-agent.png?alt=media" alt="The Create an agent window with Profile, Knowledge and How it answers sections"><figcaption><p>Create an agent in one window</p></figcaption></figure>

The window has three sections: **Profile**, **Knowledge** and **How it answers**. Fill them in, then click **Create agent**.

***

## Profile

* **Upload logo**: the picture shown on your chat widget.
* **Name**: the agent's name, as visitors see it.
* **Tagline**: the line under the name in the widget header, for example "AI Assistant".
* **Widget colour**: the main colour of your chat widget.
* **Greeting message**: the first message visitors see when they open a chat.

***

## Knowledge

Add at least one website, file or FAQ for the agent to learn from. Pick a source:

<details>

<summary>URL 🔗</summary>

Enter your website address and choose **What to crawl**:

* **Entire site**: every page Wonderchat can reach from that address.
* **Subdirectory only**: only pages under a path you enter, for example `https://acme.com/blog/`.
* **This page only**: just that page.
* **Sitemap**: every page listed in a sitemap, such as `https://acme.com/sitemap.xml`.

Click **Add another URL** to add more.

Click **Crawl settings** for more options:

* **Use the JavaScript crawler**: slower. Turn it on if your pages need JavaScript to show their content.
* **Include images**: the agent can show images from these pages in its answers.
* **Skip these URLs**: pages the agent should never crawl, one per line. Use `**` as a wildcard, for example `https://acme.com/blog/**`. Skipped pages also stay out of later recrawls.
* **Session cookie**: for pages behind a login. See [Private Sites Crawling](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/how-to-crawl-and-update-private-sites.md).

</details>

<details>

<summary>File 🗃️</summary>

Drop files into the upload area, or click to choose them. Supported files are PDF, Word, PowerPoint, Excel, CSV, TXT, Markdown, JSON and images (PNG, JPG, GIF, WebP).

Audio and video files (such as MP3, MP4, M4A, WAV and WebM) are supported on the **Scale** plan and above.

</details>

<details>

<summary>Google Drive and SharePoint 📁</summary>

Choose **Google Drive** to pick files from your Drive, or **SharePoint** to add files from Microsoft SharePoint (**Scale** plan and above).

</details>

<details>

<summary>FAQ 💬</summary>

Add questions and answers by hand. Give each FAQ a **Title** and **Content**, and click **Add another FAQ** for more.

</details>

<details>

<summary>More sources</summary>

You can also add a **Shopify** store or a **SCORM** course package (.zip). Helpdesk and wiki sources such as **Zendesk**, **Freshdesk**, **Help Scout**, **Confluence** and **Email** connect after the agent is created, from its **Data Source** settings.

</details>

***

## How it answers

* **AI model**: the model that writes the answers. See [Selecting between AI models](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/selecting-between-ai-models-for-your-chatbots.md).
* **Preset**: a starting role, such as **Customer support** or **Salesperson**. It fills in the system prompt. Editing the prompt switches the preset to **Custom**.
* **System prompt**: the core instructions the agent follows.
* **Reply language**: the language the agent answers in.
* **Cite sources**: show visitors where each answer came from.
* **Fallback message**: sent when the agent can't find an answer in your knowledge.

You can change all of these later in the agent's settings under **Model & Behavior**.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-8a4358a7c76d936a88d6a71246d41713ae7fa9c2%2Fmodel-behavior-instructions.png?alt=media" alt=""><figcaption><p>You can change the Preset or edit the System prompt anytime under Model &#x26; Behavior ▸ Instructions</p></figcaption></figure>

### Writing your own prompt

To write your own instructions, edit the **System prompt**. You can use this sample as a template:

*<mark style="background-color:yellow;">Sample Prompt</mark>*

{% code overflow="wrap" %}

```
You are [Name of Chatbot], an AI [Role of Chatbot] at [Name of Company]. Embodying the traits of helpfulness, professionalism, cleverness, and friendliness, your primary role is to assist users with their queries regarding [Name of Company]. You act as an expert in all things [Name of Company], providing answers and assistance based on your extensive knowledge of the product.

Remember, your responses should be based exclusively on your understanding of [Name of Company]. Abstain from responding to queries unrelated to [Name of Company], and always adhere strictly to the following rules:

RULES:

1. Always adhere to these rules without exception.
2. Your answers should solely be based on your comprehensive understanding of [Name of Company]
3. Do not respond to queries unrelated to [Name of Company]
4. If a user asks a question unrelated to [Name of Company], respond with "I apologize for any inconvenience, but I’m not sure about this. For additional assistance, please reach out to our support@yourcompany.com.
5. Only share links that are part of your source data or the official [Name of Company] sources.
6. If you cannot find an answer within your [Name of Company] knowledge base, guide users to the support page at [Link to support page] so they can contact [Name of Company] Support.
7. Consistently maintain your role as [Name of Chatbot], the [Name of Company] AI [Role of Chatbot], in all interactions.
8. Ensure that every answer you provide is something you are confident is true, based on your [Name of Company] knowledge.

By strictly adhering to these rules, you will effectively fulfil your role as [Name of AI], providing users with accurate and trustworthy information about [Name of Company].
```

{% endcode %}

***

## After you create the agent

Click **Create agent**. Wonderchat starts learning from your content. A site with about 100 pages takes around 5 minutes; bigger sites take longer. You'll get an email when the agent is ready.

To change anything later, go to **Agents** and click **Edit** on the agent's card. Settings are grouped into:

* **Agent**: Profile, Model & Behavior, Data Source, Tools, Workflows, Security, Team and Advanced.
* **Appearance**: Widget Style, Home Page, Chat Menu and Installation.
* **Engagement**: Leads, Handover, Live Chat, Notifications and Tags.

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
