upsert_contact
Create or update a contact. Upsert keyed by (channel, platform_user_id). 201 when created, 200 when an existing contact was updated. Fields you omit on an existing contact are left untouched, tags included.
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>",
"platform_user_id": "<platform_user_id>"
},
"name": "upsert_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tags | No | Tag names, created if missing. | |
| No | |||
| notes | No | ||
| phone | No | ||
| stage | No | ||
| channel | Yes | ||
| custom_fields | No | ||
| platform_user_id | Yes |