add_lead_message
Record a channel message on a lead's communications timeline (LinkedIn/WhatsApp/Signal/email/note…). Required: lead_id, channel, body. Optional: direction ('inbound'|'outbound', default inbound), sent_at (ISO), sender, contact_id, external_chat_id, external_message_id, inbound_message_id (the id from list_inbound_messages: sender, sent_at, external_chat_id and external_message_id default to that message's values, and it then counts as assigned). If external_message_id is given and already stored, it is not duplicated (idempotent sync).
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": {
"lead_id": "<lead_id>",
"channel": "<channel>",
"body": "<body>"
},
"name": "add_lead_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Body text | |
| sender | No | Sender of the message; defaults to the linked inbound message's sender | |
| channel | Yes | Channel of the message, e.g. linkedin, whatsapp, email or note | |
| lead_id | Yes | ID of the lead | |
| sent_at | No | Sent time (ISO 8601) | |
| direction | No | inbound or outbound (default inbound) | |
| contact_id | No | ID of the contact | |
| external_chat_id | No | ID of the external chat | |
| inbound_message_id | No | id of a message from list_inbound_messages; marks it assigned | |
| external_message_id | No | ID of the external message |