In the list of experiments to try LLMs / Vibe coding for different use cases, tried to build an automation.
The Blueprint: From Idea to “Vibe Code”
The plan was a five-step of logic and code:
- What is trending: First, figure out what the world is talking about by picking up on a trending topic.
- Research: Use the web to research that topic and understand the what, who, and why of it all.
- Opinion: Formulate an actual opinion based on a pre-defined persona. This was the crucial part—it couldn’t just be a mindless content aggregator.
- Draft Tweet: Craft and post an original tweet that adds to the conversation.
- Engage with the community by liking, reposting, and replying to other high-quality tweets on the subject.
I managed to stitch this all together with the help of Gemini 2.5 Pro using API from Twitter, Tavily and Open AI.
Code – https://github.com/balaganesh/tweetautomation
Prompt – Google Drive Link