LeadCRMMergeResponse
Result of reconciling a CRM-side duplicate merge.
survivor_lead_id object
ID of the lead that now holds the surviving deal, or null when no local lead matched any of the CRM IDs and nothing needed reconciling.
- integer
- null
CRM ID of the surviving deal (echoes target_crm_id from the request).
results object[]
One entry per CRM ID in source_crm_ids, in the order they were sent.
The CRM ID from the request that this result describes.
What happened to the matching lead.
Possible values: [merged, promoted, already_merged, unknown]
lead_id object
ID of the matching lead, or null when no lead matched the CRM ID.
- integer
- null
customer_merge object
Which customer records were unified, or null when no leads matched.
- CustomerMergeResult
- null
ID of the customer the others were folded into.
IDs of the customers that were folded in. They are kept as empty records rather than deleted.
repointed object
How many records were moved onto the surviving customer.
Identity keys (chat, CRM, and contact aliases) moved.
0Leads moved.
0Contacts moved.
0Dialogues moved. This is what gives the agent the combined conversation history.
0Stored conversation summaries moved.
0{
"survivor_lead_id": 0,
"survivor_crm_id": "string",
"results": [
{
"crm_id": "string",
"outcome": "merged",
"lead_id": 0
}
],
"customer_merge": {
"survivor_customer_id": 0,
"merged_customer_ids": [
0
],
"repointed": {
"identities": 0,
"leads": 0,
"contacts": 0,
"dialogues": 0,
"episode_summaries": 0
}
}
}