Retrieve reply A reply in Twitter is a message toward a specific account, and it usually starts with the screen name of the receiver (e.g., @jack How are you today?). At the time of this writing, the Twitter API provides a method to retrieve tweets that contain a specific keyword in real-time (POST statuses/filter ). The bot receives a reply to the bot by retrieving tweets that contain the bot's screen name with this API. A Python library Tweepy is used to handle Twitter API.