Human Handoff through Slack

I want to build a Rasa ChatBot which can transfer the control to a human agent using some platform like slack, I’m not sure how to make use of slack API to achieve this. I have tried this using slack event adapter but it gives a timeout error in rasa

Here’s What I already tried-

Flask app:

Can someone help me implement this feature? CC: @k1m