Storyteller
The storyteller use case demonstrates how to build an AI agent that creates engaging stories with accompanying images. The storyteller agent:
- Listens to your story prompts or ideas
- Generates creative narratives based on your input
- Automatically creates images at key story moments
- Narrates the story with synchronized visuals
This guide shows you how to configure both traditional and real-time voice-based storytellers.
Prerequisites
Before starting, ensure you have:
- TEN Agent playground running. Refer to the Agent quickstart.
- Agora RTC credentials from Agora Console
- API keys for your chosen services
- For traditional pipeline:
- STT service like Deepgram
- LLM like OpenAI
- TTS service like Fish.Audio
- For real-time V2V:
- Realtime API key from your V2V provider
- For traditional pipeline:
Traditional storyteller
This configuration uses separate services for speech recognition, language processing, and speech synthesis (STT + LLM + TTS).
Configuration steps
Set up your storyteller with these steps:
- Open the playground at
http://localhost:3000
- Select the
story_teller
graph type - Configure modules:
- Click Module Picker
- Select your preferred STT and TTS modules
- Keep the pre-configured OpenAI ChatGPT for LLM
- Click Save Changes
- Configure properties:
- Click the settings button next to the graph selector
- Enter your OpenAI API key and other module credentials
- Click Save Changes
- Start storytelling:
- Click Connect to initialize the agent
- Wait a few seconds for startup
- Begin speaking to create your story
Azure STT integration
For Azure speech recognition:
- Select the
story_teller_integrated_stt
graph type - Configure Azure credentials in the RTC module
- Follow the remaining configuration steps above
Pre-configured tools
The story_teller
use-case is preconfigured to use openai_image_generate_tool
. No additional tool configuration is necessary.
Real-time storyteller (V2V)
Create stories with lower latency using voice-to-voice models.
Configuration steps
Set up your real-time storyteller:
- Open the playground at
http://localhost:3000
- Select the
story_teller_realtime
graph type - Configure the V2V module:
- Click Module Picker
- Use the pre-configured OpenAI Realtime or select another provider
- Click Save Changes
- Configure API credentials:
- Click the settings button
- Enter your Realtime API key
- If using a different V2V provider, copy the prompt from OpenAI Realtime
- Click Save Changes
- Start creating:
- Click Connect to start
- Speak naturally to generate stories