Site icon JD Bots

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)

  - 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 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:

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 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

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.

Train again and restart the agent:

Terminal

rasa train
rasa inspect

After the Fix

The same answer after training again:

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:

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 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

Related

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.

Exit mobile version