Assistant profiles
An assistant profile is one assistant of the AI Assistant: what it is told about its job, the models it runs on, the tools and knowledge sources it may use, what a new conversation shows, its limits and who may use it. A worker site offers one or more profiles. You can have several profiles for different groups of users, for example one for caseworkers and one for managers, each with its own instructions and tools.
In Casewhere Admin, navigate to AI > Assistant Profiles to manage them.

Create an assistant profile
- Create the model connection the profile runs on.
- In Assistant Profiles, click Create.
- Fill in the sections described below. Give the profile a Name and at least one model in Models; the other sections have defaults.
- Click Save. Rules in Security can be added once the profile is saved.
- Choose the profile in the AI section of a worker site.
General

| Name | Description |
|---|---|
| Name | The name of the profile in Casewhere Admin. It must be unique. |
| Title shown to users | The title of the assistant in the chat: on its button in the header of the worker site and at the top of the chat panel. Enter a text or a text resource key, so that the title follows the user's language (see Translate the chat). |
| Description | What the profile is for, for administrators. |
| Tags | Optional labels to filter the list. |
| Active | Active: worker sites can offer the profile. An inactive profile is not offered anywhere. |
Instructions
The instructions tell the assistant about its job: who its users are, what they work on, the terms of the solution, the tone and language of its answers, and what it must not do. They are added after the platform's own instructions, which describe the tools and how links and sources are written, so you do not need to explain those.

The assistant also knows, without instructions:
- The data sources, workflows, rules and plugin methods it may use, with their AI instructions.
- The pages of the worker site's menu that the user may open, and what is on each of them.
- The user's name, username and roles.
- The page the user has open, with its parameters, for example the case of the page. So summarize this case works.
- The date and time, in the time zone of the worker site. So submitted in the last 30 days works.
Good instructions are short and concrete. For example:
You assist caseworkers who handle license applications.
- Answer in the language the user writes in, briefly and precisely.
- Count and summarize rather than list many records, and give application numbers when you refer to records.
- SB1 is the caseworker who assesses an application first; SB2 is the second caseworker, who approves it.
- When the user wants to see records in the portal, offer a link to the page that shows them.
Models
The models users can choose from. Click Add model, choose the Model connection, and enter its Name in the picker and an optional Hint, such as faster or more thorough. Tick Default for the model a conversation uses when the user does not choose one, and use the arrows to order the models in the picker.

- With more than one model, the chat shows a model picker. The user's choice is remembered in their browser for the profile. With one model, there is no picker.
- A model connection that is inactive or has no API key is skipped. Embedding model connections are not offered.
- The name in the picker and the hint can be text resource keys, translated in the chat.
- Under an answer, the chat shows which model wrote it when the profile offers more than one model.
Tools
What the assistant may use: per kind, everything it can use, or only the items you choose. The assistant can use every data source, workflow, rule and plugin method whose AI settings allow it, as far as each user may reach them.

For each kind (Data sources, Workflows, Rules and Plugin methods), choose:
- All data sources the assistant can query (or workflows, rules, plugin methods): the default. Items whose AI settings allow the assistant later are included at once.
- Only the ones ticked below: tick the items this profile is for. With none ticked, the profile uses none of that kind.
Limit a profile to what it is for: its assistant then knows fewer things, which makes its answers better and its requests smaller. The selection does not replace security: whatever the profile offers, the Worker API checks the user's own access on every call.
Knowledge
The knowledge sources the assistant may search and cite. Tick the sources. The assistant searches them when a question needs them, and the description of each source tells it what the source holds. An inactive source is skipped.

Welcome
What users see in a new conversation: a greeting and up to 6 suggested prompts. Clicking a prompt sends it as it reads. Both go away with the first message and come back with a new conversation.

| Name | Description |
|---|---|
| Greeting | Shown like an answer of the assistant, so it can use Markdown: bold text, lists and links. Without a greeting, the chat shows its own (the text resource ai_chat_empty). |
| Suggested prompts | Click Add prompt for each prompt, and use the arrows to order them. A prompt left empty is removed. |
Enter texts or text resource keys. With keys, the greeting and the prompts follow the user's language (see Translate the chat).
Security
Who may use the profile. Add access rules (server rules): a user may use the profile when every rule allows it. Without rules, every signed-in user of the worker sites that offer the profile may use it. Adding or removing a rule saves it at once.

A user who may use none of a worker site's profiles does not get the chat on that site.
Limits
How much one answer may do, how much each user may use, and how long conversations are kept.

| Name | Description |
|---|---|
| Tool rounds per answer | How many times the assistant may use its tools in one answer, from 1 to 50. Empty: 12. A question that needs several steps, such as filling in a form, needs more rounds. When an answer reaches the limit, it stops and says so, and the user can ask the assistant to continue. |
| Longest answer (seconds) | How long one answer may take, from 10 to 3,600 seconds. Empty: no limit. An answer that takes longer is stopped with a message. |
| Keep conversations (days) | How long conversations are kept after their last message, from 1 to 365 days. Empty: 7 days. |
| Messages per hour | Under Usage per user: how many messages a user may send in an hour, from 1 to 100,000. Empty: no limit. |
| Tokens per month | Under Usage per user: how many tokens the answers to a user may use in a calendar month (UTC), at least 1,000. Empty: no limit. |
The usage limits are counted for each user on each worker site that offers the profile. A message past a limit is refused with a message that says so, and the token allowance is renewed on the first day of the next month. Answering a confirmation card is never refused: it continues an answer that was allowed. Every answer is recorded with its tokens for 13 months.
See also
- Enable the assistant on a worker site
- Use the assistant
- AI settings across environments: how profiles travel between environments.