# A.I. Agents - Sending Files

## Getting link inside the File Manager

To get the link of a file in the [File Manager](/en/topics/general/file-manager.md) (whether a new one or already among the instance's uploads), just right-click on it and select **"View File"**. The link will open in a new tab and, with it, it will be possible to train the AI Agent to send the file.

<div align="center" data-full-width="false"><figure><img src="/files/99de1e1a41eb63888950f5b9d9a2bc0c519e1693" alt=""><figcaption><p><em>File Manager.</em></p></figcaption></figure></div>

<figure><img src="/files/19910a7b1ce592f2e51058ebd0f14f5331553ff3" alt=""><figcaption><p><em>File link.</em></p></figcaption></figure>

## Configuring the training

For the file to be sent to the lead, you need to define a condition linked to the link.\
For example: when the lead requests the **Best Practices Guide**, the system will automatically send the corresponding file (for example, a `.docx`).

This configuration can be done in the **Custom Background** or in **Additional Rules**, within the Contextualization tab, or also in **Questions and Answers** of the skill [Database](/en/topics/artificial-intelligence/ai-agents/ai-agents-database.md).

In the example below, you can see the configuration in the **Custom Background** and then the test where the file is sent during the conversation.

<figure><img src="/files/0dad506120eeaa75d8621d4e665728116097dab9" alt=""><figcaption><p><em>Contextualization tab.</em></p></figcaption></figure>

<figure><img src="/files/7723516241e567e686b9e3890b0567a55b120b0c" alt=""><figcaption><p><em>Customer service interaction.</em></p></figcaption></figure>


---

# 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.sprinthub.com/en/topics/artificial-intelligence/ai-agents/ai-agents-sending-files.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.
