contacts_write
Merge duplicate contacts, split conversations into new contacts, update marketing consent, or delete contact records; confirm irreversible merge and delete actions before proceeding.
Instructions
Merge, split, update consent of, or delete a contact. merge and delete cannot be undone automatically — confirm with the user. Actions: merge — merge two contacts that are the same person Needs: sourceIdentityId, targetIdentityId. | unmerge — split conversations out of a contact Needs: identityId, convoIds. | set_consent — record the contact marketing consent Needs: identityId, consentStatus. | delete — delete the contact record Needs: identityId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact (default) = light mode: long text is cut and bulky blobs are replaced by a size marker. full = complete API response. | |
| action | Yes | ||
| agentId | Yes | ||
| convoIds | No | For unmerge: conversations to split into a new contact. | |
| identityId | No | ||
| consentSource | No | Where the consent came from, e.g. "web form". | |
| consentStatus | No | ||
| sourceIdentityId | No | For merge: the contact that disappears. | |
| targetIdentityId | No | For merge: the contact that is kept. |