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

# Limit your Agent to a specific source

> Learn how to guide your AI Agent so it answers only from a chosen URL or document.

By default, your AI Agent uses both your **Watermelon knowledge** and **OpenAI’s general knowledge**. Sometimes you want your AI Agent to answer *strictly* based on one piece of information, for example a specific FAQ page, policy document, internal manual or product page.

## **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

<Tip>
  If you want to limit your Agent *to specific topics*, also check our [article on setting guardrails](/help-center/features/setting-guardrails).
</Tip>

<Warning>
  It’s not possible to make your AI Agent completely ignore OpenAI’s general language understanding. The model still needs that to interpret questions and follow instructions.

  What *is* possible: guiding and restricting **what content it may use** to answer questions.
</Warning>

## 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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\](https://example.com/faq/returns\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)** Only use the information from this page.\
> """

<Note>
  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.
</Note>

## **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**

1. Go to your **source Files.**
2. Download the document you want to use.
3. Open it in your browser.
4. Copy the **URL** from the address bar.

You can now use this URL in your instruction.

### **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\\\\\\\\](https://example.com/docs/installation-manual.pdf\\\\\\\\) Only use the information from this document.\
> """
