If you have multiple locations, it's crucial that your chatbot provides the correct information for each location. This can easily be achieved by setting specific instructions that the chatbot will follow.
Step 1: Adding Knowledge
You have three options for adding this knowledge:
- Use Web Crawler: If your website contains detailed information per location, you can use the Web Crawler. Add your website to the Web Crawler. This article will guide you through adding your URL to the Web Crawler.
- Use Document Scraper: If you have numerous locations with varying details, consider compiling all information into a document. Add the document to the Document Scraper, following the steps in this article.
- Use Domain Knowledge: If you only have a few locations, you can manually add the information for each location in the Domain Knowledge section.
- Example:
Location A
Kingsroad 3
1234 AA Utrecht
+31 300 123 45 67
Opening hours: Tue-Thu 08:00 to 17:00
Closed on public holidays
Pickup available
Location B
Kingsroad 2
1234 AA Utrecht
+31 300 123 45 67
Opening hours: Mon-Fri 08:00 to 17:00
Closed on public holidays
Pickup not available
Step 2: Writing an Instruction
Once you've added the information via the Web Crawler, Domain Knowledge, or Document Scraper, you need to instruct the chatbot when to provide this information. This can be done through a specific instruction:
- Example:
When someone asks about opening hours, always first ask which location they are referring to. Only after knowing the location, provide the appropriate response.
If you used the Document Scraper to add all locations into the Domain Knowledge, you must instruct the chatbot on how and when to use this information. To do so, refer to the Source URL of the specific document.
You can find the Source URL by clicking the three dots next to the document in the Document Scraper, downloading it, and opening it in your web browser. The link in the URL is the Source URL. Note: this only works for PDF files.
Example Source URL:
https://storage.googleapis.com/watermelon-storage/public/chatbot/files/66f3abf45ffb716129e7071a_3835634cafa6fc56_Locations.pdf
Note: The chatbot cannot link the document name to its contents. Therefore, always refer to the Source URL.
Example Instruction:
Use the provided information, enclosed in triple quotes, to answer questions about our different locations. If the information can't be found within the provided data, do not offer any information.
```
Source URL: [https://example.com/faq]. Only use links from this Source URL. Do not create links that do not exist on this Source URL.
```