Let your agent edit documents perfectly and automate work end-to-end.
// Initialize client
const client = new AgentOffice({
apiKey: process.env.AGENT_OFFICE_API_KEY
});
// Upload document
const doc = await client.documents.upload({
file: './contract.docx'
});
// Edit document
await client.documents.edit({
documentId: doc.id,
editInstructions: 'Update the effective date to January 20, 2025',
lookupText: 'This agreement is effective as of',
trackedChanges: true
});
Edits that take seconds to execute. Send edits in parallel, we will queue them and apply them in the order they are received.
Preserves visual styles, layout, and formatting. Our AI can 'see' the document.
Specify a TTL for all files uploaded; Deploy on your own infrastructure.
import { editDocument } from '@file-minion/sdk'; const response = await editDocument({ docId: 'abc123', operations: [ { type: 'replace', query: /old/g, value: 'new' }, { type: 'append', position: 'end', value: '\nSigned' } ] }); console.log(response.status);
Clear APIs, SDKs, and examples for quick integration.