A Rasa Mantle agent asked “Shall I freeze the card ending 4821 now?”, the customer answered “No, wait, I think it’s at home.”, and the agent replied in its own words, then asked the same question again. Here’s why a yes-or-no question in an ordered block can miss a no, and the change to one memory description 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 10: Ordered Blocks: Run Steps in a Fixed Order. Its Lost or Stolen Card skill asks whether to freeze the card with a collect: step, then branches on the answer: a yes freezes the card, anything else sends a not-frozen message.
skills/lost_card/skill.md (excerpt)
- id: ask_confirmation
collect: freeze_confirmed
utterance: utter_ask_freeze_confirmation
next:
- if: "session.lost_card.freeze_confirmed == True"
then: freeze
- else: not_frozen
The answer goes into a bool memory field, which had this description:
skills/lost_card/memory.yml (excerpt, before the fix)
freeze_confirmed:
type: bool
llm_settable: true
description: Whether the customer agreed to freeze the card now.
What I Expected
Claude would save the no as false, and the block would take its else branch: “No problem. I haven’t frozen your card…”
What I Got
The customer had said no, but the block was still waiting for an answer.
What I Checked
In Inspect mode, the events under the no show what happened:
The LLM call has nothing under it: Claude didn’t call set_memory, so freeze_confirmed stayed empty. Its reply is marked LLM generated, and the repeated question is the block’s own template.
Rasa’s Ordered block steps reference explains the repeat: once a collect: question has been asked, Rasa asks it again when Claude answers in its own words instead of saving a value. Claude had treated the no as a remark, not as the answer.
Why It Happens
- Claude answers a
collect:step by callingset_memory, and the field’s description tells it what the value means. Rasa sends that description to Claude with theset_memorytool. - The description said only what true means. Nothing in it said what makes the field false.
- Rasa’s prompt also tells Claude: “Only record values the user actually provided; never guess.” A hesitant no didn’t clearly fit the description, so Claude didn’t record anything.
- With the field still empty, the block stayed on its question and asked it again.
The Fix
Say in the description what counts as each value. Change the freeze_confirmed field in skills/lost_card/memory.yml:
skills/lost_card/memory.yml (excerpt)
freeze_confirmed:
type: bool
llm_settable: true
description: >-
Whether to freeze the card now: true when the customer agrees, false
when they say no or want to look for the card first.
- The description now names the no, including wanting to look for the card first, the answer Claude had left out.
- Write it in one place. A
collect:step can have its owndescription:, which then wins over the memory field’s (Rasa’s Ordered block steps reference).
Train again and restart the agent:
Terminal
rasa train
rasa inspect
After the Fix
The same answer after training again:
Claude saved the answer, and the block took its else branch. The Memory panel in Inspect mode shows the saved value:
Common Mistakes
| Mistake | Do this instead |
|---|---|
| Describing only what true means in a yes-or-no field | Say what makes it false as well, including hesitant answers such as wanting to check first. |
Setting a description on both the collect: step and the memory field | Write it in one place: the step’s description wins over the field’s. |
Troubleshooting
| Problem | Fix |
|---|---|
| The agent asks the same question again after a no | Claude didn’t save the answer. Make the field’s description say what counts as false. |
| The question comes back after the customer asks something else | That’s how a collect: step works: Rasa asks its question again after Claude answers a side question. |
FAQ
Why did Rasa ask the question again by itself?
A collect: step waits for its field. When Claude answers in words without saving a value, Rasa repeats the question so the step can get its answer.
Does this affect other memory fields?
Any field a collect: step fills depends on its description the same way: Claude saves a value only when the answer clearly fits it (Rasa’s memory.yml reference).
Conclusion
The block repeated its question because Claude didn’t save a hesitant no: the field’s description only explained the yes. A description that names both values lets Claude save the no, and the block moves on.
Additional Resources
- Ordered block steps (Rasa docs)
- memory.yml reference (Rasa docs)
- When Prose Is Not Enough (Rasa docs)
Related
- Rasa Tutorial — Part 10: Ordered Blocks: Run Steps in a Fixed Order, where this skill is built
- Rasa Tutorial — Part 5: Memory: Remember What Matters
- 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.
