In Rasa Pro’s Mantle engine, a skill can hand one of its steps to another skill with @skill, and the other skill is meant to hand back when it’s done. Mine didn’t: the sub-skill saved the customer’s branch, then asked the parent skill’s next question itself, with the wrong days, and Rasa answered one of its calls with “’book_appointment’ is paused under ‘find_branch’. Not saved: branch, day, topic. Record these values once ‘book_appointment’ is running again.” Here’s how it showed up in the Rasa Inspector, why it happened, and the one sentence that fixed it.
Seen on Rasa Pro 3.22.0 with the Mantle engine and Claude Sonnet 5.5.
What I Was Doing
I was writing Rasa Tutorial — Part 11: Sub-skills: Reuse One Skill Inside Another. Its booking skill, Book an Appointment, hands the branch search to the Find a Branch skill when the customer doesn’t know which branch to visit:
skills/book_appointment/skill.md (excerpt)
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.
Find a Branch saves the branch the customer picks in a public memory field, chosen_branch. This was its skill.md:
skills/find_branch/skill.md (before the fix)
---
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`.
What I Expected
Rasa’s Sub-skills guide says the parent resumes when the sub-skill finishes, with the sub-skill’s public memory available to it. So after Riverton Station, please., Find a Branch would save the branch and finish, and the booking would ask for the day, with its own rule from Part 9: loan advisers work Monday to Friday.
What I Got
Find a Branch saved the branch and kept going. It asked the booking’s question in its own words, with the wrong days for a loan:
In Inspect mode, the events show that Find a Branch was still running. It finished only after the next message, Friday:
The first LLM call after Friday answered with activate: Claude tried to start the booking again from inside Find a Branch. Rasa refused, and the next call’s Prompt ends with Rasa’s answer:
Output (the tool message in the Prompt)
'book_appointment' is paused under 'find_branch'. Not saved: branch, day, topic. Record these values once 'book_appointment' is running again.
In other conversations, Find a Branch finished in the same turn, but only after the same activate call and the same answer from Rasa. Sometimes Claude later passed those values to the booking tool, which reads them from memory and takes none, and the call failed with “Invalid tool arguments: Unexpected argument(s): ‘branch’, ‘day’, ‘topic’.” before Claude tried again without them.
What I Checked
I clicked the LLM call that answered with activate and read its Prompt. While Find a Branch runs, Claude reads Find a Branch’s instructions, which ended at saving the choice. The booking appears only in the list of other skills that Claude can switch to, with the fields it still needs:
Prompt in the Inspector (excerpt)
### Other skills (switch with `activate` when the user changes topic):
- book_appointment: Branch appointments - book a meeting with an adviser at one of our branches
fields:
- branch (text): The branch the customer wants to visit, as they named it, such as Riverton Station.
- day (one of: monday, tuesday, wednesday, thursday, friday, saturday): The weekday the customer wants. Branches are closed on Sundays.
- topic (one of: new_account, loan, card, other): What the customer wants to talk about with the adviser.
Nothing in that prompt says that the booking is waiting for Find a Branch.
Rasa’s skill.md reference says how the booking was parked: a skill started with @skill is a delegation, and the parent resumes “automatically, when the referenced skill finishes”. So nothing had to start the booking again. Find a Branch only had to finish.
Why It Happens
- Find a Branch’s step 4 ended at saving the choice. It didn’t say what came next.
- Claude, working inside Find a Branch, could see that the customer wanted a loan appointment, and the booking was listed as a skill it could switch to. So it tried to carry on with the booking itself: by calling
activatefor it, or by asking the day question in its own words. - The booking was already waiting underneath Find a Branch, so Rasa saved nothing from that
activatecall and said so. - Find a Branch’s prompt has the booking’s fields but not its instructions. That’s why its question used the day field’s choices, Monday to Saturday, instead of the booking’s loan rule.
The Fix
Tell the sub-skill where its job ends. In skills/find_branch/skill.md, add one sentence to the end of step 4:
skills/find_branch/skill.md (excerpt)
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.
The sentence matches how Rasa works: a skill reached with @skill hands back to its parent when it finishes, so Find a Branch has nothing to start. Train again and restart the agent:
Terminal
rasa train
rasa inspect
After the Fix
The same conversation after training again:
Find a Branch saves the choice, its next call answers only with complete, and the following reply comes from the booking, with its loan rule. No call asks to activate the booking.
Common Mistakes
| Mistake | Do this instead |
|---|---|
| Telling the sub-skill to start the parent skill again | Let it finish. Rasa brings the parent back by itself. |
| Putting the sentence in the parent skill | Put it in the sub-skill: while Find a Branch runs, Claude reads Find a Branch’s instructions, not the booking’s. |
| Moving the parent’s questions into the sub-skill | Keep each question in the skill that has its rules. The day question belongs to the booking. |
Troubleshooting
| Problem | Fix |
|---|---|
| An LLM call’s prompt shows “'<parent>’ is paused under ‘<sub-skill>’. Not saved: …” | Claude called activate for the waiting parent. End the sub-skill’s step with where its job ends, as above, and train again. |
| “Invalid tool arguments: Unexpected argument(s): …” on a tool that reads memory | Claude passed values that the tool takes from memory. If it follows the message above, the same fix applies. |
FAQ
Does the parent always come back after a sub-skill?
Yes. Rasa calls that return guaranteed for a skill started with @skill. Only a topic change, when the customer asks for something else, ends with an offer to go back instead (Rasa’s skill stack).
Why did the sub-skill know the booking’s days but not its loan rule?
Find a Branch’s prompt lists the booking with its memory fields, including the day field’s choices. The loan rule is in the booking’s instructions, which Claude reads only while the booking is the running skill.
Conclusion
Find a Branch did its step, then tried to carry on with the booking, because nothing told it where its job ended. One sentence that says to finish once the choice is saved lets Rasa hand back to the booking, which asks its own questions with its own rules.
Additional Resources
- Sub-skills & Composition (Rasa docs)
- Jumps to blocks and skills in the skill.md reference (Rasa docs)
- The skill stack (Rasa docs)
Related
- Rasa Tutorial — Part 11: Sub-skills: Reuse One Skill Inside Another, where the hand-off is built
- Rasa Tutorial — Part 9: Scoped Instructions: Show Claude Only the Rules That Apply, for the loan rule
- Rasa Tutorial — Part 4: Tools: Let Your Agent Run Python, where Find a Branch comes from
- Rasa Tutorial for Beginners: Mastering Rasa Pro in Python, with every part of the series
Rasa, Claude and other names mentioned are trademarks of their respective owners. JD Bots isn’t affiliated with or endorsed by Rasa Technologies or Anthropic.
