Reads a file attached to a task. For Word, Excel, CSV, text and Markdown files it returns the text. For an image or a PDF the assistant gets only the file’s details and a link that works for one hour, not the content.
- Changes data: no
- Who can use it: Any member of the brand.
What it is for
- Read a rate sheet or a document attached to a task. See Tasks and Digital Workers.
Example prompts
- “Read the file I just attached to the task ‘Demo: Call the consignee’.”
Good to know
attachment_idis theidthattasks-add-attachmentreturns.- Text is cut at 50,000 characters and ends with “…[truncated]”.
Reference
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | The task. |
attachment_id | string | yes | The attachment. |
Returns
id, file_name, mime_type and text; for an image or a PDF, a url instead of the text.
Errors
- “Attachment not found on this task.”
- “Task not found.”