Some skills need a job that another skill already does. When a customer wants to book an appointment but doesn’t know which branch to visit, the booking skill doesn’t need its own branch search: it can hand that step to the Find a Branch skill from Part 4, wait while it runs, and carry on with the branch the customer picks. In this part of the Rasa Tutorial, you connect two skills this way in Rasa Pro’s Mantle engine. The skill that hands over a step is the parent, and the skill it calls is a sub-skill.
By the end, the banking agent from Part 10 will book an appointment for a customer who doesn’t know their branch. You’ll see in the Rasa Inspector how Rasa pauses the booking, runs Find a Branch, and hands its result back to the booking.
This is Part 11 of the Rasa Tutorial. The parts in Module C, Progressive Control:
- Part 8: Tool Constraints: Make Your Agent Ask Before It Acts
- Part 9: Scoped Instructions: Show Claude Only the Rules That Apply
- Part 10: Ordered Blocks: Run Steps in a Fixed Order
- Part 11: Sub-skills: Reuse One Skill Inside Another (you are here)
All parts of the Rasa Tutorial
Module A: Start Here
Module B: Building Skills
- Part 3: Write a Skill’s Instructions
- Part 4: Tools: Let Your Agent Run Python
- Part 5: Memory: Remember What Matters
- Part 6: References: Answer from Your Documents
- Part 7: Responses: Control the Exact Wording
Module C: Progressive Control
- Part 8: Tool Constraints: Make Your Agent Ask Before It Acts
- Part 9: Scoped Instructions: Show Claude Only the Rules That Apply
- Part 10: Ordered Blocks: Run Steps in a Fixed Order
- Part 11: Sub-skills: Reuse One Skill Inside Another
Module D: Orchestration
- Part 12: The Runtime Loop: How Mantle Handles a Turn
- Part 13: Guarantees and Guardrails
- Part 14: Skills and Routing
- Part 15: Context Management
Module E: Agent Setup
- Part 16: agent.yml: Identity, Persona and Rules
- Part 17: integrations.yml: Claude, Model Groups and Routing
- Part 18: MCP Tools
- Part 19: Hooks
- Part 20: Build Faster with the Rasa Copilot
Module F: Voice
- Part 21: Talk to Your Agent in the Browser
- Part 22: Designing for Voice
- Part 23: Connect a Phone Line
- Part 24: Monitor Voice Calls
Module G: Channels
- Part 25: The REST Channel and a Website Chat Widget
- Part 26: Microsoft Teams
Module H: Observability
- Part 27: Tracing with Langfuse
- Part 28: Metrics and Conversation Events
Module I: Deploy
- Part 29: Run Your Agent with Docker
- Part 30: CI/CD for a Rasa Agent
- Part 31: Deploy to Kubernetes with Rasa’s Helm Chart
- Part 32: Deploy on AWS
- Part 33: Deploy on Azure
- Part 34: Deploy on Google Cloud
Module J: Rasa Studio
- Part 35: Rasa Studio with a Mantle Agent
Module K: Wrap-up
- Part 36: Final Project, Cheat Sheet and What to Learn Next
Cost: Rasa’s Developer Edition licence is free. Claude is pay-per-use: Claude Sonnet 5.5, the model this series uses, costs $2 per million input tokens and $10 per million output tokens (Claude pricing (opens in a new tab)). In this part you send five messages, which make eleven calls to Claude: about $0.07. That’s an estimate: in Part 2, eight calls cost $0.05 on the Claude Console. Training also indexes Part 6’s reference document with Azure OpenAI again, which costs far less than a cent.
Prerequisites
- The
my-rasa-agentproject from Part 10: Ordered Blocks: Run Steps in a Fixed Order.
Step 1: Give Find a Branch a Result to Share
Open Terminal, go to your project folder and turn on its virtual environment:
cd my-rasa-agent
source .venv/bin/activate
A sub-skill hands its result back through memory. Find a Branch has no memory yet, so create skills/find_branch/memory.yml:
schema:
public:
chosen_branch:
type: text
llm_settable: true
description: The branch the customer picked from the list, such as Riverton Station.
publicmeans every skill can read the field. A field underprivateis for its own skill only, so the booking couldn’t see it.chosen_branchisllm_settable, so Claude can save the branch the customer picks, as in Part 5.
Step 2: Ask the Customer to Pick a Branch
Open skills/find_branch/skill.md and add step 4 at the end. The whole file now reads:
---
name: Find a Branch
description: Branch locations - addresses of our branches in a town or city
---
Help the customer find a branch.
1. If they haven't said which town or city, ask them.
2. Look it up with @tool.find_branches.
3. Give the name and address of each branch it returns, and only those. If it
returns none, say we have no branch there and mention that the mobile app
works around the clock.
4. If they need to pick one, for example for an appointment, ask which branch
suits them and record their choice with `set_memory`. Then finish: the
task that needed the branch carries on by itself.
Step 4 does two things:
- When the customer needs one branch, Find a Branch asks which one suits them and saves it in
chosen_branch. A customer who only wants addresses still gets the list and nothing more. - The last sentence tells Claude to finish Find a Branch as soon as the choice is saved, because the booking carries on by itself. Without it, Claude may carry on with the booking inside Find a Branch, without the booking’s rules (Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job).
Step 3: Hand the Branch Search to Find a Branch
Open skills/book_appointment/skill.md and add a new step 2 to its instructions. The old step 2 becomes step 3:
1. Find out which branch they want to visit, what the appointment is about
and which day suits them. Ask for anything they haven't said, one question
at a time. Record each answer with `set_memory` as soon as they give it.
2. If they don't know which branch to choose, help them find one with
@skill.find_branch. When it finishes, record the branch they chose there.
3. When you have all three, book it with @tool.book_appointment.
@skill.find_branch is a sub-skill reference: @skill. followed by the other skill’s id, which is its folder name under skills. When Claude reaches that step, Rasa pauses Book an Appointment, runs Find a Branch, and goes back to the booking when Find a Branch finishes. The rest of the sentence says what to do then.
While Find a Branch runs, the paused booking waits underneath it, with its memory kept. When Find a Branch finishes, the booking carries on from where it stopped. Rasa’s Sub-skills (opens in a new tab) guide guarantees that return: a skill started with @skill always hands back to its parent.
Keep the parent’s own job in the parent. Rasa’s guide asks for small skills that each do one thing, and for a parent with work of its own. Book an Appointment still asks for the topic and the day, applies the loan rule from Part 9 and books. Only the branch search moves to Find a Branch, which keeps working on its own for customers who only want an address.
The complete file:
---
name: Book an Appointment
description: Branch appointments - book a meeting with an adviser at one of our branches
complete_when:
condition: "session.book_appointment.booking_reference"
tool_constraints:
- book_appointment:
requires: >
session.book_appointment.branch
and session.book_appointment.topic
and session.book_appointment.day
requires_confirmation:
enabled: true
utter_for_confirmation: utter_ask_book_appointment_confirmation
utter_on_user_denial: utter_book_appointment_cancelled
utter:
- utter_book_appointment_confirmed:
when: "session.book_appointment.booking_reference"
---
Help the customer book an appointment with an adviser at a branch.
1. Find out which branch they want to visit, what the appointment is about
and which day suits them. Ask for anything they haven't said, one question
at a time. Record each answer with `set_memory` as soon as they give it.
2. If they don't know which branch to choose, help them find one with
@skill.find_branch. When it finishes, record the branch they chose there.
3. When you have all three, book it with @tool.book_appointment.
if: session.book_appointment.topic == 'loan'
Loan advisers work Monday to Friday only. If the customer wants a Saturday,
explain this and ask which weekday suits them instead.
if: session.book_appointment.topic == 'card'
Card appointments take place only at Riverton Station, where our card desk
is. If the customer chose another branch, explain this and ask whether
Riverton Station suits them.
Step 4: Train Your Agent
rasa train
When it finishes, the last line names your new agent package:
2026-11-25 09:59:11 INFO rasa.mantle.model_archive.snapshot - [info ] Mantle agent package saved at 'models/20261125-095910-wide-regression.tar.gz'.
A new INFO note says that chosen_branch has no validation tool. Like the others from Part 5, it isn’t an error. If the id after @skill. doesn’t match a skill folder, training stops and names it (see Troubleshooting).
Advertisement
Step 5: Book Without Knowing the Branch
rasa inspect
When the Rasa Inspector opens in your browser, send I'd like to book an appointment about a loan, but I don't know which branch to go to., then Riverton, then Riverton Station, please.

