Add a contact
create_contactAdd a customer or lead by phone number. If someone with that number already exists, their name, email, and details are updated instead. This does not message them. Ask the user to confirm before calling this tool.
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": {
"phone_number": "<phone_number>"
},
"name": "create_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Full name | |
| No | Email address | ||
| sms_consent | No | true only if the person agreed to receive texts, for example on a web form | |
| phone_number | Yes | Contact's phone number, E.164 (+14155550123) | |
| workspace_id | No | Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace. | |
| sms_consent_source | No | Where they agreed, for example "website_form" |