Find Or Create Contact
find_or_create_contactFind an existing CRM contact by external reference, email, or name in an organization, or create a record with the details you have. Use it when a person appears and you need to record or act on them.
Instructions
Find a contact, or create them when this workspace does not hold them yet.
Call it whenever a person comes up that you may record or act on, with everything you
know about them in one call. It matches by external reference, then email, then name
within the same organization, and a match fills only the values the contact lacks. Never
create a name-only contact and call again to add more: to change a value the contact
holds use update_contact, and to join two records of one person merge_contacts.
For a list of more than a few people use import_contacts. Linking a person to a
discovered lookalike organization promotes it to active.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_or_create_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The person's full name. Optional when email is given: a new contact is then named from the address (jane.doe@ becomes "Jane Doe"). Pass name or email. | |
| No | Their email address; the strongest match key after an external reference. | ||
| phone | No | Their phone number. | |
| title | No | Their role at their organization, e.g. "VP Sales". | |
| fields | No | Custom field values by key, e.g. {"fit": "strong"}; list_fields lists the keys. A match keeps the values it holds and takes only the keys it lacks. | |
| source | No | Where you learned of them (open text, e.g. "research", "manual", "import"). | |
| status | No | Their stage: sourced, enriched, contacted, engaged, or a stage of your own (default "sourced"). | |
| fields_by | No | Who is setting these fields: an agent, a run, or a person. | |
| lead_source | No | How they came to you (open text, e.g. "referral", "inbound", "event"). | |
| email_status | No | Whether the address can receive mail. Omit when it has not been checked. | |
| external_refs | No | What other systems call this record, as opaque URIs (e.g. "crm://people/123", or the source's own record URL). One a record here already holds is the match, ahead of every other key; one held by another record is refused as a conflict, never moved. | |
| organization_id | No | The organization they work at, by id. | |
| organization_name | No | The organization's name when you hold no id: it is found or created, and the contact is linked to it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||