# How a human handoff is done in rasa or rasa x

**URL:** <https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570>\
**Category:** Tutorials, Resources & Videos\
**Created:** [October 10, 2019, 10:34am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570 "2019-10-10T10:34:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam123](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sam123](https://forum.rasa.com/u/sam123)\
**Post date:** [October 10, 2019, 10:34am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/1 "2019-10-10T10:34:55Z")

</div>

Is it possible to implement a human handoff if the bot is unable to answer the customer query.how the human handoff is done

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [October 10, 2019, 11:46am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/2 "2019-10-10T11:46:22Z")

</div>

Hello @sam123, welcome to the forum! Yes, this is possible with custom actions, see [Actions](https://rasa.com/docs/rasa/core/actions/#id2). Check out [Guiding Users](https://rasa.com/docs/rasa/dialogue-elements/guiding-users/#handing-off-to-a-human)

---

<div class="post-metadata">

**Author:** ![sam123](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sam123](https://forum.rasa.com/u/sam123)\
**Post date:** [October 10, 2019, 11:51am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/3 "2019-10-10T11:51:38Z")

</div>

In user guide its written to human handover

" **The direct request to speak with a human can be handled using the mapping policy:**

**intents:** \*\* - request\_human: {“triggers”: “action\_human\_handoff”}\*\*"

but this is not working.

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [October 10, 2019, 2:19pm UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/4 "2019-10-10T14:19:49Z")

</div>

Did you add the mapping policy to your `config.yml` file?

---

<div class="post-metadata">

**Author:** ![sam123](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@sam123](https://forum.rasa.com/u/sam123)\
**Post date:** [October 11, 2019, 4:43am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/5 "2019-10-11T04:43:27Z")

</div>

Actually i added the mapping policy to the domain.yml file and in config.yml file i added TwoStageFallbackPolicy. Then i got the error action\_human\_handoff is not defined. Whether we have had the custom action action\_human\_handoff or which mapping policy to be added to the config.yml file.

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [October 15, 2019, 8:37am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/6 "2019-10-15T08:37:50Z")

</div>

Yes, you will have to define the `action_human_handoff` as a custom action (see [Actions](https://rasa.com/docs/rasa/core/actions/#id2)). How exactly you implement the handoff is your choice.

---

<div class="post-metadata">

**Author:** ![ravikrcs](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ravikrcs/32/10301_2.png) [@ravikrcs](https://forum.rasa.com/u/ravikrcs)\
**Post date:** [November 12, 2019, 1:03pm UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/7 "2019-11-12T13:03:47Z")

</div>

how to define the action\_human\_handoff

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [November 13, 2019, 7:07am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/8 "2019-11-13T07:07:12Z")

</div>

Here is an example: [rasa-handoff/actions.py at fa66c4f802d6edb1fb91bd59ab65dea4a736a40e · moaazsidat/rasa-handoff · GitHub](https://github.com/moaazsidat/rasa-handoff/blob/fa66c4f802d6edb1fb91bd59ab65dea4a736a40e/actions.py#L64) I haven’t tested this myself, though.

---

<div class="post-metadata">

**Author:** ![ravikrcs](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ravikrcs/32/10301_2.png) [@ravikrcs](https://forum.rasa.com/u/ravikrcs)\
**Post date:** [November 14, 2019, 5:51am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/10 "2019-11-14T05:51:10Z")

</div>

![tracker](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e3580d820b2e5068cda14659862267b1e30620cb.png)

i got this error

AttributeError: ‘Tracker’ object has no attribute ‘update’

---

<div class="post-metadata">

**Author:** ![Swapratim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/swapratim/32/7958_2.png) [@Swapratim](https://forum.rasa.com/u/Swapratim)\
**Post date:** [April 8, 2020, 8:37pm UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/11 "2020-04-08T20:37:44Z")

</div>

> [@j.mosig](#):
>
> config.yml

I followed the Rasa User Guide document and also tried to implement the following codebase: [https://github.com/moaazsidat/rasa-handoff/blob/master/actions.py](https://github.com/moaazsidat/rasa-handoff/blob/master/actions.py)

I have added intents, updated action, train the bot - but it is not clear how the human support will enter into the conversation? Is it from Rasa X conversations? But I cannot find any option there. Also the git code does not provide any further response back to the bot conversation.

I am a newbie in Rasa. Is there any document that I can follow with a step by step method? All the above questions are quite old. I hope I’m not trying to re-utter the same scenario again. But would really appreciate to find a way to test this.

Thanks.

---

<div class="post-metadata">

**Author:** ![kingemerald](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@kingemerald](https://forum.rasa.com/u/kingemerald)\
**Post date:** [May 20, 2020, 4:56pm UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/12 "2020-05-20T16:56:10Z")

</div>

Hi Ravi, I am facing the same issue. Did you able to make it work? Kindly post your findings.

---

<div class="post-metadata">

**Author:** ![vaidehi](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@vaidehi](https://forum.rasa.com/u/vaidehi)\
**Post date:** [June 5, 2020, 10:10am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/13 "2020-06-05T10:10:59Z")

</div>

Hi @j.mosig Can I getter some other example ? AttributeError: ‘Tracker’ object has no attribute ‘update’

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [June 15, 2020, 9:31am UTC](https://forum.rasa.com/t/how-a-human-handoff-is-done-in-rasa-or-rasa-x/19570/14 "2020-06-15T09:31:42Z")

</div>

Hello @vaidehi

I think this other thread might help you: [Forwarding messages to Slack and vice versa for human hand-off](http://forum.rasa.com/t/forwarding-messages-to-slack-and-vice-versa-for-human-hand-off/28447)
