> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatbotplatform.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Skills

> Teach the agent a process once, use it everywhere: named processes that follow a person across conversations and channels, plus bot-wide skills everyone gets

A **skill** is a named process a person teaches the agent once and can ask for in any later conversation: *"save this as a skill called weekly-report"*, then a week later, in a new chat, *"do the weekly report"*. The agent stores the steps, lists the skill in its system prompt and fetches the full instructions whenever a request matches.

Skills belong to the **person**, not to a conversation. Someone who chats with your bot in the web widget, in a Telegram private chat and in a Slack DM has one set of skills once those channels are linked.

You can also give the bot **bot skills**: processes you write once in the dashboard (or through the API) that every person gets. A person can customise a bot skill for themselves without changing it for anyone else. See [Bot skills and customisation](#bot-skills-and-customisation).

Skills are **off by default**. Turn them on per bot: **Behavior → Agent Context → Skills**. They need an agent that can call tools, so use an [agentic loop](https://docs.chatbotplatform.io/agentic-loops/overview.md) integration (or the built-in echo agent).

## Skills and preferences

Both are things the agent remembers. They answer different questions.

| | Preference | Skill |
| - | - | - |
| What it holds | A fact about the person: *"timezone: America/Chicago"*, *"call me Johnny"* | A process: the steps, the tools each step calls, how to present the result |
| Scope | One conversation | The person, in every conversation they own with this bot |
| In the system prompt | The full text, every turn | Only `name — summary (vN)`; the steps are fetched when needed |
| Size | A sentence | Up to 20 000 characters |
| History | None | Versioned; the newest 10 revisions are kept |

## What the person does in chat

Nothing needs to be configured per person. The agent has a **User Skills** tool server attached to the conversation and uses it when asked.

**1. Teach it**

Walk the agent through the process, then say *"remember this as a skill"* (or name it: *"save it as `weekly-report`"*). The agent calls `create-skill` with a name, a one-line summary and the content: the steps, the tools each step uses and how the result should look.

**2. Use it anywhere**

In any later conversation, ask for it in your own words. The agent sees the skill in its system prompt, calls `get-skill` to read the steps and follows them instead of guessing.

**3. Change it**

*"Update the weekly report: add totals per region."* The agent calls `update-skill`; the change applies to every conversation from the next reply on, and the previous text is kept as a revision (*"go back to the previous version"* restores it).

**4. Remove or mute it**

*"Delete the weekly-report skill"* removes it everywhere. *"Don't use it in this chat"* mutes it for the current conversation only (`disable-skill` / `enable-skill`).

### The tools

| Tool | What it does |
| - | - |
| `list-skills` | The person's skills: name, summary, version, whether each is on in this conversation, usage |
| `get-skill` | The full content of one skill, by name |
| `create-skill` | Save a new skill: `name`, `summary`, `content` |
| `update-skill` | Change the summary and/or content, or restore an earlier version |
| `delete-skill` | Delete a skill for the person, everywhere |
| `disable-skill` / `enable-skill` | Mute or unmute a skill in this conversation only |
| `create-link-code` | Start linking another channel (see below) |

### How the index appears

Before every reply the agent's system prompt gets a short section, after the preferences:

```text theme={null}
## Your skills for this person

- onboarding — Walk a new hire through account setup (v1, bot)
- weekly-report — Build and post the weekly sales report (v3, yours)
```

`yours` marks the person's own skills, `bot` the [bot skills](#bot-skills-and-customisation) in effect for them. Only this index is in the prompt. The body of a skill is read with `get-skill` when a request matches, so fifty long skills cost a few lines per turn, not fifty pages. Webhook integrations receive the same index as `conversation.skills` (`[{ name, summary, version, source, overrides }]`, `source` being `bot` or `personal` and `overrides` telling whether a personal skill replaces a bot skill of that name) in the [webhook payload](https://docs.chatbotplatform.io/bots/integrations/webhook-payload.md), plus the **User Skills** server in `mcp_servers`.

## Who a skill belongs to

| Conversation | Whose skills are used |
| - | - |
| Web widget | The widget user: the `sub` of the [identity token](https://docs.chatbotplatform.io/bots/channels/web-widget.md#identify-your-users), or the anonymous visitor id of that browser |
| Telegram private chat | The Telegram user |
| Slack DM | The Slack user |
| Telegram group, Slack channel thread | Whoever sent the message being answered. Each reply works with that sender's skills only, and nobody sees anyone else's |

In a group, a skill cannot be muted "here" (the conversation is shared), and link codes are not handed out. Reminders that fire in a group have no sender, so they run without skills.

## One person on several channels

The platform cannot know that a Telegram account and a website login are the same person, so the person proves it with a **link code**.

**1. Ask for a code where the skills are**

In the chat that already has the skills, say *"link my Telegram"* (or Slack, or the web chat). The agent calls `create-link-code` and answers with a code such as `K7PM-3XQ9` and the exact message to send.

**2. Send it from the other channel**

| Channel | Send this to the bot |
| - | - |
| Telegram (private chat) | `/link K7PM-3XQ9` |
| Slack (DM with the bot) | `link K7PM-3XQ9` (no slash: Slack keeps leading slashes for its own commands) |
| Web widget | `/link K7PM-3XQ9` in the chat, or your page calls `ChatbotWidget.claimLinkCode('K7PM-3XQ9')` |

**3. Done**

The bot confirms, and both channels share one set of skills from the next message on. If the other channel already had skills of its own, the two sets are merged; a name both used keeps the first and renames the second to `name-2`.

A code is 8 characters, valid for **10 minutes**, usable **once**, and only from the channel it was created for. A person can hold three unused codes at a time, and an account gets five attempts per hour. The code itself is never passed to your integration or stored in the conversation history. `/unlink` (Slack: `unlink`) in a private chat separates that channel again; the skills stay with the remaining channels.

`ChatbotWidget.claimLinkCode(code)` resolves (it never rejects) with `{ status: 'linked' | 'error', outcome, message, skillsNowAvailable, renamed }` and fires `chatbot-widget:linked` on `window`, so a settings page of your product can offer a "link my chat" field of its own.

## Seeding skills from your product

If your web widget uses the [MCP discovery webhook](https://docs.chatbotplatform.io/guides/embedded-assistant-with-mcp.md), the same response that returns MCP servers may carry a `skills` list. The platform saves them for the person behind the conversation before the first reply:

```json theme={null}
{
  "mcp_servers": [ { "name": "CRM", "url": "https://your-app.example/mcp" } ],
  "skills": [
    {
      "name": "weekly-report",
      "summary": "Build and post the weekly sales report",
      "content": "1. Fetch last week's orders with the CRM tools.\n2. Summarise them per region.\n3. Present a table, totals last."
    }
  ]
}
```

* **Create only.** A name the person does not have yet is created at version 1. A skill they already have is never overwritten, whoever wrote it, so you can send the same list with every response.
* **Deleting sticks.** A seeded skill the person deleted is not brought back while the deleted copy is kept (30 days).
* **For the person, not the conversation.** A seeded skill shows up in every conversation they own, on every linked channel.
* **Validated.** A malformed entry fails the whole response, servers included, exactly like a bad `mcp_servers` entry.
* **Ignored while skills are off** for the bot; the servers are still attached.

Field rules and examples: [Embed an AI assistant → Skills](https://docs.chatbotplatform.io/guides/embedded-assistant-with-mcp.md#skills-optional).

## Bot skills and customisation

A **bot skill** is a process you define once for the whole bot. It is in effect for **every person** who chats with the bot, on every channel, including people who never saved a skill of their own and group threads where the platform cannot tell who is asking. Use bot skills for the processes your product teaches everyone (*"how we file a refund"*, *"the onboarding checklist"*); use personal skills for what one person taught the agent.

Bot skills follow the same [rules](#limits) as personal skills (a slug name, a one-line summary, up to 20 000 characters of content, versioned with the newest 10 revisions kept) and are switched on by the same **Skills** toggle on the Behavior page. A bot can have up to 50.

### Customising a bot skill

A person replaces a bot skill **for themselves only** by having a skill of their own with the **same name**:

**1. Ask for it to be done differently**

*"Do the onboarding checklist, but skip the VPN step from now on."* The agent calls `update-skill` on the bot skill's name. The platform saves a personal copy: version 1 is the bot's text, version 2 is the change.

**2. Their version replaces the bot's, completely**

From the next reply on, that person's index lists `onboarding (v2, yours)` instead of the bot's, and `get-skill` returns their text. Nothing is merged: when you later improve the bot skill, the person keeps their own version. `list-skills` tells the agent when the bot's version changed after they customised it.

**3. Go back to the default**

*"Use the standard onboarding again."* The agent calls `delete-skill`, which deletes the person's version and reverts to the bot skill (the result says which version is now in effect). Deleting a name that is only a bot skill is refused: a person cannot remove a bot skill for everyone.

Matching is **by name only**. A person who already had a `weekly-report` skill before you added a bot skill called `weekly-report` keeps theirs, and it now counts as their customisation. Other people get yours. If you switch a bot skill off or delete it, people's same-named skills simply stay as their own skills.

A bot skill cannot be muted for a single conversation. Where nobody can be identified as the person asking (a Slack channel thread or Telegram group message with no identifiable sender), the agent can read bot skills with `list-skills` and `get-skill` but cannot create or change skills.

### The Skills page

**Skills** in the bot sidebar (under Activity, next to People) lists the bot skills with:

* an **on/off switch** per skill (off hides it from every conversation at once),
* **Customised by N people**, and how often the skill was used,
* **New skill** and **Edit**. The name cannot be changed after creation, so create a new skill and delete the old one to rename. If someone else saved the skill while you were editing, your save is refused and the page shows their current text next to yours, so nothing is overwritten silently.

A skill's page shows its steps, **who customised it** (each name links to the person's page), its revisions (**Restore** saves an old one as a new version) and **Delete**, which warns how many people have their own version (those stay).

On a **person's page** and on a conversation's **Skills** tab, a skill that replaces a bot skill carries an **Overrides bot skill** badge (plus **bot default changed** when you updated the bot's version since), plus **Revert to bot default**, which deletes the person's version. The conversation tab also lists the bot skills in effect there, read-only.

### Host seeding and bot skills

A skill your [discovery webhook](#seeding-skills-from-your-product) seeds with the same name as a bot skill becomes that person's **customisation** of it: they get your seeded text instead of the bot's. Seeding stays create-only, so it never overwrites a version the person already has. To give **everyone** the same process, create a bot skill instead of seeding it per person; keep seeding for content that differs per user.

### Managing bot skills from code

Bot skills can also be listed, created, updated, restored and deleted over the REST API, for example to keep them in version control and sync them on deploy. See the [Bot Skills API](https://docs.chatbotplatform.io/bots/channels/bot-skills-api.md).

## In the dashboard

* **People** (bot sidebar) lists everyone chatting with the bot: name, email, the channels they are known on, how many conversations and skills they have and when they were last seen. Search by name, email or the id a channel uses for the person.
* A **person's page** shows their identities (unlink one, or link another person the page suggests because they share an email address; a suggestion only, since emails are not verified), their skills with every kept revision (**Restore** saves an old revision as a new version), deleted skills (restorable for 30 days) and their conversations.
* **Forget this person** deletes their skills, revisions, identities and link codes for good, for example to answer a data-deletion request. Their conversations stay in the bot's history without an owner; if the same account writes again it starts as a new person.
* The **Skills** tab of a conversation shows the owner's skills with a per-conversation on/off switch and links to the person's page.

## Limits

| | |
| - | - |
| Skill name | A slug: 2 to 64 lowercase letters, digits and dashes (`weekly-report`) |
| Summary | One line, up to 200 characters |
| Content | Up to 20 000 characters |
| Skills per person | 50 |
| Bot skills per bot | 50 |
| Revisions kept per skill | The newest 10 |
| Deleted skills | Kept 30 days, then removed for good |
| Skills per webhook response | 20 |
| Link code | 8 characters, 10 minutes, single use, 3 unused per person, 5 attempts per hour |

## Troubleshooting

| What you see | Why |
| - | - |
| The agent does not offer to save a skill | Skills are off for the bot, or the integration is a plain webhook that does not call tools |
| "This conversation has no single owner" | A group or channel thread without an identifiable sender. Skills work per sender there; mute and link tools are not available, and only bot skills can be read |
| One person gets different steps for a bot skill | They have their own version of it (an **Overrides bot skill** badge on their page). **Revert to bot default** or ask the agent to use the standard version |
| A bot skill change does not reach someone | Same reason: a customised copy is never updated from the bot skill |
| A skill is missing in one conversation only | It was muted there. Ask the agent to enable it, or use the switch on the conversation's **Skills** tab |
| A seeded skill never changes | By design: the webhook creates skills, it never overwrites them. Edit it in chat, or delete it and let the next conversation seed it again after the retention period |
| `/link` answers "private chat only" | Codes are claimed in a Telegram private chat, a Slack DM or the web chat, never in a group |

## Next steps

> [card] [Web Widget](https://docs.chatbotplatform.io/bots/channels/web-widget.md)
>
> Identify your users so skills follow the login, not the browser

> [card] [Embedded assistant guide](https://docs.chatbotplatform.io/guides/embedded-assistant-with-mcp.md)
>
> The MCP discovery webhook that can seed skills

> [card] [Bot Skills API](https://docs.chatbotplatform.io/bots/channels/bot-skills-api.md)
>
> Manage bot skills from your own code


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.