find_lead_by_channel
Match a messaging conversation back to a lead/contact. Provide external_chat_id (Beeper chatID, primary key) and/or handle (+optional channel). A phone number as handle is also matched like find_by_phone (incl. contact mobiles) - only a UNIQUE lead or contact is returned. Returns { lead_id, contact_id, do_not_track } or null. Run BEFORE creating records to avoid duplicates.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_lead_by_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | No | Handle of the person on the channel, e.g. phone number, mail address or profile URL | |
| channel | No | Messaging channel the handle belongs to (narrows a handle match) | |
| external_chat_id | No | ID of the external chat |