Skip to content

Built a Bot for automating the replies in twitter using OpenAI's API with Langchain

Notifications You must be signed in to change notification settings

AayushSonkar/Twitter-Bot-OpenAI

Repository files navigation

Twitter-Bot-OpenAI

Ever see those Twitter bots that reply to comments automatically? Like this one or this one

Let's create one ourselves. In this notebook we'll just look at the prompting technique I used. In the full code you'll see the other helper code to deploy this app.

Here's how the final app will work

  1. A user @mentions your bot, for me it will be @SiliconOracle
  2. The script finds that new @mention and then reads the parent tweet it is being mentioned on
  3. The script takes that parent tweet and generates a witty response using a language model
  4. Respond is posted and tweet is logged

This notebook will focus on #3.

First let's import our packages# Twitter-Bot-OpenAI

About

Built a Bot for automating the replies in twitter using OpenAI's API with Langchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages