# Creating Your First Chatbot

## Create Your Chatbot

To create a Bot, click on the **“create agent”** button on the top right hand corner of the chatbots page.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fxa0lBGcydzsBI1fOnyki%2Fimage.png?alt=media&#x26;token=b7687471-a281-4279-80e5-62026afb152b" alt=""><figcaption></figcaption></figure>

Complete the 3 simple steps to create your first chatbot in 5 minutes.

***

## Step 1: Filling in the Basic Details

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-3a7f754ee5b18ac1a2d29d2a8c82f0c2181c03f3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

* **Name of Chatbot** – Use this empty field to name your chatbot as they appear to the customer
* **Tagline** – Refers to the default tagline a user would see under the chatbot name
* **Chatbot color** - Pick a color theme for your chat widget. The chatbot's header color will be the same as the hex code color chosen.

***

## Step 2: Training your Chatbot on Data Sources

You can train your chatbot **via** **multiple data sources**, such as website links, files and videos as well as Google Drive folders

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2F2Q4tiyGit6NJCU8JJzSC%2Fimage.png?alt=media&#x26;token=04eabd4f-1eba-4833-bfce-1772e0c7bb3a" alt=""><figcaption></figcaption></figure>

***

### Types of Data Sources

*<mark style="background-color:yellow;">Click below to expand 👇🏼</mark>*

<details>

<summary>Website links 🔗</summary>

![](https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-34365d47f81f354ee2a6d4976c6c89ec6857ca1c%2Fimage.png?alt=media)

To train your chatbot on a website link, select the **"URL"** button. Insert the link to your website into the field.

If you wish to only crawl a specific page of your website, or a specific product folder, you can toggle the dropdown to change to the following options:

* **Entire website crawling** - You can select the “entire website” dropdown to allow Wonderchat to store and access your whole website.
* **Subdirectory crawling** - If you want to only store a subdirectory of your website, you can give a link such as “<https://example.com/blog”> and the tool will only crawl links with /blog/ at the back.
* **Single page crawling** - If you want the chatbot to only crawl one page of your website, you can edit the dropdown to select “Single page”

</details>

<details>

<summary>Files and Videos (.pdf, .ppt, .docx, .csv, .json, .txt) <span data-gb-custom-inline data-tag="emoji" data-code="1f5c3">🗃️</span></summary>

<mark style="background-color:purple;">**Option 1: Uploading your own File & Video**</mark>

You can train your chatbot on all file and video formats

![](https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-176b08afad93c25e0ef2cfa52e94e8773c428a6f%2Fimage.png?alt=media)

To train your chatbot on these files, select the "File & videos" option and upload any file of your choice.

* We accept PDF, CSV, TXT, DOC/DOCX, PPT, JSON formats for text files.

<mark style="background-color:purple;">**Option 2: Using Video Links**</mark>

To train your chatbot on video files and youtube links, either upload any video file or add a Youtube link to a public video.

![](https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-b9b0fc84348f66b2c7878661d045a774b107f507%2Fimage.png?alt=media)

* Youtube links provided must have a <mark style="color:red;">**publicly viewable**</mark> video link.
* We accept video file formats of FLAC, MP3, MP4, MPEG, MPGA, M4A, OGG, WAV, WEBM (Audio/Video).

</details>

<details>

<summary>Google Drive files <span data-gb-custom-inline data-tag="emoji" data-code="1f4c1">📁</span></summary>

To train your chatbot on Google Drive files, click on <mark style="background-color:yellow;">**"Connect to Google Drive"**</mark> to train it on the drive's content.

![](https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-c7437b163b5d30b92380200cbe6ffca7217d158a%2Fimage.png?alt=media)

</details>

***

### URLs to Ignore When Indexing

To make sure that your Chatbot does not store old links, we would recommend that you specify **"URLs to ignore"** that you **do not want the chatbot to index**.

> 💡 The difference between ignoring URLs and deleting URLs is that the former will completely exclude those URLs from ever being crawled. This means that if you choose to reindex your chatbot, ignored URLs will not be crawled.

Deleting URLs is a one-off deletion, and deleted URLs are removed from your chatbot. However, in the event of a re-crawl, webpages that were previously deleted would still reappear.

#### How to input URLs to ignore from your site when indexing

To ignore a single page url, copy and paste the url of the specific page you wish to ignore.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-1120bbd6863d4a1bd9c9b279badbd077b7886b51%2Fimage.png?alt=media" alt="" width="563"><figcaption><p>In the example above, the one page url https://wonderchat.com/blogs will be ignored</p></figcaption></figure>

To ignore an entire subdirectory of pages such as <https://wonderchat.io/blogs> you will need to add an asterisk (/\*) behind the url name.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-e6e27e39e7b46e9641e05d8a2bffe5a519a6e492%2Fimage.png?alt=media" alt="" width="563"><figcaption><p>In the example above, the entire subdirectory https://wonderchat.com/blogs will be ignored.</p></figcaption></figure>

