Hello again everyone.
In march i put this Rasa slack integration issue Rasa Slack Bot Integration 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 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
My Dockerfile looks like this
# 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
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:
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.
i have read the rasa docs for Slack integration.
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:
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