create_or_update_contact
Create a new contact or update an existing one using a unique identifier. Matches by ID, email, or phone to keep contact data consistent.
Instructions
Create a contact if they do not exist, or update the existing contact. Uses the contact identifier to match.
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": {
"identifier": "<identifier>",
"firstName": "<firstName>"
},
"name": "create_or_update_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | The contact's email address. | ||
| phone | No | The contact's phone number, including the country code (e.g., +60123456789). | |
| language | No | The contact's language code, based on the ISO 639-1 standard (e.g., 'en' for English). | |
| lastName | No | The last name of the contact. | |
| firstName | Yes | The first name of the contact. | |
| identifier | Yes | The contact's identifier. Can be the contact's ID, email, or phone number. | |
| custom_fields | No | An array of custom field objects, each with a name and value. |