Run a voice RPG over Telegram with n8n

A Telegram bot can let one player run a fantasy campaign by voice while the agent keeps the story, rolls dice, and remembers prior turns.

Done with n8n· Advanced

What they did
They built an n8n workflow tied to Telegram voice messages. Groq handled speech-to-text, then an n8n agent pulled the saved game state from memory, followed a tight system prompt for turn order and narration, and wrote back updated state in structured form. If an action called for randomness, the agent first paused for permission, rolled the dice, and then used Groq text-to-speech to send the response as audio.
How it went
The setup is described as a working template for solo fantasy play that carries state from one turn to the next. No playtest counts or other measured results were provided.
Tips
Use a clear rule set in the system prompt so the agent knows when to narrate, when to ask for approval, and when to save state. You’ll need both a Groq API token and a Telegram bot token; the free Groq tier is enough to start.

Try it yourself with n8n

Help me build an n8n workflow for a [genre] RPG played through Telegram voice messages. Convert my speech to text, keep a persistent game state for [character name], narrate the next scene, and if an action needs randomness, explain the choice and ask me to approve the roll before you do it. After each turn, save the updated story and character state, then send your reply as audio. Do not submit, delete, or make any irreversible change without my explicit okay.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Read the original on n8n.io ↗

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.