I am at a point where i want a going conversation to be paused in a custom action, and take all the user inputs directly toward this custom action without getting it through NER. After a taking answers of a couple of questions from user i want to resume the conversation from that state again.
you can return a ConversationPaused() event to pause the conversation within a custom action.
But i’m not sure how you would get user input from the user if you pause the conversation?
Yes, I am also facing the same issue for human agent handoff, returned ConversationPaused event from custom action and there is no way to send user input to human agent afterwards.
Is there any way to pause and resume conversation in custom action without returning from custom action run method?
Also if two users send request at the same time for custom action, the second user request didn’t reach to the custom action till first user request gets completed.
Please suggest how to handle human handoff with handling multiple user requests at a time.
This should work fine – you just have to forward the messages to the human agent now. The messages should get recorded, they just don’t get handled by Rasa Core
Then I start a loop that keeps checking for new messages from the LiveChat API and in the tracker.events. But it seems the paused tracker isn’t accepting any message from the user anymore. On the console I get the following:
rasa_1 | 2019-10-29 14:24:50 DEBUG rasa.core.lock_store - Failed to acquire lock for conversation ID '85bebecfb21f42508d07e240fc0097ad'. Retrying...
@akelad I found my mistake, I way connecting through websockets inside a custom action and trying to keep the websocket connection open while uttering templates etc. That doesn’t work very well… and I found that connection to a async webservice from the action server isn’t really a good solution.
Well, I was taken of the project just after this… management didn’t want people doing innovation… so never got a change to fix my mistake… I have some ideas but no way currently to try them out.