link_channel
Upsert a messaging-channel identity onto a lead/contact/account so future conversations match and provenance is recorded. Required: channel, external_chat_id, lead_id. Pass contact_id + account_id too when known.
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_chat_id": "<external_chat_id>",
"lead_id": "<lead_id>"
},
"name": "link_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | No | The person's handle on that channel | |
| channel | Yes | Messaging channel of the identity, e.g. whatsapp or linkedin | |
| lead_id | Yes | ID of the lead | |
| account_id | No | ID of the account (company) | |
| contact_id | No | ID of the contact | |
| do_not_track | No | true = exclude this conversation from tracking | |
| external_chat_id | Yes | ID of the external chat |