Goya Twitter/X bot
Tech
- OpenAI
- AWS
- AWS CDK
- Lambda
- Cloud Formation
- S3
- EventBridge
- DynamoDB
- SecretsManger
Year
2023
Status
Active - 2023
Description
Goya bot is a an automated Twitter/X bot that makes a post once a a day on the works of Francisco Goya. It is built with AWS using Node, Typescript and OpenAI. It has an event driven architecture. An EventBridge routine is run each morning triggering lambdas that generate a new tweet with content generated by AI related to works of Goya. S3 is used as storage for the images and dynamoDB for the persistent state of the app. The tweet is then posted to Twitter using the Twitter v2 API.
The app is driven by a Cron job operating once a day at 6am UTC.
Previews
Design
The architecture was designed to be cost effective as possible and utilizes generous offers from AWS that makes this small app run for very few pence! I will add a landing page in the coming weeks and will host it on S3.
Extra info
The integration with the Twitter v2 api comes from the npm package twitter-api-v2