Create person
well_create_personCreate a new person (contact) in the current workspace.
Use this tool when the user asks to add, create, or register a new contact, employee, or person.
REQUIRED: first_name OPTIONAL: last_name, job_title, email, phone, company_id, address, copy_from_person_id
One call saves the person with their email, their phone, their company and their postal address. Never call well_add_contact_channel after it for the same email, phone or address.
address: { address_line1, postal_code, city, country } as the person gave it. A person of the workspace with the same full name who holds that address, with the same postal code or city, is that person: the call returns them with created false and creates no one.
copy_from_person_id: the person_id of a person read in another workspace of the user. The call copies that person's last name, job title, email, phone and address into this workspace; the values you pass win.
phone: E.164 (+33612345678). Spaces, dots, dashes and brackets are removed before the check, so a number copied from a contact card ("+33 6 11 22 33 44") is saved as it reads. When the number has no country code or is incomplete, ask the person for the full number before you call this tool.
company_id: the id of a company of the workspace, found with a read first. When no company of the workspace is the one the person names, create it first with well_create_company, then pass the id it returns: one order from the person saves the person and their company. Use only an id a read or a create returned; never pick a company because its name looks alike.
A contact card the person shares reaches you as their message, with its name, company, phone and email lines:
With an order to add or save it ("Add this supplier"), it is a complete order: save the person at once with every field of the card (create the company first when the workspace does not hold it), then read back what was saved. Ask nothing.
With no order, write nothing: offer to save it as one numbered choice. Several cards get one numbered line each, so the person picks by number.
Returns { success: true, person_id, full_name, created, company_name, email, phone, address, saved_fields } on success, or { success: false, error } on failure. created is false when the person already existed: say they are already in Well, never that they were saved. company_name, email, phone and address are those the person holds after the call; null means the person does not hold it. saved_fields lists those of company_name, email, phone and address this call wrote: on a person who already existed, only those fields were saved. When created is null, the call could not read the person back: a null company_name or address is unknown, not absent, so never say it was not saved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email address (optional) | ||
| phone | No | Phone number in E.164, like +33612345678 (optional) | |
| address | No | The person's postal address (optional); with the name, it finds the person already held | |
| job_title | No | Job title | |
| last_name | No | Last name (optional) | |
| company_id | No | Id of the company the person works at, from a read or from well_create_company (optional) | |
| first_name | Yes | First name (required) | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| conversation_id | No | The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| workspace_scope | No | Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace. | |
| copy_from_person_id | No | person_id of a person read in another workspace of the user, whose values the call copies (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| No | |||
| error | No | ||
| phone | No | ||
| address | No | ||
| created | No | ||
| success | Yes | ||
| full_name | No | ||
| person_id | No | ||
| reply_lines | No | ||
| company_name | No | ||
| saved_fields | No | ||
| conversation_id | No | The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation. | |
| near_candidates | No | ||
| newly_connected | No | Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later. | |
| conversation_id_note | No | Present only when the server opened a fresh lane, stating that no choice recorded earlier was read. | |
| conversation_id_source | No | Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened. | |
| near_candidates_truncated | No |