I’m looking for a way to execute an action the first time users start talking to the bot. Like at the very start of a talking session. Basically when an user (employee in this case) send the first message to the bot, i want to take the sender_id, make a query to the database and get some necessary information then set them to the corresponding slots, so that the bot can use those information from then on.
Desired: User: First message (from any intent) Bot: action_set_up (get information from DB and assign them to the slots) Bot: Response to message (may or may not use the information)
Now i can think of a way to achieve this, but it is not efficient: Using MappingPolicy to map action_set_up to all of the intents.
I wonder if there is a better and more efficient way to do this. Any help would be appreciated. Thank you.