Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Generating Dragon Ball Fan Fiction with OpenAI's GPT-3 and Twilio SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Sam Agnew
Word Count
1,363
Company Posts That Month
49
Language
English
Hacker News Points
-
Post removed?
No
Summary

A Python script is used to create a text-message powered bot that generates fan fiction in the Dragon Ball universe using OpenAI's GPT-3 model and Twilio SMS. The script requires an API key from OpenAI, which can be obtained by applying for beta access. It also needs a Twilio account and phone number, as well as ngrok to give a publicly accessible URL to the code when it runs. The bot uses Flask to create a web application that responds to text messages sent to the phone number. When a message is received, the OpenAI API generates dialogue based on a randomly selected character from the series, which is then sent back to the user as a response. The script allows users to tweak the results by experimenting with different parameters and prompts. It also provides examples of how to generate fan fiction for other series, such as Star Wars.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 1 9 4 1 +50%
Real-time 1 791 222 78 +3%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.