Why limit your Agent to a specific source?
Restricting your Agent to a single source helps you:- Ensure responses are fully up to date
- Prevent answers based on general knowledge
- Keep all output aligned with official content
How to get the best results
For consistent behaviour:- Be explicit about the exact URL or document
- State when the rule applies (all questions or specific topics)
-
Explain what to do when the answer is not available. Example:
If the information is not available, say you cannot answer.
Limit your Agent for all questions
You can instruct your Agent to always answer using only one source. Add an instruction in your Instructions.Example: limit all answers to one website
For all questions, use ONLY the information provided between the triple quotes. If the information is not available there, respond with: “I’m sorry, but I can’t provide an answer to that.”
"""
Source URL: [https://examplewebshop.com/](https://examplewebshop.com/\) Only use the information found on this website.
"""
Limit your Agent to a specific URL for specific topics
If you only want to restrict the Agent for certain subjects, you can write a targeted instruction.Example: limit answers about “returns” to one URL
For all questions related to returns, use ONLY the information provided between the triple quotes. If the answer is not available there, say that you cannot answer.
"""
Source URL: https://example.com/faq/returns\\\\\\\\\\\\\\\\ Only use the information from this page.
"""
Make sure your instruction clearly mentions which topic the restriction applies to (for example “returns”, “delivery terms”, “cancellations” etc.). This helps the Agent decide when to follow this rule.
Limit your Agent to a specific document
Sometimes the source is not a public web page but a PDF, manual, policy, or internal file. To do this, you first need the Source URL of the document. Finding the Source URL of a document- Go to your source Files.
- Download the document you want to use.
- Open it in your browser.
- Copy the URL from the address bar.
Example: restrict answers about “installation” to one PDF
Here the intention is: When someone asks about installation, the Agent may ONLY use the installation manual.For all questions about installation, use ONLY the information provided between the triple quotes. If the answer is not available, say that you cannot answer the question. Do not mention the document itself.
"""
Source URL: https://example.com/docs/installation-manual.pdf
Only use the information from this document.
"""

