# URLs

### Matches between qualification/production URLs

The equivalence of URLs allows you to add and manage equivalences between qualification and production URLs. This is particularly useful if the links displayed by your bot differ according to various criteria such as the geographical location of the user, the version of a product on which the user is located, etc.

Thus, you can automatically replace the original URL with a new URL. This process will be carried out according to the consultation space and the environment.

To add an equivalency, click **Add** and fill in the fields. Click the blue tick to validate the operation.

<figure><img src="/files/yyCaNueNn4N3fBzheB0y" alt=""><figcaption></figcaption></figure>

Use case

In this case, the goal is to replace a link in the dydu platform with a link from the online documentation in the **Documentation** consultation space. Feel free to customize the URLs and spaces for consultation during the realization of this practical case.

1. Create a knowledge like this:

<figure><img src="/files/tDfkOIA60yplI4bD9Pe6" alt=""><figcaption></figcaption></figure>

2. Go to **Preferences > Bot > Urls**.
3. Click **Add**.
4. Fill in the fields like this:

<figure><img src="/files/0KNe6QPQOr2ngaTdJ5un" alt=""><figcaption></figcaption></figure>

* **Original URL:** <https://self.dydu.ai/>
* **Destination URL:** <https://self.docs.dydu.ai/docs/en/en/Key_concepts/getting_started/>
* **Consultation space:** Defaut
* **Environment:** Qualification

  The qualification environment allows us to test our equivalence from the test bot. The production environment will allow you to establish equivalence in production.

2. Click the blue tick.
3. Test your knowledge from the test bot (or other selected environment) twice in the consultation space by **default** and in the **Documentation** (or your custom spaces).

### URLs

This topic allows you to specify the most recurring URLs for later use in knowledge actions. To do so, click **Add** and fill in the fields. Click the blue tick.

You will then find all of these URLs among the predefined URLs in a knowledge. To do so, click on the 3 dots on the right of a knwoledge answer then **Edit**.

<figure><img src="/files/17mCxDUdxR6jgmSHwE3T" alt=""><figcaption></figcaption></figure>

In the answer part (Content > Knowledge), select one of the predefined URLs and add a **Title** which will be displayed in the answer. Once the configuration of your URL is complete, click **Ok**.

Note: you can also disable the use of predefined URLs in replies by clicking **Disable**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-en.dydu.ai/preferences/bot/urls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
