Skip to content

timges/serverless-twitter-bot

Repository files navigation

🤖 Serverless Twitter Bot

💡 About

This is a small serverless application which utilizes

to automatically post ai-generated tweets including code snippets as images on a cron based schedule.

Infrastructure Diagram

📋 Prerequisites

  1. AWS Account
  2. Twitter & Twitter developer account. Create a twitter app and make sure to store the consumer-key, consumer-key-secret, access-key, access-key-secret as AWS SSM Paramters at the respective path /twitter-bot/twitter-client/[key-name]
  3. OpenAI api-key stored as a ssm parameter /twitter-bot/openai-api-key

🤔 How To Use

  1. clone the project
git clone https://github.com/timges/serverless-twitter-bot.git
  1. login to aws by running
aws configure
  1. install dependencies
pnpm install
  1. (optional): customize the prompts here
  2. deploy to your aws account
npx cdk deploy
  1. ✅ Done

About

Auto tweeter based on OpenAI Gpt 4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published