add_document
Attach a document (typed info) to a record BY REFERENCE — no file bytes, url just points at something hosted elsewhere. Required: entity ('lead'|'contact'|'account'|'campaign'), entity_id, title. Optional: doc_type (default 'note'), description (the analyzable text), source, url, amount, currency, status, occurred_at (ISO). To attach an actual FILE (get it stored + optionally AI-summarized), use upload_document instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>",
"entity_id": "<entity_id>",
"title": "<title>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Link to where the document is hosted | |
| title | Yes | Title of the document | |
| amount | No | Amount | |
| entity | Yes | Record type the document is attached to: lead, contact, account or campaign | |
| source | No | Origin of the document (optional provenance) | |
| status | No | Initial status | |
| currency | No | Currency code (ISO 4217, e.g. EUR) | |
| doc_type | No | Type of document (default 'note') | |
| entity_id | Yes | ID of the record | |
| description | No | Description of the document | |
| occurred_at | No | When it happened (ISO 8601) |