Skip to main content

Play RPG with Groq Dungeon Master via Telegram voice messages

Workflow preview

Workflow preview
100%
Play RPG with Groq Dungeon Master via Telegram voice messages preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Dungeons and Goblins — AI Telegram Voice Adventure with Persistent Memory This n8n template demonstrates how to use an AI agent with persistent memory to run a structured, rules driven fantasy role...

Best for

  • Miscellaneous automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgroq, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.stickynote, n8n-nodes-base.telegram, n8n-nodes-base.set, n8n-nodes-base.telegramtrigger, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anton Bezman.

Original n8n.io source

1.1 Workflow description

Title
Play RPG with Groq Dungeon Master via Telegram voice messages
Workflow name
Play RPG with Groq Dungeon Master via Telegram voice messages

Dungeons and Goblins — AI Telegram Voice Adventure with Persistent Memory

This n8n template demonstrates how to use an AI agent with persistent memory to run a structured, rules-driven fantasy role-playing game entirely through Telegram voice messages. The workflow acts as a Dungeon Master, narrating scenes, resolving mechanics, performing dice rolls when authorized, and explicitly saving game state between turns.

How it works

  • A player actions are provided to Telegram bot via voice messages.

  • The AI agent loads the current game state from n8n memory.

  • A strict system prompt enforces rules, turn flow, and narration.

  • When an action requires a dice roll, the agent waits for player authorization.

  • Once authorized, the AI rolls, resolves the outcome, and applies changes.

  • All state updates are emitted as structured data and saved to memory.

  • The request and response are processed in Groq's STT and TTS.

Use cases

  • Solo text-based fantasy campaigns

  • Persistent AI-driven adventures

  • Testing stateful AI agents in n8n

  • Educational examples of memory-aware workflows

Requirements

  • Groq API token (free tier supported)

  • Telegram bot API token

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Groq Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 2 - Dungeon Master

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 3 - The track of your adventure

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Send an audio file

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Paste your Groq API key

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Receive Voice Message

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 9 - Download Audio File

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Speech to Text

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Text to Speech

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Play RPG with Groq Dungeon Master via Telegram voice messages
Complexity intermediate
Nodes 14
Categories Miscellaneous, AI Chatbot
Author Anton Bezman
Published 14 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11787/11787.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Play RPG with Groq Dungeon Master via Telegram voice messages do?

Dungeons and Goblins — AI Telegram Voice Adventure with Persistent Memory This n8n template demonstrates how to use an AI agent with persistent memory to run a structured, rules driven fantasy role...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Miscellaneous, AI Chatbot use case.