Create contact
gambot_create_contactCreate a new contact or fetch the existing one using its phone number, supporting custom fields, tags, and country codes.
Instructions
Create a contact (returns the existing one if the phone is already known). Custom/dynamic fields go under 'customFields' (see gambot_get_contact_fields for keys).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Tags/lists (default Leads) | |
| name | No | ||
| No | |||
| country | No | ISO-3166 alpha-2 (e.g. 'US','IL') to internationalize a local/national phoneNumber. Optional if the organization has a saved country (set at onboarding). | |
| phoneNumber | Yes | Phone number, ideally E.164 international format (country code, digits only, no leading 0), e.g. 972501234567 or 12025551234. A local/national number (e.g. leading 0) is accepted when a country is provided — or when the organization has a saved country from onboarding; otherwise it's rejected as ambiguous. | |
| customFields | No | Custom field values, e.g. { city: 'תל אביב' }. |