I want to render a graph on the slack from the custom action.
Let say the NLU layer has classified the intent of the user utterance and the Rasa Core now pass the control to the custom action where the sql query will be executed and data would be fetched from the database table. Now let say the data extracted need to be converted to a graph and the graph need to be dispatched to the UI ( slack)
I am not able to find any help either in the doc or on the github. Kindly help in achieving it.
I think the issue is that you are calling send_attachment method on the name of the class: SlackBot. What you want to do is create an instance of the class first, and then call this function, e.g.
that depends, if you are sending a message to a channel, then the recipient id can just be None. You just have to make sure that your slackbot instance has a channel set