Find who the user means
find_contactResolve a name, nickname, group, or number to a contact's chat ID. When ambiguous or not found, ask the user instead of guessing. Also lists people by tag.
Instructions
Who a name, nickname, relationship ("mama"), group, number or id means, before drafting. resolved: contact.chat_id, with number, note, tags, details and, in a write session, context. ambiguous or not_found: ask the user; never send to a guess. A name on several accounts: see fix. tag: its people.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | List everyone filed under this tag instead | |
| kind | No | any | |
| name | No | What the user calls them ("Ana", "mamei", "fotbal"), or a number or id | |
| limit | No | Ambiguous: at most 5 per account; a tag list: up to 50 | |
| qualifier | No | Tells two apart: "contabilitate", a group, the last 4 digits | |
| account_id | No | Account id | |
| include_context | No | Recent messages and the user's style, when resolved in a write session |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | What to do next, when not resolved | |
| next | No | Resolved: how a message to them starts | |
| notes | No | Caveats to act on or tell the user | |
| query | Yes | ||
| status | Yes | ||
| closest | No | Only when not_found | |
| contact | No | Only when resolved | |
| context | No | Only when resolved, in a session that can write: what a draft to them is written after | |
| omitted | No | Only when listed and cut by limit: how many more on each account | |
| contacts | No | Only when listed: everyone filed under the tag | |
| can_draft | No | Resolved in a session that cannot send | |
| account_id | No | The account that answered; null when several accounts were searched and none answered alone | |
| candidates | No | Only when ambiguous; best first | |
| accounts_searched | No | ||
| accounts_unavailable | No |