Slack buttons fail silently

@rbossie Hi there, I’m not sure your problem is related to the slack modifciations, in that the error seems to indicate there is an error in the action file. Bear in mind that the slack code basically interfaces the core rasa structures to a particular implementation, so the same rasa structures get mapped by the slack code before they get sent to slack, and the very same structure would be mapped to facebook structures and then sent if you were interfacing to facebook. So you see, the core rasa structures are unchanged, it’s the interfacing code in the channels directory (slack/facebook/rocketchat etc) that does the work of mapping it to a specific format.

With all that in mind, don’t make channel specific changes in your actions - they are still generic and independent of the channel you are using, and as such should be plain vanilla rasa structures which will be mapped by the channel code to whatever channel you are using.

Hope that helps,

Best wishes,

M

@mark_collins Thank you for your answer! I’m not sure if it helps, maybe I don’t understand it correctly.

This is the case:

Before I made changes to the slack.py file, I had no problems with my action file. The buttons worked fine in the command line, and also showed up on Slack. The only problem was that, when clicking a button, nothing happened.

After I made changes to the slack file, I got the error described above.

How can it be the case that before the changes, everything worked fine (except clicking the buttons) and after the changes in slack.py I get an error for my action file?

@mark_collins Your solution eventually worked!:smiley:

I made a mistake when changing the slack file. Apparently I modified the wrong slack file (located somewhere else on my computer). Now I made the changes to the correct file and I’m able to click the buttons!

Hi @mark_collins! Can you please send me a copy of the code as well? Can’t get the buttons to work on Slack as well. thanks in advance for considering!

Hi Clarisse,

[sorry for the late reply, I replied by email and bumped off the “no-reply” forum email forwarding]

Are you certain this is the same problem? It takes a while for the code to get processed and merged, but this should have been fixed by now. Without checking I can’t be sure my fix is still relevant, as I’ve moved from slack to my react-native app now, so I’m using a bespoke interface :frowning:

Get back to me if you think it is the same problem and I’ll go rummaging in the latest Rasa build to see if I can see what’s going on. I’m pressed against some deadlines, so timing on this might be variable.

Best wishes,

M