document_id
.
Prerequisites:
- Understanding how to upload documents and obtain their
document_id
usingagent.upload_document
as described in Managing Documents. - Familiarity with creating Tasks or defining Workflows.
Concept: Referencing document_id
in Instructions
The core idea is to embed the document_id
(obtained when uploading a file) directly into the instructions
you provide for a task or a workflow step. This tells the automation agent to access and utilize the content of that specific document as part of its execution.
How it Works (Conceptual):
The agent needs to be capable of understanding instructions that reference document IDs. You construct your instructions to guide the agent, for example:
- “Using the resume (ID: doc_resume_123) and cover letter (ID: doc_cover_456), complete the job application at the target URL.”
- “Referencing the financial report (ID: doc_q1_report), extract the ‘Total Revenue’ figure and enter it into the spreadsheet.”
- “Open the contract (ID: doc_contract_abc) and find the section detailing payment terms.”
document_id
as a clear identifier within the context of the instruction, enabling the agent to retrieve and use the correct file.
Use Case 1: Submitting Job Applications
Upload a candidate’s resume and cover letter, then use a task or workflow to automatically fill out online job applications using the content from those documents.Use Case 2: Financial Data Aggregation (Workflow)
Upload monthly bank statements (e.g., PDFs) and create a workflow to extract key figures, compiling them into a summary.This pattern allows for powerful and flexible automations where the agent’s actions are dynamically informed by the content of specific, pre-existing files identified by their
document_id
.