Replies - Activity - cck197 - Rasa Community Forum

cck197

Christopher Kelly

Handing off to human on Slack

I’ve got the simple part working using slackclient==2.5.0 with minor modifications to the code above:

import os
from slack import WebClient
from slack.errors import SlackApiError

client_slack = WebClient(token=os.environ["SLACK_API_TOKEN"], run_async=True)
SLACK_SUPPORT_CHANNEL = os.environ["SLACK…"

Thanks for your response! I appreciate it. I think Rasa is an incredible product and I’m excited about what I might be able to build using it. What you just said is exactly the type of thing I’d like to see more of in the docs! Rather than:

Responses defined in a domain’s yaml file can contain im…

It might be relevant here if we end up spending a lot of time making it work on Slack when it can’t work elsewhere. Or can it work elsewhere? Is there any evidence of buttons working via SMS or WhatsApp?

I just got going on Whatsapp via Twilio. The buttons are rendered as a numbered list and as far as I can tell, the only way to respond is to type the payload or something that hits the appropriate intent.

Yes, I’m not sure Rasa X is ready for prime time. Either that or I don’t know how to use it! I find myself using the conversation log a lot then editing the source files using a text editor in my local dev environment. I’ve also been having a lot of trouble training a model inside Rasa X, and I use …

The more I think about this, the more I think I’m doing it wrong. Otherwise, wouldn’t more people be running into the same problem? I developed a minimum viable bot first using Rasa X. Now I’m trying to connect it to some channels. If I ever do SMS or voice, will I be able to use buttons? I don’t th…

Yes, thank you! I never would have got this far without your video, and I appreciate your hard work filing the bug report.

LOL I’d just bodged in the exact same hack:

cck197@ubuntu:~/rasa/rasa$ diff --color /home/cck197/rasa/venv2/lib/python3.6/site-packages/rasa/core/channels/slack.py ./rasa/core/channels/slack.py
356,357c356
< #metadata = self.get_metadata(request)
< me…

Are we running into the same problem?

There’s something different about the interaction payload:

The payload will be sent to your specified request URL in an HTTP POST. The body of that request will contain a payload parameter. Your app should parse this payload parameter as JSON.

https://…

Three hours later, I still can’t make the buttons work! You hint at the end of the video. Can I see your domain.yml file? My buttons work fine in the rasa shell but not with Slack. When I click on the button, I get the following exception thrown in the console running rasa run --enable-api --cors "…

Super helpful, should be linked from the docs. Now how do I make my buttons work??

Nope. I didn’t specify anything there.

I claimed a static IP like this: Then I configured an A-record at my 3rd party DNS provider (dnsimple) to point to the static IP.

I also noticed some weirdness in 0.27.5 that I’m sure wasn’t there before. Maybe the problem just got fixed in 0.27.6?

I managed to solve the SSL problem by adding a Google-managed certificate at the cluster-level. I’m pretty sure I used the cloud console, i.e. no command-line anything. Deploying Google-managed SSL certificates Full disclosure: I’ve no idea what I’m doing.

For now I solved the problem by building my own image like this:

diff --git a/Dockerfile b/Dockerfile
index 936c3bd0718..f01a2507d45 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -40,7 +40,7 @@ WORKDIR /build
RUN python -m venv /opt/venv && \
. /opt/venv/bin/activate && \
pip install --no-cach…

Ah yes, I see. In general, I’ve found the Rasa X docs quite hard to navigate. It seems like there are options but it’s not clear what bits apply to my configuration. Separately, it took me ages to figure out the paths parameter, which on GKE should look like this:

I seemed to have fixed the problem but I’ve no idea how! Rather than following the docs: To configure the credentials, copy the section below into the values.yml

I started with values.yaml from the helm chart. The only thing I changed was the app: section so that my action server is pulled fro…

I got the same problem when I used Python 3.7.5 and 3.8.0 on Ubuntu 18.04.4 but pip install rasa worked fine when I used Python 3.6.9.

virtualenv -ppython3.6 venv
. venv/bin/activate
pip install rasa