You shouldn’t take the approach of handing handoff via a custom action. Rasa should not be involved in the communication with the live agent. You’ll find existing posts on this topic with more details: