Hey all - happy to share the final installment (for now) of our Retool Plotly guides series: an AI chatbot that will hopefully do a lot of the work of building your Retool charts for you.
As we did before with our Retool AI helper bot, we set up a drawer frame chatbot module that we can quickly pull into any app that helps support builders to generate Plotly code for their charts. Users can ask the chatbot for a specific type of chart, asking for chart type, demo data, annotations and more, and the chatbot will return the JSON objects, a chart preview, and even give tips for further improvements. Users can then click the buttons to copy to clipboard:
This chatbot uses the ChatGPT integration, and, using Retool Vectors, we contextualize the answers with the Plotly Docs to ensure precise and accurate answers and use some JavaScript to parse the response into code you can quickly copy and paste into your Retool chart component to get started immediatetely.
Our newsletter members can download the TypeScript for this module for free to import it directly into their environment.
We’d love to see screenshots of what you’ve managed to make with it!
You can read the rest of our guides here.