DEV Community

Cover image for Magical Stories for All: Journey into Fantasy with Our StoryTeller Bot!
Shubrah Gupta
Shubrah Gupta

Posted on

Magical Stories for All: Journey into Fantasy with Our StoryTeller Bot!

This is a submission for Twilio Challenge v24.06.12

Ever wanted to go back to your childhood, when grandma told you stories about animals and birds, adding her own little twists while you sat in wonder about what would happen next? Ever felt bored and wished someone would read you magical stories that could transport you to another realm? Well, we've got just the thing for you!

What We Built

We(@khemraj_bawaskar_f283a984 and I) have created a storyteller bot for WhatsApp that reads stories to you over a call. Simply provide the genre and maturity level, and our bot will deliver an engaging storytelling experience tailored to your preferences.

Demo

Twilio and AI

We have leveraged the WhatsApp Sandbox feature of Twilio to create a storyteller bot that uses a webhook link for a Flask server. By integrating Azure OpenAI LLM for advanced AI capabilities and Twilio's voice call feature, our bot can call users and tell them a story in their desired genre.

We have a command '/story' to generate the response from the bot.

To get into the sandbox, follow this:

Whatsapp Sandbox

This link can help you get started with the Twilio Whatsapp sandbox: https://www.twilio.com/docs/whatsapp/sandbox

When the sandbox starts, the user can get started with '/start' command, which throws the following message:

Hello there! I'm your Storyteller Bot, here to whisk you away on incredible adventures. Whether you seek epic fantasies, heartwarming tales, or thrilling mysteries, I have a story for every mood and moment.

Please use '/story' tag followed with the genre and age group for which you want to hear the story.
Following template can be used:
'/story tell me a romantic story for age group of 24-26 years

The user can accordingly use the commands and get responses.

/story: Generates a story using Azure OpenAI from the genre and the maturity level provided by the user, and calls the user to read them a beautiful story.

Checkout our Github repo: StoryTellerBot repository

Additional Prize Categories

Our team believes that our submission of the fitness bot qualifies for two of the categories:

  1. Twilio Times Two: We have utilized two APIs provided by Twilio: the voice calling API and the WhatsApp Sandbox messaging API.

  2. Entertaining Endeavors: This project offers a wonderfully entertaining experience that can calm, soothe, or entertain users with their requested stories. Children often enjoy listening to stories while eating or sleeping, making this a great tool for them, akin to having their grandparents read to them. It is also beneficial for grown-ups who desire stories that are intense, thrilling, or chilling.

Top comments (2)

Collapse
 
keerthana_p_f49da22e47be0 profile image
Keerthana P

Great work

Collapse
 
harsh9838 profile image
Harsh Vardhan

Amazing work