Add a skill

Give an agent a skill: a reusable process it loads only when a request needs it. The skill's description tells the agent when.

Before you start

You need an agent. See Create an agent.

Add a skill

  1. Create the skill. Its folder and name are its ID:
    skills/split-bill/SKILL.md
    ---name: split-billdescription: Split a restaurant bill and its tip between people.--- 1. Add the tip to the bill.2. Divide the total by the number of people, rounding each share to the penny.3. Answer with the total and each person's share.
  2. Start the project with npm run dev.
  3. Open Chat in Studio.
  4. Pick Support assistant.
  5. Ask "Use the split-bill skill: £84.50 with an 18% tip between three people." You should now see the reply show Loaded skill: split-bill and each person's share, £33.24.

Try it in a sandbox

  1. Create a project

  2. Before you start: the agent

  3. Create the skill

  4. Start it

  5. Ask it

Try it out

Next steps