Inspiration
I wanted to make something with Gemini.
What it does
Uses Gemini Flash 1.5 to summarize wikipedia articles and posts the summary on social media. You can see the bot at: https://x.com/WikiSumm
How we built it
I host a script on Digital Ocean Functions. Which can then be triggered by a cronjob, also on Digital Ocean Functions. The script uses Python to get Wikipedia articles. Caps the article size to a few thousand characters. Sends it to Gemini Flash 1.5 and has it summarize the article. The summary and URL to the summarized article is then sent to the X Developer Portal. Where I have made an app that acts as the bot account. Consequently the bot account posts the summary and URL.
So in short. A bot that summarizes and posts/tweets the summary on X.
Challenges we ran into
The rate limit on the X developer portal is fairly low for free accounts. This limits what functionality one can make for free or at low cost. And makes it more troublesome to test.
Accomplishments that we're proud of
I made it work.
What we learned
How to make a Gemini API call in my own serverless function.
What's next for Wiki Summarizer bot
Might consider to optimize its summaries with better LLM prompts. Or to have it be able to answer user questions about the Wikipedia article summarized. If I saved the article summarized in a database. And made the script able to check for user replies. Then I could have it respond to the user with information from the article. Like a teacher or tutor on that one article. The free rate limit on the X developer portal makes that unfeasible for now. So I have kept it as just posting summaries.

Log in or sign up for Devpost to join the conversation.