How to output a graph in the chat?

(swarnalathaa) #1

Is it possible to output the python graph in the chat console?

(Ella Rohm-Ensing) #2

What sort of graph are you thinking, and what sort of console?

(swarnalathaa) #3

I have a list which contains a company’s turnover for every year. So, when a user asks about a company turnover the custom action should plot the graph and output on slack.

(Ella Rohm-Ensing) #4

Do you have the graphs already in png/jpg etc. format locally? You can attach them as image links like in our moodbot example:

  utter_cheer_up:
  - text: "Here is something to cheer you up:"
    image: "https://i.imgur.com/nGF1K8f.jpg"

Where in this case it would be either the link to your file if hosted online, or if hosted locally, file:///<full-path-to-file>