Play RPG with Groq Dungeon Master via Telegram voice messages — n8n Workflow

Medium complexity Trigger9 nodes🏷️ Miscellaneousby Anton Bezman

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-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.

Nodes used

HTTP RequestTelegramAI AgentSimple MemoryGroq Chat Model

Workflow Preview

Dungeons & Goblins AI Dungeon Master (with vo
This workflow turns n8n into a persistent Dungeons & Go
3. Agent processes your input using saved dat
1. Bot receives voice message and downloads i
2. Using your entered API key Groq parses spe
4. Using your entered API key Groq generates
modelmemory
Groq Chat Model
Dungeon Master
The track of your advent…
Send an audio file
P
Paste your Groq API key
R
Receive Voice Message
Download Audio File
Speech to Text
Text to Speech
9 nodes8 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 9 nodes, connecting agent, httprequest, lmchatgroq.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (9)

HT

HTTP Request

httpRequest

#1
TE

Telegram

telegram

#2
AI

AI Agent

n8n-nodes-langchain.agent

#3
SI

Simple Memory

n8n-nodes-langchain.memoryBufferWindow

#4
GR

Groq Chat Model

n8n-nodes-langchain.lmChatGroq

#5

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded play-rpg-with-groq-dungeon-master-via-telegram-voice-messages file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Play RPG with Groq Dungeon Master via Telegram voice messages", "nodes": [...], ...}

Integrations

agenthttprequestlmchatgroqmemorybufferwindowsettelegramtelegramtrigger

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes9
Complexitymedium
Triggertrigger

Created by

Anton Bezman

Anton Bezman

@nefar1an

Tags

agenthttprequestlmchatgroqmemorybufferwindowsettelegramtelegramtrigger

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows