# Message not going frm ngrok to Rasa in Slack integration

**URL:** <https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838>\
**Category:** Rasa Open Source\
**Created:** [October 15, 2019, 1:48pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838 "2019-10-15T13:48:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogeshkulkarni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yogeshkulkarni/32/17420_2.png) [@yogeshkulkarni](https://forum.rasa.com/u/yogeshkulkarni)\
**Post date:** [October 15, 2019, 1:48pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/1 "2019-10-15T13:48:17Z")

</div>

Facing problem in Slack integration with Rasa 1.\* command line way. Steps followed are at

> <https://github.com/yogeshhk/TeachingDataScience/blob/master/Jupyter/iplbot/READMe.md>

In short:

- Created a workspace (“DataHacksConf2019”), a channel ("#rasachatbot") and an app (“rasachatbotdemo”).

- Noted down Bot user OAuth (starting with xoxb)

- Turned Event subscription ON. Subscribe to workspace events: message.channel , message.groups , message.im and message.mpim

- Re-installed the app

- Changed credentials.yml file with the Slack chat bot OAuth token (starting with xoxb) and channel ("#rasachatbot")

- Ngrok: In a separate window

- Changed endpoints.yml (same port as ngrok)

- In another window, with activate rasa environment on a different port 5002

- In Slack App Event subscription, Verifed (rasa server, ngrok, actions, all must be running)

- Started chatting in Slack

The message seems to go from Slack to ngrok on 5002 (says status ok 200), but from there its not showing up in rasa server running on 5002

Am I missing anything?

All necessary files are at [TeachingDataScience/Jupyter/iplbot at master · yogeshhk/TeachingDataScience · GitHub](https://github.com/yogeshhk/TeachingDataScience/tree/master/Jupyter/iplbot)

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [October 15, 2019, 1:53pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/2 "2019-10-15T13:53:33Z")

</div>

The action endpoint runs on local host:

`url: "http://localhost:5055/webhook"`

Ngrok should have the port of the rasa server, in this case 5002.

---

<div class="post-metadata">

**Author:** ![yogeshkulkarni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yogeshkulkarni/32/17420_2.png) [@yogeshkulkarni](https://forum.rasa.com/u/yogeshkulkarni)\
**Post date:** [October 16, 2019, 12:20am UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/3 "2019-10-16T00:20:48Z")

</div>

Still not getting it.

Is there any particular sequence or order that needs to be followed? The tutorial that I followed had started ngroks on two ports? necessary? confused here?

- how should credentials.yml look?
- how should endpoints.yml look
- Seeing so many versions of this process. Any authoritative step by step tutorial available for Rasa 1.\*?

---

<div class="post-metadata">

**Author:** ![yogeshkulkarni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yogeshkulkarni/32/17420_2.png) [@yogeshkulkarni](https://forum.rasa.com/u/yogeshkulkarni)\
**Post date:** [October 16, 2019, 12:34am UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/4 "2019-10-16T00:34:14Z")

</div>

my ngrok is running on 5002, its token is 375d7c95

my credentials.yml has only following two lines:

```
slack:
  slack_token: "xoxb-XXXXXXXXXXXXXXXXXXXXXXXX"

```

my endpoints.yml has only following two lines

```
		action_endpoint:
		 url: "http://375d7c95.ngrok.io:5002/webhook"

```

In slack I have verified event subscription to

`https://375d7c95.ngrok.io/webhooks/slack/webhook`

my action server is running at 5055

my rasa server running with command:

`python -W ignore -m rasa run --connector slack --port 5002 --cors *`

Still message is not passed to rasa server, ngrok shows status ok 200 though

Anything missing? Are there any sensitive typos?

PS: (too many variables to get one thing right…hushh!!)

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [October 17, 2019, 4:27pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/5 "2019-10-17T16:27:40Z")

</div>

Here are some steps for [ngrok](https://rasa.com/docs/rasa-x/get-feedback-from-test-users/#use-ngrok-for-local-testing) and the steps for [slack](https://rasa.com/docs/rasa/user-guide/connectors/slack/)

Your endpoints.yml should look like:

```
action_endpoint:
  url: "http://localhost:5055/webhook"

```

Because your action\_endpoint is for the actions, not for rasa. Remember that you also need to execute “rasa run actions” in other terminal.

---

<div class="post-metadata">

**Author:** ![yogeshkulkarni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yogeshkulkarni/32/17420_2.png) [@yogeshkulkarni](https://forum.rasa.com/u/yogeshkulkarni)\
**Post date:** [October 17, 2019, 6:01pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/6 "2019-10-17T18:01:08Z")

</div>

That clarification helped.

One observation: I need to start rasa server on , say 5004, first, then ngrok http on 5004, then get the ngrok url token, put it in Slack Verify then only it verifies fine else it errors. Order seems important

---

<div class="post-metadata">

**Author:** ![zaidalvi](https://avatars.discourse-cdn.com/v4/letter/z/ecc23a/32.png) [@zaidalvi](https://forum.rasa.com/u/zaidalvi)\
**Post date:** [February 9, 2020, 7:25pm UTC](https://forum.rasa.com/t/message-not-going-frm-ngrok-to-rasa-in-slack-integration/19838/7 "2020-02-09T19:25:52Z")

</div>

Hi @yogeshkulkarn, @Gehova i. I am having the same problem with my Moodbot. My messages are being sent through ngrok to rasa. Rasa is able to predict what to do next but I do not see a response on slack. Can you please tell me what to do? I have also tried removing the slack\_channel field. I also tried adding @Moodbot the name of my bot in that field. I have followed all tutorials and still haven’t found a solution.

I execute the commands in the following order:

1. rasa run (by default this goes to 5005)
2. ngrok http 5005
3. copy the first link in my endpoints file (http:-ngroklink-:5055/webook
4. rasa run on port 5002
5. ngrok http 5002
6. copy that link in event subscriptions
7. URL gets validated

 ![14%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/330aa199cd9c18ab1314ac15eea83386633846eb.png) ![47%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/362a87af6308a37ced65ae223aec8ea86346ceee.jpeg) ![55%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d695f160fc2fa4a62353296990983190dc9333eb.jpeg) ![50%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b2be29d10fc8794c7d5af7190fbea4f24362f581.png) ![58%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e57b0e092f30af39c23100a9edddba8b394f3c91.png) ![15%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/657bcc16e71b53534454a3c822703fde865c12c7.png) ![39%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/50e68e7affa632fe4ac71ab8d6874388717724d1.png)
