# Handing off to human on Slack

**URL:** <https://forum.rasa.com/t/handing-off-to-human-on-slack/26203>\
**Category:** Rasa Open Source\
**Created:** [March 17, 2020, 1:13pm UTC](https://forum.rasa.com/t/handing-off-to-human-on-slack/26203 "2020-03-17T13:13:14Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![nbeuchat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nbeuchat/32/13688_2.png) [@nbeuchat](https://forum.rasa.com/u/nbeuchat)\
**Post date:** [April 20, 2020, 5:44pm UTC](https://forum.rasa.com/t/handing-off-to-human-on-slack/26203/13 "2020-04-20T17:44:37Z")

</div>

Hey @KhalidBentaleb, sure, have a look! I simplified it a bit as we have quite some code specific to our use case just to generate the right message for our customer support team.

I am using the slack client 1.3 (`slackclient~=1.3`) as I had issues with version 2. `link_names` is set to `1` so as to have the mention with `@customersupport` work (only works with groups, not individual users).

```auto
class ActionHandoverToSupport(Action):
    def name(self):
        return "action_handover_to_support"

    def run(
        self,
        dispatcher,
        tracker,
        domain,
        reason: Text = None,
    ):
        events = []
        text = f"@customersupport Help needed for user {tracker.sender_id}"
        response = client_slack.api_call(
            "chat.postMessage", channel=SLACK_SUPPORT_CHANNEL, text=text, link_names=1
        )

        if response.get("ok"):
            dispatcher.utter_message(template="utter_handover_to_support")
            events.append(ConversationPaused())
        else:
            dispatcher.utter_message(
                template="utter_technical_issue",
                extra_message="I could not send a message to my humans 😢",
            )

        return events

```

Hope that helps!! Nicolas

---

_[View the full topic](https://forum.rasa.com/t/handing-off-to-human-on-slack/26203)._
