Skip to content

Fully automated Twitter account that provides daily insights into historical ๐Ÿ›๏ธ events, narrated by none other than Olaf Scholz, the German Chancellor. ๐Ÿ‡ฉ๐Ÿ‡ช

Notifications You must be signed in to change notification settings

paukraft/automated-olaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Olaf Explains

Welcome to the GitHub repository for Olaf Explains, a unique and fully automated Twitter account that provides daily insights into historical events, narrated by none other than Olaf Scholz, the German Chancellor.

9db85b3c-1786-4aa3-9d89-6dd1a7ce00d3

How it works

Each day, Olaf Explains provides a detailed Twitter thread about a significant historical event that happened on that date. The tweet begins with a brief explanation of the event, followed by a thread delving further into the details. Each tweet is accompanied by an AI-generated image that depicts the event, with the amusing twist of featuring Olaf Scholz's face on the main character.

The entire process, from generating the tweets to creating the images, is fully automated thanks to Teampilot AI. All powered by a single "launchpad".

Initially GPT generates the content of the tweet. However, since GPT isn't always accurate in counting characters, a custom function validates tweet length, ensuring each tweet adheres to Twitter's 280 character limit. If the test fails, GPT will rewrite and retest it until it passes.

After the tweet has been generated and validated, our AI creates a fitting image for the event using DALL-E 3. The AI then adds a final touch by swapping the main character's face in the image with a pre-uploaded image of Olaf Scholz.

Why Teampilot

When conceptualizing Olaf Explains, a tool was needed that could handle multiple AI tasks effectively. Traditional methods would have required integrating multiple APIs, such as OpenAI for language model, OpenAI's DALL-E for image generation, and Replicate or HuggingFace for face-swapping AI. This would've meant a lot of code and signing up for multiple services.

Teampilot, however, offered a more holistic and streamlined solution. With Teampilot's single "launchpad", all these tasks were combined into one cohesive workflow. This made the development process not only more manageable but also more efficient.

Want to Run Your Own Automated Twitter Bot?

Currently, the Teampilot launchpad used in this project cannot be directly copied. If you're interested in running your own automated Twitter bot or need help setting up a similar project, please don't hesitate to send me a direct message on Twitter.

Contributing

As an open-source project, we encourage contributions. Feel free to fork the repository, make your changes, and submit a pull request. If you have any questions, feel free to reach out on Twitter.

License

This project is licensed under the terms of the MIT license. For more details, see the LICENSE file.

About

Fully automated Twitter account that provides daily insights into historical ๐Ÿ›๏ธ events, narrated by none other than Olaf Scholz, the German Chancellor. ๐Ÿ‡ฉ๐Ÿ‡ช

Resources

Stars

Watchers

Forks