I use Duckling as Entity Extractor. Now I am stuck in situation where I extract time for different purposes in different cases. For example I need to extract time both when user wants to schedule a meeting and when user schedules feed update (but there may be another cases in future too, so I can’t handle this by just resetting slot in a custom action). Obviously I can’t have one slot for it, as when user first schedules time for feed update, my “time” slot fills with that entity (auto_fill: true) and further I forcefully use it in meeting scheduling (I have a if else clause that checks whether “time” slot is not None).
So generally my questions are the following:
- Is it possible to set a slot with extracted entity inside a custom action?
- Is it possible to handle slot filling based on intent and handle it with stories?