Dynamic Forms: removing a slor from slot list - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum
👋 Introducing the Rasa Playground
Dynamic Forms: removing a slor from slot list
post by andreacirillo on Mar 1, 2021
Hello everyone!
Just a quick question. I know that in a dynamic form it is possible to add slots in the form slot list according to how conversation is developing. Is it possible to remove slots from the form slot list during the conversation?
For example
forms:
set_appointment:
date:
- entity: date
type: from_entity
hour:
- entity: hour
type: from_entity
Can I remove the slot “hour” under certain circumstances using a dynamic form?
Thanks, Andrea
414 views
post by alexyuwen on Mar 1, 2021
Hi Andrea, this should be possible by editing the required_slots method. You should be able to directly edit the slots_mapped_in_domain argument and return it, since Python is pass-by-reference. In your case, simply remove “hour” from the slots_mapped_in_domain list.