# Panel: Identities

[Guide index](../v1.md)

An **identity** is one person who talks to your assistant: a customer, an employee, anyone on your channels. They never sign in to the panel. (Panel logins are your team: see Sub users.)

API: Identities section (`/identities`, `/blocks`), see the [API reference](api-reference.md).

## How identities are made

**A Telegram name is not proof.** The name and @username shown for a Telegram user are what that person set in Telegram, and anyone can set any name. Use them to recognise people and to find whom to give attributes to. They are never attributes, so access rules cannot check them. The assistant may use the name to address someone, never to decide what they can see.

- The first message from a new Telegram user, email address or API user ID creates an identity, keyed by that ID on that channel.
- **Through the API, the `userId` you send is trusted:** your backend vouches for who the user is, so use your own stable user ID.
- After a **verification**, the verified ID (such as an email) is linked to the identity. If another identity already had it, the two are **merged** into one, keeping every conversation, attribute and note. A merged record shows "merged into another" with a link.

## The Identities page

- **Grounded now:** users blocked after too many low-scoring replies, with how many low scores and until when. They get your block text until it ends. **Lift block** ends it early.
- **Find a user:** search by the name or @username they show on Telegram, or by part of an ID (your user ID, a Telegram user ID, an email address).
- **Users:** every identity, how they reached you, their attributes and when first seen.

## A user's page

- **Reached us as:** their channel IDs and since when. For Telegram, also the name and @username the person shows there, kept up to date from their messages.
- **Attributes:** what access rules check, such as `department = HR`, `role = staff`, `employee_id = 1042`. Set here, or by your systems through the API. Numbers and true/false are stored as such. An attribute can hold several values: type them separated by commas (`role` = `hr, supadmin`), and a rule matches if any of them does. Through the API, send a list (`"role": ["hr", "supadmin"]`). Changing them takes effect on the user's next request.
- **How they like to be answered:** a short note written by the AI after a conversation goes quiet (about an hour), such as "prefers short answers". Style only, never facts, identifiers or data. **Clear** removes it.
- **Personal notes:** notes this user keeps in chat (only they reach them in chat).
- **What they can reach:** the resources the assistant would find for this person, with your rules applied. **Search like the assistant** with a phrase to test. A resource that decides access itself shows as not decided until it has been asked.
- **Threads:** their conversations. **Clear all threads** deletes them.
- **Delete user** removes the identity with its conversations and personal notes.

## Setting attributes from your systems

With an API key holding the Identities section, your HR system or app can set attributes as people join, move or leave (`PUT .../identities/{identityId}/attributes`, see the [API reference](api-reference.md)), and find an identity by channel ID. For API users, send the same `userId` you use in your own system, and set attributes on that identity.
