When any fallback action occurred, created my own fallback action which have following sequence of code:
- Send an utter_message to user displaying that it is connecting to the human agent
- Conversation is paused using tracker._paused = True
- Call to a REST API, which gets message from the human agent. API waits till it get message from the human agent
- this message is send to the user using utter_message
- Conversation is resumed using tracker._paused = False
As per this sequence of code, utter_message not displaying message to the user.
Please suggest what i am doing wrong, why utter_message not sending reply to the user. Also checked if i comment API call, then it sends reply to the user.