Generate graph using openAI API

Hi ,
I am 10 days noob baby in AI and with the help of forum community I was able to solve many things. So, I am looking to get some help again of how to ask gpt to generate a graph from the data.
As far I know, first I have to create the functionality of plotting the graph then OpenAI API will come into play for user to ask the question. But I am missing some points here don’t know what. I know this theoretically how to do that practically and which model should be used. I am not using Python for my project and I guess programming language won’t play the big role overhere. Any link or suggestion will help me alot.

1 Like

You should try using the Assitant API with GPT-4o, you can upload a CSV and ask the assistant to generate a graph from the file!

You don’t actually need code if you do it in the OpenAI console and don’t want to display it on a website.!

But I have to display in the website. It’s a customer project where the customer will ask the question and the graph will be generated using openAI API. Correct me if I am wrong ,Assistant API is used for internal purpose

1 Like

You can look at my App OpenAssitantGPT, it can help you with that. Built-in feature to display an assistant in a website, the only solution is to code it yourself or use a thirdparty app.

  1. Create a chatbot
  2. Add it to your website
  3. Ask him to generate a graph base on stats
  4. Graph will be displayed

I did this with a custom csv file using the app!

But you could probably also use something than the assistant to generate graph as long as you have the gpt-4o it should do the trick!

The Assistant API is good if you have custom content and need to search etc… from what I understand it can be used for internal and external use.

1 Like

Thanks for you suggestion. I was able to generate the graph without using Assistant API. Going for the custom one.

1 Like

Slightly separate topic but stumbled across your amazing website while looking through the forums. Im currently in the process of trying to integrate the assistant into Teams and I was wondering whether your platform had any plans to feature this!

There is currentlty no solution for this, but using this Dialogs - Teams | Microsoft Learn could do the job!

Screenshot 2024-08-06 125512|393x500
i want to create growth chart in angular 14 any one know about this chart pls help me
if anyone know about ant chargeable chart like this so also we purchase this library

Hi abhinavk, can you share how you were able to do it. I am trying to do the same thing.

we can questions of gpt 4-o like plot the time series of s&p 500 over time and it seems to do a good job. has anyone been able to do that in their own app? is it possible? or we have to use our own tool kit (data retrieval, python, plotly, dash etc. etc.)?? Thanks for any help.

Hello @caneloalvarez007 …Hello , I used oxyplot library . You can use library of your own choice. I just used it as a tool to let gpt know that this tool is your assistant here and remaining work was done by gpt 4. In the oxyplot I gave the basic functionality of how the plot should be plotted as a common function