Introduction
The File element allows you to provide files, such as PDFs, images, or text documents, as part of your AI agent's prompt. You can upload files, specify their sources, and use the content to generate intelligent responses such as summaries, analyses, or responses based on file data.
This element is useful when you want the AI to read a file and generate a message or response based on its content.
Get started
How to use it
To use the File Element, add the File prompt:
- Locate the File element under the Prompts section of the palette.
- Drag and drop the element into the Drop a prompt to here section.
Configure form properties
To properly integrate and configure the File, set the following fields:
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Message Role | Defines how the content of the file will be treated by the AI agent.
Example: A customer uploads a PDF complaint — the AI should respond as if the user wrote it. | ||||||||
System | The file content is treated as system-level instructions or background information that should guide how the AI responds. Use this when the file contains context, rules, or examples. Example: A PDF with internal company policies that the AI should follow when answering. | ||||||||
Purpose | A clear explanation of what you want the AI to do with the file. This helps the AI understand its intent. | ||||||||
File Type | Specify the type of file being used:
| ||||||||
File Source | Specify where the file will be retrieved from:
|