# Configurations

Sanka Bot → Configurations in the Sanka Desk console: whether Sanka Bot answers employees, when it hands a ticket to your team, which AI account it runs on and where it files the Docs it writes.

This guide explains **Sanka Bot** → **Configurations** in the Sanka Desk console. The page sets whether Sanka Bot answers employees, when it hands a ticket to your support team, which AI account it runs on, and where it files the Docs it writes. Only workspace admins can open it.

The page has no cards and no **Edit** button. The switch, the key and the folder save on their own. Only the levels under **Answers** wait for **Save**. Under the sections, the page says when it was last changed, and by whom.

## Answers

| Setting | What it does |
| --- | --- |
| **Sanka Bot answers employees** | When off, tickets go to your support team: everything people send goes straight to a person. Turning it off asks **Stop Sanka Bot answering?** first: new tickets go to your team, and those already running finish. Choose **Stop answering**, or **Keep answering**. While it is off, the **AI** row on [Status](/docs/desk/status/) reads **Missing**. |
| **When to hand a request to your team** | **Standard**, recommended for most teams, sets **Understand the request** to 0.75 and **Send an answer** to 0.70. **Careful** hands more tickets to your team. **Custom** lets you set each level yourself. |
| **Understand the request** | How sure Sanka Bot must be that it understood a ticket before it acts on it. Below this, it hands the ticket to your team. |
| **Send an answer** | How sure Sanka Bot must be of an answer before it sends it. Below this, it gives its draft answer to your team. |

With **Custom**, set each level with its slider or type a number from 0.5 to 1. A higher value hands more tickets to your team. Choose **Save** under **Unsaved changes**. A change that hands fewer tickets to your team asks **Hand fewer requests to your team?** first: choose **Save**, or **Keep editing**.

If another admin saves these levels while you are editing, your changes aren't saved. The page reloads with what they saved, and says who changed it.

## AI account

| Setting | What it does |
| --- | --- |
| **Model** | The model Sanka Bot runs on. It reads **Sanka default**: Sanka sets it, and it can't be changed here. |
| **Who pays for the AI** | **Sanka Credits**, included in your plan, or **Your own OpenAI key**. Nothing changes until the key passes a test. |

### Use your own OpenAI key

Sanka Bot runs on Sanka's AI provider until you add a key of your own. With one, it runs on your OpenAI account instead.

1. Under **Who pays for the AI**, choose **Your own OpenAI key**.
2. Paste the key in **API key**.
3. Choose **Test and save**. Sanka Bot tries the key with one real call before saving it. If OpenAI refuses the key, the page says why and nothing is saved. For a key that can't use the model Sanka Bot runs on, allow all models on its project, or ask Sanka which one to allow.

The key is stored encrypted and can't be read back. The page shows only "OpenAI key ending …" and when it was last checked.

- **Test again** tries the key again.
- **Replace** adds a new key. The old one stays in use until the new one passes.
- **Remove** asks **Remove your OpenAI key?** first. After it, Sanka Bot goes back to Sanka Credits from the next ticket.

**What runs on your key** lists the calls it covers: reading tickets, answers, drafts, and the search index of your tickets and documents. OpenAI bills you for these calls, and no Sanka Credit is used for them. Documents indexed before you added the key aren't indexed again. Sanka Bot in Sanka Flow still runs on Sanka's provider. To keep every message in Desk, turn on **Desk-only intake** on [Intake](/docs/desk/intake/).

<Note>
If the key fails, Sanka Bot never falls back to Sanka's provider. Tickets go to a person until the key works, your admins are notified, and the **AI** row on [Status](/docs/desk/status/) reads **Error**. Once it is fixed, choose **Test again**.
</Note>

## Docs folder

Sanka Bot writes Sanka Flow Docs, such as drafts from tickets a person resolved. **Where Sanka Bot files Docs** shows the folder they go to. By default, that is a folder named **Sanka Desk** at the top of your Docs, made when Sanka Bot writes its first Doc.

1. Choose **Change**.
2. Pick one of your Docs folders under **Folder**.
3. Choose **Save**.

The change applies to new Docs. Docs already filed stay where they are.

## Related

- [Status](/docs/desk/status/): the **AI** row in **Health**.
- [Intake](/docs/desk/intake/): **Desk-only intake**.
- [How Desk counts and prices a request](/docs/desk/pricing/): what Sanka Credits pay for.
