# Rasa slack bot issue again

**URL:** <https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860>\
**Category:** Rasa Open Source\
**Created:** [May 14, 2020, 3:54pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860 "2020-05-14T15:54:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [May 14, 2020, 3:54pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/1 "2020-05-14T15:54:04Z")

</div>

Hello again everyone.

In march i put this Rasa slack integration issue [Rasa Slack Bot Integration](http://forum.rasa.com/t/rasa-slack-bot-integration/25973) which i was able to solve, Steps are mention in the link itself. At that time i used not only ngrok but also GCP to deploy mood bot on GCP and connect to slack.

Now i have a similar new issue. I have deployed a bot on GCP using custom actions which i have build using this link : [Installation Guide](https://rasa.com/docs/rasa-x/installation-and-setup/docker-compose-manual/#connect-a-custom-action-server) and also created the custom image using docker from here : [https://rasa.com/docs/rasa/user-guide/docker/deploying-in-docker-compose/#building-an-action-server-image](https://rasa.com/docs/rasa/user-guide/docker/deploying-in-docker-compose/#building-an-action-server-image)

My Dockerfile looks like this

```auto
# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:1.10.0
# Use subdirectory as working directory
WORKDIR /app
# Copy any additional custom requirements, if necessary (uncomment next line)
COPY actions/requirements-actions.txt ./
# Change back to root user to install dependencies
USER root
# Install extra requirements for actions code, if necessary (uncomment next line)
RUN pip install -r requirements-actions.txt
# Copy actions folder to working directory
COPY ./actions /app/actions
COPY creds.json /app
# By best practices, don't run the code with root user
USER 1001
CMD ["start", "--actions", "actions.actions"]

```

my docker-compose.override.yml file looks like this:

GNU nano 2.5.3 File: docker-compose.override.yml

```auto
version: '3.4'
services:
  rasa:
    image: 'rasa/rasa-sdk:latest'
    ports:
      - 5005:5005
    volumes:
      - './actions:/app/actions'
    command:
      - run
  app:
    image: "athenasaurav/zyllu:rasa1"
    expose:
      - '5055'

```

My bot is working fine on rasa x from GCP, properly understanding the intent and working with custom actions also getting triggered.

No then i edited the credentials.yml file to connect the rasa to slack channel:

```auto
rasa:
  url: ${RASA_X_HOST}/api
slack:
  slack_token: ""
  slack_channel: ""

```

since i have just created this channel i dont have bot token scope. Although i have another slack app running using ngrok, so even tried to update its credentials in credentials.yml file and then restart the server then also i have this issue.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/46ddd82e25ce0b30b9055ddb8fd60c21fc5b826f.png)

i have read the rasa docs for [Slack](https://rasa.com/docs/rasa/user-guide/connectors/slack/) integration.

```auto
http://<host>:<port>/webhooks/slack/webhook

```

i tried various ports also but i wasnt lucky enough to solve this issue.

Can anyone tell what "port " i should use to solve this issue.

While using ngrok i figured out that the blank mention of the slack and the slack token works.

My docker logs for container rasa/nginx:0.23.3 shows this error whenever i try to connect to slack app:

```auto
54.224.246.185 - - [14/May/2020:15:49:44 +0000] "POST /webhooks/slack/webhook HTTP/1.1" 200 1574 "-" "Slackbot 1.0 (+https://api.slack.com/robots)"

```

Thank You

---

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [May 15, 2020, 6:06am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/2 "2020-05-15T06:06:04Z")

</div>

@erohmensing @wabi @Juste @mehdiHadji

please look into this issue

---

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [May 18, 2020, 8:17pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/3 "2020-05-18T20:17:36Z")

</div>

Can anyone please help?

---

<div class="post-metadata">

**Author:** ![event-wala](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/event-wala/32/7618_2.png) [@event-wala](https://forum.rasa.com/u/event-wala)\
**Post date:** [May 20, 2020, 11:56am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/4 "2020-05-20T11:56:53Z")

</div>

Hi @athenasaurav i have the same issue. I dont have any custom dependency in deployment. Its a simple chitchat bot. No backend and custom dependency. But i cant connect my GCP instance to slack, facebook, telegram or website. Are you able to find out the solution.

@amn41

---

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [May 20, 2020, 2:04pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/5 "2020-05-20T14:04:24Z")

</div>

Hi @event-wala,

Sadly no i don’t have a solution yet. If i found one i will let you know.

---

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [May 22, 2020, 8:11am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/6 "2020-05-22T08:11:07Z")

</div>

Hello Everyone the problem is solved now.

I really wish that rasa should do the documentations more correctly.

According to documentations of rasa here [Slack](https://rasa.com/docs/rasa/user-guide/connectors/slack/)

The Rasa request URL should be

```auto
http://<host>:<port>/webhooks/slack/webhook

```

which is wrong.

The request url should be

```auto
http://<host>/core/webhooks/slack/webhook

```

Please update this to Rasa docs please.

[![](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b54e1c88c9388a54f1df29439dd9b049c1b906c0.png "Ella Rohm-Ensing")](http://forum.rasa.com/u/erohmensing)

@erohmensing @amn41 @stephens @event-wala @juste_petr

---

<div class="post-metadata">

**Author:** ![event-wala](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/event-wala/32/7618_2.png) [@event-wala](https://forum.rasa.com/u/event-wala)\
**Post date:** [May 23, 2020, 4:00am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/7 "2020-05-23T04:00:01Z")

</div>

Thank @athenasaurav. It worked for me too

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 2, 2020, 9:44am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/8 "2020-06-02T09:44:04Z")

</div>

> [@athenasaurav](#):
>
> quest URL should be
> 
> ```auto
> http://<host>:<port>/webhooks/slack/webhook
> 
> ```
> 
> which is wrong.
> 
> The request url should be
> 
> ```auto
> http://<host>/core/webhooks/slack/webhook
> 
> ```

This is dependent on your Rasa X version. It should work without the `/core/` for any version \>= 0.27.0: [https://rasa.com/docs/rasa-x/changelog/rasa-x-changelog/#id105](https://rasa.com/docs/rasa-x/changelog/rasa-x-changelog/#id105)

---

<div class="post-metadata">

**Author:** ![athenasaurav](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/athenasaurav/32/8139_2.png) [@athenasaurav](https://forum.rasa.com/u/athenasaurav)\
**Post date:** [June 2, 2020, 10:06am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/9 "2020-06-02T10:06:47Z")

</div>

Thanks for update

---

<div class="post-metadata">

**Author:** ![Yiqun](https://avatars.discourse-cdn.com/v4/letter/y/b38774/32.png) [@Yiqun](https://forum.rasa.com/u/Yiqun)\
**Post date:** [July 23, 2020, 1:21am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/10 "2020-07-23T01:21:47Z")

</div>

Hi, everyone, I met this problem too, my Rasa X is the newest version, 0.31.0. I am using AWS EC2 to deploy my Rasa X, it is running well. However, I failed to connect my Rasa X with slack. And the solution here didn’t work for me any more as I am using the newest version of Rasa X. I tried different url, and I am stuck with this for one week.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f38edc55ba647a2ec1a5804150a6df3bc7b2669a.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 23, 2020, 11:29am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/11 "2020-07-23T11:29:38Z")

</div>

Hi @Yiqun, your url there looks like it’s missing `/webhooks`. It should look like `http://<ip>/webhooks/slack/webhook`.

In addition, you’ll need to make sure to add the slack credentials to your rasa x deployment for it to correctly respond with the challenge parameter!

---

<div class="post-metadata">

**Author:** ![Yiqun](https://avatars.discourse-cdn.com/v4/letter/y/b38774/32.png) [@Yiqun](https://forum.rasa.com/u/Yiqun)\
**Post date:** [July 23, 2020, 6:48pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/12 "2020-07-23T18:48:58Z")

</div>

@erohmensing Thank you so much, it works well now, and I have another problem, the buttons didn’t work in slack. Is this caused by the actions server? Do I need to add some codes in actions.py file to make buttons work in slack? The tutorial indicates I need add codes in actions.py, but the actions.py is empty in my local file. Then how can I make buttons work in slack? It is connected with Rasa X now.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 24, 2020, 1:46pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/13 "2020-07-24T13:46:08Z")

</div>

I think there is a bug with buttons actually ☹ you can keep up to date with the fix here: [https://github.com/RasaHQ/rasa/pull/6020](https://github.com/RasaHQ/rasa/pull/6020)

---

<div class="post-metadata">

**Author:** ![Yiqun](https://avatars.discourse-cdn.com/v4/letter/y/b38774/32.png) [@Yiqun](https://forum.rasa.com/u/Yiqun)\
**Post date:** [July 25, 2020, 1:01am UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/14 "2020-07-25T01:01:52Z")

</div>

@erohmensing I know Rasa open source have a file named slack.py, and the error can be fixed by editing this file. I am wondering where can I find this file in Rasa x? I am running my Rasa x using ubuntu in AWS, I failed to find it in any folder, and some folders are missing or hidden.

---

<div class="post-metadata">

**Author:** ![robynbitner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/robynbitner/32/10988_2.png) [@robynbitner](https://forum.rasa.com/u/robynbitner)\
**Post date:** [February 1, 2021, 7:18pm UTC](https://forum.rasa.com/t/rasa-slack-bot-issue-again/28860/15 "2021-02-01T19:18:33Z")

</div>

Any answer for this?
