I think you can use pandas.DataFrame.to_string method to convert data frame to string and so an utterance (At custom action with dispatcher.utter_message function). It may be a naive solution.
Hi @nik202 I’m able to convert my dataframe into a table using pandas and dataframe_image module. What it does is that it converts the data into tabular format and downloads the table as an image. Now, I just want this to happen via my webchat widget in rasa. I created a custom action for this but it fails to download the table as an image for me. Rasa server always throws this error -
Could you please guide me where or how to extract the json message passed by rasa here. Or you could even provide a snippet of your code if you don’t mind. Thanks in advance!
Thank you @janaesh , I watched the video but nowhere in the video, he has shown how he could receive data sent by Rasa into his front-end.
If you see in this post, Jitesh has dispatched a json message via his custom action and used it in his frontend. However, his frontend is entirely different. I need to just do something like this in my front-end code.
Hi, you will have to write custom socketio channel by yourself by looking at the code on Rasa github repo. to get metadata from events,
Events are list of dict so you will have to parse and search and extract it yourself.