Create company
well_create_companyCreate a new company in the current workspace.
Use this tool when the user asks to create, add, or register a new company.
REQUIRED: name OPTIONAL: description, domain, is_company, registry_ref
Pass domain when the person gives the company's website or e-mail domain ("with the domain acme.com"): Well stores it, so a later search of the company's mail (well_list_project_files) reads the mail sent from it.
Well treats registry search results as candidates. Pass registry_ref (the id of a well_search_company_registry hit) only when the person picked that registry entry. Without that pick, the company is saved by name alone and registry_match is null.
A name that is the full name of a person already held in the workspace, with no legal form, company number or website, is refused: bill that person instead (well_define_customer with entity_kind person). Pass is_company true only when the user says it is a company.
When a company_name_near_match refusal lists candidates, ask whether the person meant one and write nothing. If yes, use that company's company_id. If no, retry with every listed company_id in distinct_from_company_ids.
After creation, enrichment (logo, domain, industry, tax ID, description fill-in) runs asynchronously in the background. The new company is available immediately for follow-up actions, but enriched fields may take a few seconds to populate — re-query after a brief delay to see them.
Returns { success: true, company_id, name, registry_match } on success, or { success: false, error } on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name (required) | |
| domain | No | The company's website or e-mail domain (acme.com), only when the person gives it. Well stores the host and matches the company's mail by it. Never a free-mail or platform domain such as gmail.com: leave domain out then. | |
| address | No | Registered office address entered by the person. | |
| is_company | No | True only when the user says this name is a company, although a person of the workspace carries it | |
| description | No | Brief company description | |
| registry_ref | No | The registry search result explicitly selected by the person. The server hydrates its legal facts. | |
| 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. | |
| registered_name | No | Legal name entered by the person; does not verify an identity by itself. | |
| 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. | |
| registered_value | No | Company registration number entered by the person. | |
| registry_country | No | Country that issued the company registration number. | |
| distinct_from_company_ids | No | Every live company id returned as a near-name candidate, only when the person says this is a different company |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| name | No | ||
| error | No | ||
| success | Yes | ||
| company_id | No | ||
| reply_lines | No | ||
| registry_match | 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 |