I want a bot to make charts?

I want a bot to make charts{not images} fetching the data from database? can anyone help me with code snippets

Can you elaborate? In case you want to use the utterances template check (It allows for a custom payload) here: Domains

If you mean in a custom action, you could use one of the methods defined in the dispatcher class: rasa-sdk/executor.py at master · RasaHQ/rasa-sdk · GitHub

Actually i want the bot to automatically fetch data from the database and if user asks for show charts the bot should understand and make a chart from the input which he has got.

Just add something to your custom action server which pulls data automatically from the database. After that create a custom action linked to your intent that processes the user question and sends the chart back to your frontend (in a format it understands)

@Mappi I am sorry but is there any chance you have an example code which i can implement. I am a beginner to Rasa

What kind of example code? I don’t know what your chart data looks like nor the database you are using. Additionally, I don’t know in what way your bot should understand the message.

1 Like

I wanted a bot which can generate charts from the input passed like : Show me the sales for current year in charts? and the bot should generate a chart[not image] fetching data from the ‘amazon web service’ database and the values will be in tabular format. Is it possible ? if yes can u provide me relevant documents.

Like I stated before, it should be possible, but you would need to implement it yourself. Its very specific to your use case.

The relevant documents to fetch data from AWS and mapping them to a tabular format (if they aren’t already) is not something related to Rasa. You’ll have to research that yourself.

I have a similar requirement did you mange to get it done