Member-only story

Creating a Twitter Chatbot With OpenAI and DALL-E 2

Introducing a Twitter chatbot to answer questions and generate images using OpenAI

Shanaka C. DeSoysa
Better Programming
11 min readJan 2, 2023

--

A robot reading a book
Photo by Andrea De Santis on Unsplash

Have you ever wanted to ask a chatbot a question and have it provide a thoughtful response? Or have you ever wanted to generate an image based on a keyword or phrase? I recently created a Twitter chatbot that can do both of these things using OpenAI’s GPT-3 and DALL-E 2 technologies.

To use the chatbot, you just need to tweet a question or keyword with the hashtag #MyChatGPT or #MyDALLE2. The chatbot will then use GPT-3 to provide a response to the question or use DALL-E 2 to generate an image related to the keyword.

Here are some examples of how you can use GPT-3 with this bot.

Bot responses for book summary, explaining complex subject, and language translation

DALL-E 2 examples generated by the bot.

Bot response for DALL-E 2 requests

OpenAI

OpenAI is a research organization that is dedicated to advancing artificial intelligence (AI) in a responsible and safe manner. Founded…

--

--

Responses (1)

What are your thoughts?