Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plots in answers #606

Open
artwist-polyakov opened this issue Jun 29, 2024 · 0 comments
Open

Plots in answers #606

artwist-polyakov opened this issue Jun 29, 2024 · 0 comments

Comments

@artwist-polyakov
Copy link

Feature Request: Generate and Send Plots in Response to User Messages

Thank you for the amazing project!

I would like to propose a new feature for the Telegram bot:

Feature Description:
Enable the bot to generate and send plots as images in response to user messages using the OpenAI API.

Use Case:
Users could request specific data visualizations, and the bot would respond with a generated plot based on their input. For example, users could ask for a plot of a mathematical function or a data trend, and the bot would provide a corresponding image.

Implementation Suggestions:

  • OpenAI can generate code that creates a plot using Matplotlib or Seaborn.
  • The bot can execute this code to generate the plot.
  • The bot saves the generated plot as an image file, sends the image to the user, and then deletes the file to manage storage efficiently.

This feature would greatly enhance the interactivity and functionality of the bot. Thank you for considering this suggestion!

Best regards,
Aleksandr Poliakov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant