- Content Extraction — For specific file types, extracts and uses content as context.
- Metadata Storage — For all supported file types, stores file information for reference.
Content Extraction and Contextual Use
For selected file types, the platform extracts content and passes it as context to the agent. This allows the agent to respond based on the file’s content without the user having to summarize or retype it. How it works:- User uploads a document using the attachment option.
- The platform automatically extracts content from supported files.
- The agent uses the extracted content to generate contextually relevant responses.
File Metadata
For all supported file types, the platform captures file metadata as artifacts stored insessionMeta system memory.
Stored Metadata Fields
| Field | Description |
|---|---|
fileId | Unique identifier for the uploaded file |
type | Type of data |
filename | Original filename as uploaded by the user |
mimetype | MIME type of the uploaded file |
isActive | Whether the file is active for the current conversation. See File State Management. |
downloadUrl | Temporary download URL, valid for 30 days from upload |
Accessing Metadata in Code Tools
The download URL and other metadata can be accessed in code tools for further processing..csv sales report. A code tool retrieves the download URL, downloads the file, and runs a custom analysis script.
Accessing Metadata in Prompts
To reference uploaded file information in agent or orchestrator prompts:Supported File Formats
| Format | Content Extraction | URL Generation |
|---|---|---|
PDF (.pdf) | ✅ | ✅ |
Microsoft Word (.docx) | ✅ | ✅ |
Text (.txt) | ✅ | ✅ |
JSON (.json) | ✅ | ✅ |
Spreadsheets (.csv, .xls, .xlsx) | ❌ | ✅ |
Presentations (.ppt, .pptx) | ❌ | ✅ |
Web files (.htm, .html) | ❌ | ✅ |
Images (.gif, .png, .jpg, .jpeg, .bmp) | ❌ | ✅ |
Rich Text (.rtf) | ❌ | ✅ |
Using the Attachment Feature
In the Playground, use the Attach option in the chat widget to upload files while testing. For file size and count limits, see Attachment Configuration.File State Management
Each uploaded file is assigned a state that controls whether its content is used in the current conversation.- Active — Default state when a file is uploaded. The file’s content is available for use in the current conversation.
- Inactive — Uncheck the file in the attachment list to make it inactive. The content is excluded from the current conversation but the file is not deleted and can be reactivated at any time.
Important Notes
- Files can be attached at any point during a conversation.
- There are limits on file count and size. See App Configurations for details.
- Download URLs are temporary and expire 30 days after upload.
- Content extraction is supported only for specific file types. See the supported formats table above.