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

# Train your AI agent

> Add knowledge sources, connect Google Docs as training data, and configure your agent to collect contact information.

Training your Conversation AI bot involves adding knowledge sources, writing effective prompts, and configuring what information the bot captures during conversations.

Bot training is the process of teaching your AI bot to provide accurate, context-specific responses to customer queries. Utilizing tools like the Web Crawler and Custom Bot Responses, you can build a robust knowledge base to support seamless customer interactions. Whether addressing general or specific inquiries, a well-trained bot ensures customers receive timely and accurate answers.

### Key Benefits of Training Your Bot

* ****Improved Accuracy:**** By accessing relevant data sources, your bot can deliver precise responses tailored to customer questions.
* ****Enhanced Efficiency:**** Automated responses reduce manual intervention, saving time for both your team and customers.
* ****Consistency:**** Ensure customers receive consistent, high-quality information across all interactions.
* ****Scalability:**** Support a growing customer base without increasing resource requirements.

Navigate to the Conversation AI tab within your account settings to get started.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/5ekJMua0ICwwZhKE/images/ai-agents-how-to-train-your-conversation-0-conversation-20ai.png?fit=max&auto=format&n=5ekJMua0ICwwZhKE&q=85&s=8a666649328e323fb29b0681088318b2" alt="Screenshot" width="1579" height="468" data-path="images/ai-agents-how-to-train-your-conversation-0-conversation-20ai.png" />
</Frame>

Click on the name of any configured bot.

��****Note****: The training material applies to all bots, meaning the AI bot from which the training is initiated does not impact the outcome.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/5ekJMua0ICwwZhKE/images/ai-agents-how-to-train-your-conversation-1-name.png?fit=max&auto=format&n=5ekJMua0ICwwZhKE&q=85&s=7e2e2b1891c76ea4cc063d53e9a5d778" alt="Screenshot" width="1579" height="468" data-path="images/ai-agents-how-to-train-your-conversation-1-name.png" />
</Frame>

## Bot Training

Switch to the Bot Training tab to train your AI bot, ensuring it delivers accurate and relevant responses.

Here, you can choose whether to select up to 7 knowledge bases from the dropdown or create a new knowledge base. For step-by-step instructions on how to create a knowledge base, refer to the "How to Create a Knowledge Base" article.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/5ekJMua0ICwwZhKE/images/ai-agents-how-to-train-your-conversation-2-bot-20training.png?fit=max&auto=format&n=5ekJMua0ICwwZhKE&q=85&s=c5a0a820acc9466a440cc071a6bc94c0" alt="Screenshot" width="928" height="418" data-path="images/ai-agents-how-to-train-your-conversation-2-bot-20training.png" />
</Frame>

Once selected, you will have options to include additional links via the web crawler or customize bot responses via FAQs.

### Web Crawler

The Web Crawler enables you to train your bot using publicly available information from websites, helping ensure it delivers accurate and contextually relevant responses. You can configure the Web Crawler to extract data from specific URLs, site paths, entire domains, or even public Google Docs. By default, any links added to the knowledge base will be processed and displayed here.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-3-web-20crawler.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=fd603a926bde2899c1e1686e3bdf86f6" alt="Screenshot" width="883" height="553" data-path="images/ai-agents-how-to-train-your-conversation-3-web-20crawler.png" />
</Frame>

To include additional links, select from multiple domain types based on how broadly you want to crawl the site. You can choose exact URLs, URLs with specific paths, or entire domains.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-4-domain.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=993c41f43db879e05ab099ac9044c29d" alt="Screenshot" width="862" height="325" data-path="images/ai-agents-how-to-train-your-conversation-4-domain.png" />
</Frame>

Once you have selected the appropriate URL type, enter the URL in the provided field, then click the "Get Data" button to begin crawling the URLs. The process duration will depend on the number of URLs being crawled.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-5-get-20data.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=bd7d568313d31df71aa66dcb54ce56da" alt="Screenshot" width="854" height="186" data-path="images/ai-agents-how-to-train-your-conversation-5-get-20data.png" />
</Frame>

Once the crawl is complete, you can select individual URLs or opt to "select all" to include links obtained from the "All URLs with the path" or "All URLs in this domain" options in your bot's training data.

By providing the bot with URLs, you enable the Web Crawler to extract relevant information, ensuring your bot has access to up-to-date and contextually appropriate data for customer interactions.

### Custom Bot Responses (FAQs)

Custom Bot Responses allow you to define precise answers for frequently asked questions, ensuring the bot provides consistent and accurate information, particularly for critical customer queries.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-6-bot-20responses.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=069dd5f5db3791136031688edcaf3757" alt="Screenshot" width="872" height="176" data-path="images/ai-agents-how-to-train-your-conversation-6-bot-20responses.png" />
</Frame>

