Is it possible to set a slot value directly in story. I mean can we inject extra data which is not available from NLU but required in the custom action.
You can’t do it directly from the story, but you can create a custom action to set one or multiple slots at the same time. That custom action can be called from the story.
Just type - slot{“execute”: True} in the stories before you call your action and it will be set in stories itself.
Try debugging and you will see that the slot changes!
So if the user sends a message without an entity, you can set the default value for your slot
my_name_is
slot{“name”: “human”}
utter_hello
But its better to do it with a custom action so you can set your logic, like changing the conversation flow based on the slot. Eg in restaurant bot if there are no seats you can utter “Too many people” else perform action