Once the link is ignored, it will not be recrawled for your monthly chatbot re-crawl or if you press the re-crawl button.

***

## Step 3: Customize your chatbot's responses

### <mark style="background-color:yellow;">Selecting the best AI model for your chatbot</mark>

We offer a diverse selection of 10 AI models, each excelling in different areas. Our lineup includes models from:

* OpenAI
* Claude
* Gemini
* Llama
* Minstral
* Cohere
* and more.

The most popular models that have been proven to function well are the <mark style="color:blue;">**Claude Sonnet models**</mark> and the <mark style="color:blue;">**GPT-4 Turbo**</mark> models.

For a more detailed overview of which is the best chatbot model to pick from, you can view the AI model comparison and analysis [<mark style="color:purple;">**here**</mark>](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/selecting-between-ai-models-for-your-chatbots).

{% content-ref url="selecting-between-ai-models-for-your-chatbots" %}
[selecting-between-ai-models-for-your-chatbots](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/selecting-between-ai-models-for-your-chatbots)
{% endcontent-ref %}

***

### <mark style="background-color:yellow;">Defining the role of the chatbot</mark>

To customize your chatbot's responses, decide on the **role of your Chatbot.** Users can either choose a pre-made role prompt for their chatbot, or write their own custom prompt.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-812c4cd235e1c28af1d696c9848d070182f49854%2Fimage.png?alt=media" alt=""><figcaption><p>Pick the role of the chatbot for your chatbot</p></figcaption></figure>

#### <mark style="background-color:purple;">Pre-made Role Prompts</mark>

Pre-made role prompts give your chatbot a personality and default brand voice according to the role selected.

* **Copywriter** - A chatbot set to the role of a copywriter will behave like a marketing copywriting assistant.
* **Salesperson** - A chatbot set to the role of a copywriter will behave like a sales person and try to sell your website to your website visitors.
* **Customer Support agent** - A chatbot set to the role of a customer support agent will behave like a customer support staff and try to help your website visitor troubleshoot their issues.
* **Researcher** - A chatbot set to the role of a researcher would be able to act like a researcher and make references to information outside of the webpages stored within their knowledge base.
* **General** - A chatbot set to the role of a general chatbot would be able to answer any questions limited to the scope of your knowledge base.

#### <mark style="background-color:purple;">Custom Prompts</mark>

Custom prompts allow you to customize the role of the chatbot according to the brand personality and voice that you desire.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-7bf1601d82475f024caf6ee15936b5eee24fc982%2Fimage.png?alt=media" alt=""><figcaption><p>Click on <strong>'write your own prompt'</strong> to compose your own prompt</p></figcaption></figure>

To set your own custom prompt, select the "Write your own prompt" option and edit the prompt field to configure the role of your chatbot.

The custom prompt helps you define your own specific instructions for your chatbot to follow.

You can use the following sample prompt as a template to write your own custom prompt:

*<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 %}

***

### Setting the Chatbot's Default Language

You can set the **default chatbot language** by selecting the language dropdown below.

* **English** is the universal language, a chatbot can switch between English an any language when responding to user queries.
* Setting a non-english language will force the chatbot to default to the non-english language only.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-c4e57d36ee33b0f58aed77f056bb4f0f21f7a4f3%2Fimage.png?alt=media" alt=""><figcaption><p>Select the preferred language of the chatbot from the list</p></figcaption></figure>

***

### Greeting and Fallback Messages

The greeting message field allows you to **set custom responses** to greet website users, and the fallback message fields allows you to answer them in situations where the chatbot is unsure of what to respond.

#### <mark style="background-color:purple;">**Greeting Message**</mark>

The greeting message field allows you to set custom responses to greet website users at the start of each chat.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-e871e5057d4849a7cd2053c92a3ef59580b7e33a%2Fimage.png?alt=media" alt=""><figcaption><p>A greeting message will appear at the start of each chat when a site user engage with the bot</p></figcaption></figure>

#### <mark style="background-color:purple;">**Fallback Message**</mark>

Similarly, the fallback message appears when the chatbot is unable to respond to a user query. Customize this message to fit your brand voice.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-3f2c613e71ec846f791368eaac42a8ba0445dbe4%2Fimage.png?alt=media" alt=""><figcaption><p>The preset fallback message will appear whenever the chatbot is unsure of how to respond</p></figcaption></figure>

Once finished, you can click on <mark style="color:blue;">**‘create’**</mark> and your chatbot will load-up.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-3653ba60714425ec12d5af76e709c01823132c43%2Fimage.png?alt=media" alt=""><figcaption><p>Click on <strong>"Create"</strong> finalize chatbot</p></figcaption></figure>

The average bot that scans a website with 100 pages will load in around 5 minutes. Bigger websites can expect a longer loading time, but you will receive an email in your inbox once your chatbot has completed its training.

***

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