What is Grokomatic?
Grokomatic is an experimental console program I created using .NET and C#. It generates social media content based on information in a JSON file. In my example this contains a list of technical innovations. It will randomly pick an item from the list, generate the related text and image using AI, and post it to Facebook, Instagram, and X (formally Twitter).
In this series, we'll walk through the source code which I have posted on GitHub.
Why I Did It
Just because it is possible, with the help of generative AI, to fully automate the process of posting text and images to social media, should we do such a thing? You will have to answer that for yourself but personally I can see where it has its downside. I mean how much AI generated content really needs to be regurgitated into cyberspace?
So why did I do it? Great question. Let me explain. This project started out as just a personal challenge so I could mess around with the Grok API which was recently made available. They were giving free credits during the last couple of months of 2024. I simply chose a real-world scenario so I would have an application to experiment with. I would run it until 2025 and then call it good. That's what I did. And I have to say, it was pretty fun.
Why You Might Care
The potential for this application, if it's not obvious already, is that it could be modified to give it a little more control. You could add a Draft Mode where it generates the content that could then be edited with a personal touch. Maybe some fact checking could be done to validate its accuracy. Then when you're ready to post you could select and publish to the platforms of your choice. In other words, it could really streamline your process.
Remember, you can change the content to fit your needs. It's a simple JSON file after all. And you could add functionality to upload your own picture and/or have AI regenerate a new variation.
Originally, I was exclusively using Grok for the text generation. However, in the end I made it where you can choose from multiple AI providers. For instance, you can use Grok, OpenAI, or Ollama (to run locally). It wouldn't be too hard to add others that are compatible with OpenAI.
Below is the full Playlist. Hope you find it helpful in some way. Take care!
https://github.com/TigerTriangle/Grokomatic