Skip to main content
0 reactions

Fixed: Rasa Mantle Asks the Same Question Again After the Customer Says No

Featured card for the fix Rasa Mantle Asks the Same Question Again After a No: the customer says “No, wait, I think it’s at home.”, the agent asks “Shall I freeze the card ending 4821 now?” again, and after the fix it replies “No problem. I haven’t frozen your card.”; notes “Seen on Rasa Pro 3.22” and “Fix: say what a no means”.
Fixed: Rasa Mantle Asks the Same Question Again After a No

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)Plain text
  - 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)YAML
    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

A conversation in the Rasa Inspector: the customer says they’ve lost their debit card and gives 4821, the agent asks “Shall I freeze the card ending 4821 now? Nobody will be able to use it.”, the customer answers “No, wait, I think it’s at home.”, the agent replies in its own words that it won’t freeze anything until told to, and then asks “Shall I freeze the card ending 4821 now?” again.
The customer said no, and the same question came back.

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 Rasa Inspector event list after “No, wait, I think it’s at home.”: an LLM call with no events under it, Claude’s reply marked LLM generated, and then the question “Shall I freeze the card ending 4821 now?” marked as the utter_ask_freeze_confirmation template.
No set_memory under the LLM call, then the question again.

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 (opens in a new tab) 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 calling set_memory, and the field’s description tells it what the value means. Rasa sends that description to Claude with the set_memory tool.
  • 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)YAML
    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 own description:, which then wins over the memory field’s (Rasa’s Ordered block steps (opens in a new tab) reference).

Train again and restart the agent:

TerminalBash
rasa train
rasa inspect

After the Fix

The same answer after training again:

A conversation in the Rasa Inspector after the fix: the customer gives the card ending 4821, answers the freeze question with “No, wait, I think it’s at home.”, and the agent replies “No problem. I haven’t frozen your card. If you can’t find it, just tell me and I’ll freeze it straight away.”, then asks whether it can help with anything else.
The no now takes the block’s else branch.

Claude saved the answer, and the block took its else branch. The Memory panel in Inspect mode shows the saved value:

The Memory panel of the Rasa Inspector for the Lost or Stolen Card skill: freeze_confirmed is false and card_last_four is 4821, both marked with the brain icon for values Claude saved.
freeze_confirmed saved as false.

Common Mistakes

MistakeDo this instead
Describing only what true means in a yes-or-no fieldSay 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 fieldWrite it in one place: the step’s description wins over the field’s.

Troubleshooting

ProblemFix
The agent asks the same question again after a noClaude didn’t save the answer. Make the field’s description say what counts as false.
The question comes back after the customer asks something elseThat’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 (opens in a new tab) 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

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.

0 comments