Ingest message
ingest_messageIngest one incoming message from an external channel (Beeper network, desktop mail, …) forwarded by the local comms-forward bridge. Idempotent on (channel, external_id). Stores the message and, unless auto_draft is false, generates an AI reply DRAFT (never auto-sends). Returns { ingested, message_id, draft_id }.
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": {
"channel": "<channel>",
"external_id": "<external_id>",
"body": "<body>"
},
"name": "ingest_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| sender | No | ||
| channel | Yes | Source class, e.g. 'beeper' or 'mail' | |
| chat_id | No | ||
| subject | No | ||
| agent_id | No | Drafting agent; defaults to the tenant's first active agent | |
| metadata | No | ||
| chat_name | No | ||
| auto_draft | No | Draft a reply (default true) | |
| external_id | Yes | Stable per-channel de-dupe id | |
| received_at | No | ISO-8601 timestamp | |
| sender_name | No |