Find a Branch asked for the town, listed both Riverton branches and asked you to pick one. After your pick, the booking took over again and asked for the day, with its loan rule from Part 9. Send Friday, then Yes, and the agent books the appointment and gives you a reference, as in Part 8.
Step 6: Watch the Hand-off in Inspect Mode
Click the Inspector mode button at the top of the chat and choose Inspect. Under your first message, the events show the hand-off:

- Book an Appointment skill activated: Claude started the booking and saved the topic.
- Find a Branch skill activated: Claude followed
@skill.find_branch. The booking hasn’t finished: it waits underneath Find a Branch.
Under your third message, Riverton Station, please., you’ll find chosen_branch saved, then Find a Branch skill completed, and the next reply comes from the booking again. Click the LLM call just above that reply, “Riverton Station is noted. Which day would you like your loan appointment?”. The middle panel shows the skill that was running then, Book an Appointment:

In the right panel, scroll the Prompt box down to ### Memory:

find_branch.chosen_branch is Find a Branch’s public field, and the booking can read it. So Claude knew the branch without asking again, and saved it as the booking’s own branch together with the day in your next message.
Close the panel. The Memory panel on the right lists each skill’s fields:

Find a Branch still holds chosen_branch, and the booking holds its own branch. The brain icon marks values that Claude saved, and the wrench marks the reference that the booking tool saved.
When you’re done, go back to Terminal and press Ctrl+C to stop the agent.
Clean Up
If the agent is still running, press Ctrl+C in Terminal to stop it. Claude and Azure OpenAI both charge only for what your agent uses, so a stopped agent costs nothing.
Keep the my-rasa-agent folder: Part 12 builds on it.
Common Mistakes
| Mistake | Do this instead |
|---|---|
Writing the skill’s name, such as @skill.Find a Branch | Write its id, the folder name under skills: @skill.find_branch. |
Saving the sub-skill’s result under private | Put a field that the parent reads under public. Only the skill itself can read its private fields. |
| Leaving out where the sub-skill’s job ends | End its step with what happens next, as Find a Branch’s step 4 does: finish, and the parent carries on. See Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job. |
Pointing @skill. at a skill with hidden: true | Training fails, because a skill that you reach with @skill must stay in routing. To start a skill that’s kept out of routing, use an ordered block’s call: or link: step instead. |
Writing @skill for a different task | Use it only for a step of this skill’s own job. When the customer changes the subject, Rasa pauses the skill and offers to come back to it, with nothing to write. |
Troubleshooting
| Problem | Fix |
|---|---|
rasa train stops with “Skill ‘book_appointment’ references external call/link target ‘find_branches’, which does not resolve to a skill or flow in the catalog.” | The id after @skill. isn’t a skill folder. Here find_branches is the tool’s name, and the skill is find_branch. |
| Find a Branch asks for the day itself, or an LLM call’s prompt shows “’book_appointment’ is paused under ‘find_branch’” | Find a Branch didn’t finish after the pick. See Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job. |
FAQ
What’s the difference between @skill and @block?
@block, from Part 10, runs an ordered block inside the same skill. @skill runs a different skill, with its own instructions, tools and memory, and then comes back. Both take an id, never a display name (Rasa’s skill.md (opens in a new tab) reference).
What if the customer changes the subject instead?
That isn’t a hand-off. Rasa pauses the booking while it handles the new request, then offers to go back to it, and the customer decides. Only a @skill hand-off returns by itself (Rasa’s skill stack (opens in a new tab)).
How long does chosen_branch keep its value?
After Find a Branch finishes, chosen_branch keeps its value, so other skills can still read it. It’s cleared when Find a Branch starts again. For something that must last the whole conversation, such as a verified customer, Rasa recommends project memory instead (memory.yml (opens in a new tab) reference).
Can an ordered block call another skill?
Yes. A call: step runs another skill, then goes on to the step’s next. A link: step hands over to the other skill without coming back (Rasa’s Ordered block steps (opens in a new tab) reference).
How do I make a skill start only after another one has run?
Use a precondition. The skill names it in its frontmatter, and agent.yml says which memory value satisfies it and which skill Rasa runs until it does. Rasa’s Sub-skills (opens in a new tab) guide shows it with an identity check before a card replacement.
Conclusion
You connected two skills. The booking handed its branch search to Find a Branch with @skill.find_branch, waited while Find a Branch ran, then carried on with chosen_branch, the result Find a Branch shared in public memory. Each skill keeps one job, and Find a Branch still works on its own.
← Previous: Part 10: Ordered Blocks: Run Steps in a Fixed Order
Coming next: Part 12: The Runtime Loop: How Mantle Handles a Turn.
Additional Resources
- Sub-skills & Composition (opens in a new tab) (Rasa docs)
- Jumps to blocks and skills (opens in a new tab) in the skill.md reference (Rasa docs)
- Memory visibility (opens in a new tab) in the memory.yml reference (Rasa docs)
- The skill stack (opens in a new tab) (Rasa docs)
- Delegate a part of a skill to another skill (opens in a new tab) (Rasa docs)
Related
- Rasa Tutorial — Part 10: Ordered Blocks: Run Steps in a Fixed Order
- Rasa Tutorial — Part 4: Tools: Let Your Agent Run Python, where Find a Branch comes from
- Rasa Tutorial — Part 5: Memory: Remember What Matters, for
memory.yml - Fixed: Rasa Mantle Sub-skill Tries to Do the Parent Skill’s Job
- Rasa Tutorial for Beginners: Mastering Rasa Pro in Python, with every part of the series
Rasa, Claude, Azure and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by Rasa Technologies, Anthropic or Microsoft.
0 comments