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
- A user @mentions your bot, for me it will be @SiliconOracle
- The script finds that new @mention and then reads the parent tweet it is being mentioned on
- The script takes that parent tweet and generates a witty response using a language model
- Respond is posted and tweet is logged
This notebook will focus on #3.
First let's import our packages# Twitter-Bot-OpenAI