### Best Practices for Custom Bot Responses:

* Keep responses clear and concise.
* Anticipate variations of commonly asked questions.
* Regularly update responses to match evolving customer needs.

Custom Bot Responses can be added by manually entering FAQs or by providing feedback during live conversations.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-7-q-26a.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=1ecde3b3744ccd971c49742ac52b93aa" alt="Screenshot" width="875" height="391" data-path="images/ai-agents-how-to-train-your-conversation-7-q-26a.png" />
</Frame>

These responses help improve the bot's consistency, accuracy, and overall effectiveness in addressing customer inquiries.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/pMRqsx_Tmg1Lacem/images/ai-agents-how-to-train-your-conversation-8-feedback.png?fit=max&auto=format&n=pMRqsx_Tmg1Lacem&q=85&s=97d4374c86086f0db28739f6a2d77e34" alt="Screenshot" width="1518" height="601" data-path="images/ai-agents-how-to-train-your-conversation-8-feedback.png" />
</Frame>

By leveraging the Web Crawler and Custom Bot Responses (FAQs), you can craft precise answers to common customer queries, improving your bot's ability to handle customer interactions efficiently and consistently.

***

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="How often should I update my bot's training data?">
    Updating your bot's training data quarterly or following major service updates ensures it remains accurate and relevant.
  </Accordion>

  <Accordion title="Can I use multiple URLs for training the bot?">
    Yes, combining various types of URLs (Exact, Path-specific, and Domain-level) can help create a more comprehensive knowledge base. Simply redo the steps listed in the Web Crawler section to train the bot using multiple URLs.
  </Accordion>

  <Accordion title="How can I ensure my bot's responses are accurate?">
    Use the feedback system, regularly test your bot by simulating customer queries, and frequently update your FAQs.
  </Accordion>

  <Accordion title="What happens if my bot cannot answer a question?">
    The bot may request clarification or escalate the query to a human agent based on its configuration.
  </Accordion>

  <Accordion title="What types of information work best for Custom Bot Responses?">
    Provide precise, critical information like pricing, policies, and instructions to effectively address common customer inquiries.
  </Accordion>
</AccordionGroup>

***

## Training with Google Docs

Leveraging Google Docs for training your Conversation AI bot offers numerous benefits, including efficient training processes, real-time corrections, and expanded training options. This integration provides a streamlined approach to enhancing your bot's conversational abilities, making it easier to ensure accurate and relevant interactions. Follow these steps to utilize Google Docs in your bot training and take advantage of its versatile capabilities.

### Benefits

* ****Efficient Training****: Google Docs provides a straightforward and effective platform for enhancing your bots' conversational abilities, streamlining the training process.
* ****Real-time Corrections****: This integration allows for the flexibility to make corrections and refine bot responses in real-time, ensuring interactions are accurate and contextually relevant.
* ****Expanded Training Options****: With the addition of Google Docs, users now have an alternative to website URLs for comprehensive bot training, offering more versatility in training materials.

***

## Setting The Knowledge Base

### Check Document Permissions

Ensure the Google Docs document is set to public permissions to allow data fetching. Adjust permissions if necessary.

### Creating The Knowledge Base

Navigate to the "Knowledge Base" section in your account settings and click "+ Create Knowledge Base."

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-0-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=6073b4f5c0e78b989972564cfbb49083" alt="Screenshot" width="1578" height="302" data-path="images/ai-agents-train-your-conversation-ai-bot-0-image.png" />
</Frame>

Enter a Name to easily identify the knowledge base, optionally you can add a Description as well, then click Create.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-1-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=c63a80b64f3777509994c10ea83e6a8f" alt="Screenshot" width="656" height="529" data-path="images/ai-agents-train-your-conversation-ai-bot-1-image.png" />
</Frame>

Click "+ Add Source" and select Web Crawler.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-2-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=fbf0848ecf5e4a2f4529a7cc2bb68013" alt="Screenshot" width="1573" height="386" data-path="images/ai-agents-train-your-conversation-ai-bot-2-image.png" />
</Frame>

Select Exact URL (1), enter the public URL of the Google Docs document (2) you wish to use for training, then click Extract Data (3).

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-3-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=1535f07dc696af5e2872f2c07ebe113c" alt="Screenshot" width="867" height="286" data-path="images/ai-agents-train-your-conversation-ai-bot-3-image.png" />
</Frame>

***

## Adding The Knowledge Base

To add it, navigate to the Conversation AI tab and edit or create a bot.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-4-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=318327f3f2622118e98d70a73ba16b69" alt="Screenshot" width="1604" height="460" data-path="images/ai-agents-train-your-conversation-ai-bot-4-image.png" />
</Frame>

Navigate to the Bot Training Tab.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-5-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=dbef4f00c0160cf97f1d8fdad0c7ee11" alt="Screenshot" width="1059" height="421" data-path="images/ai-agents-train-your-conversation-ai-bot-5-image.png" />
</Frame>

Select your Knowledge Base from the drop-down menu.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/JAA-4AwPEX6sdRhx/images/ai-agents-train-your-conversation-ai-bot-6-image.png?fit=max&auto=format&n=JAA-4AwPEX6sdRhx&q=85&s=899a6aaa530006ef28ff2282166da32e" alt="Screenshot" width="1050" height="574" data-path="images/ai-agents-train-your-conversation-ai-bot-6-image.png" />
</Frame>

Click Save in the bottom right corner, and you're done. With the data fetched, you can now leverage Google Docs for training your conversational bot, enhancing its capabilities for handling FAQs, appointment scheduling, and more across various channels.

***

## Collecting contact information

The Add Contact Info feature is designed to help users easily add or update contact information directly through an AI bot. This feature allows for seamless management of contact details, including name, phone number, email, business name, and more. By using this tool, users can ensure that their contact data is always accurate and up-to-date, significantly improving data management processes.

***

## How It Works

### Access the Add Contact Info Feature

Navigate to the Conversation AI settings in your account, then edit an existing bot, or create a new one.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--0-conversation-20ai.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=8d2e606942857c3d68ebe7ebeef15265" alt="Screenshot" width="1608" height="686" data-path="images/ai-agents-how-to-add-contact-info-using--0-conversation-20ai.png" />
</Frame>

Head to the Bot Goals tab.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--1-goals.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=c7a13af4d9822223fcdb6545983d3aeb" alt="Screenshot" width="1559" height="644" data-path="images/ai-agents-how-to-add-contact-info-using--1-goals.png" />
</Frame>

Click on the Add Contact Info button to access the contact details.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--2-add-20contact-20info.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=6cf547cc912f7bd74a4c0d43425822c6" alt="Screenshot" width="855" height="531" data-path="images/ai-agents-how-to-add-contact-info-using--2-add-20contact-20info.png" />
</Frame>

If you're creating a new bot, ensure that the bot name is edited or a new name is assigned before accessing this feature.

### Set Up the Fields

1. ****Action Name****: Assign an action name to clearly identify the update. For example, "Contact's Date of Birth."
2. ****Select Field****: Choose the specific field you wish to update, such as name, phone number, email, business name, or date of birth.
3. ****What to Update****: Provide a brief description of the update. For instance:

* For ****Date of Birth****: "This is the birth date of the contact."
* For ****Business Name****: "This is the business name of the contact."

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--3-action-20name.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=9f31c98bac65d8ee215d4a6811f07c2d" alt="Screenshot" width="1013" height="824" data-path="images/ai-agents-how-to-add-contact-info-using--3-action-20name.png" />
</Frame>

Add extra fields if necessary, by inputting the required information in the provided fields.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--4-new-20field.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=947e0964370fe509b0c69d62c6260711" alt="Screenshot" width="1015" height="342" data-path="images/ai-agents-how-to-add-contact-info-using--4-new-20field.png" />
</Frame>

Click Save to finalize the settings.

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--5-save.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=0c602ed566c3e1c34016ece274232233" alt="Screenshot" width="1029" height="351" data-path="images/ai-agents-how-to-add-contact-info-using--5-save.png" />
</Frame>

### Output Example (Optional)

Include an example of the updated information in the additional information section for clarity (e.g., "5th Jan 1990").

<Frame caption="Screenshot">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/c_IPTSnbNy09cl5O/images/ai-agents-how-to-add-contact-info-using--6-additional-20info.png?fit=max&auto=format&n=c_IPTSnbNy09cl5O&q=85&s=644c98b3cf09c596387a3837afae82d1" alt="Screenshot" width="749" height="352" data-path="images/ai-agents-how-to-add-contact-info-using--6-additional-20info.png" />
</Frame>

By following the outlined steps, you can ensure that your bot efficiently manages contact information, enhancing the overall customer experience and operational efficiency.

### ✍️Important Notes

* The bot will only update fields that are empty in the contact information.
* Email and phone numbers are automatically updated and do not require manual input through this feature.

### Best Practices for Bot Prompts

After saving or updating contact information, it is essential to provide explicit instructions in the bot's prompt for collecting customer details. For example: "Ask the customer for their date of birth."

Without this instruction, the bot will not prompt for the required information, and the field will remain unfilled.

### Example Prompt for Collecting Contact Information:

Before booking an appointment, always ask the following questions in order:

1. Ask for the customer's name.
2. Ask for the customer's email.
3. Ask for the customer's phone number.
4. Ask for the customer's date of birth.
5. Ask for the customer's business name.
