{
  "name": "Play RPG with Groq Dungeon Master via Telegram voice messages",
  "nodes": [
    {
      "id": "7b59c66c-f7e9-441b-ba17-2536876fbe5f",
      "name": "Groq Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        -400,
        144
      ]
    },
    {
      "id": "c49f905b-3550-4cf1-869c-bc6cc5fe8d5d",
      "name": "Dungeon Master",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -400,
        -144
      ]
    },
    {
      "id": "4774287b-912d-48ce-9e43-24e4e3fe7351",
      "name": "The track of your adventure",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -304,
        16
      ]
    },
    {
      "id": "702c2639-f2a8-4a5d-bf77-0154bc44dbe3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1696,
        -288
      ],
      "parameters": {
        "width": 480,
        "height": 656,
        "content": "**Dungeons & Goblins AI Dungeon Master (with voice in Telegram)**\n\nThis workflow turns n8n into a persistent Dungeons & Goblins Dungeon Master powered by a Groq model and long-term memory that can be "
      }
    },
    {
      "id": "e9e3d484-e2d5-409e-b596-1dafa7094724",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -288
      ],
      "parameters": {
        "width": 312,
        "height": 652,
        "content": "**3. Agent processes your input using saved data**"
      }
    },
    {
      "id": "e55932d0-5f8d-49ef-aef8-2cd5d3a3a98e",
      "name": "Send an audio file",
      "type": "n8n-nodes-base.telegram",
      "position": [
        112,
        -144
      ]
    },
    {
      "id": "c2bdde76-802b-4c67-9491-3b785638940e",
      "name": "Paste your Groq API key",
      "type": "n8n-nodes-base.set",
      "position": [
        -784,
        -144
      ]
    },
    {
      "id": "3c9c2e21-0923-4c32-a386-ec7ad16d58d8",
      "name": "Receive Voice Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1152,
        -144
      ]
    },
    {
      "id": "c0e6b798-8600-49a9-9a69-7ddf03a06dde",
      "name": "Download Audio File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -976,
        -144
      ]
    },
    {
      "id": "aa5b954a-b6b9-4a75-983e-0e457511ecb1",
      "name": "Speech to Text",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -608,
        -144
      ]
    },
    {
      "id": "cf13f298-b87e-4684-a83e-b5bf67824f7e",
      "name": "Text to Speech",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -64,
        -144
      ]
    },
    {
      "id": "f94d6a18-089c-44ab-94bb-3149a2e9263d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -288
      ],
      "parameters": {
        "width": 360,
        "height": 652,
        "content": "**1. Bot receives voice message and downloads it**"
      }
    },
    {
      "id": "24cf687c-a971-49a8-8bab-4a631430b548",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        -288
      ],
      "parameters": {
        "width": 376,
        "height": 652,
        "content": "**2. Using your entered API key Groq parses speech to text**"
      }
    },
    {
      "id": "2d892931-48c8-43af-a031-3652b73274d9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -288
      ],
      "parameters": {
        "width": 376,
        "height": 652,
        "content": "**4. Using your entered API key Groq generates speech from text and sends it via the Bot**"
      }
    }
  ],
  "connections": {
    "Dungeon Master": {
      "main": [
        [
          {
            "node": "Text to Speech",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Speech to Text": {
      "main": [
        [
          {
            "node": "Dungeon Master",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text to Speech": {
      "main": [
        [
          {
            "node": "Send an audio file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Dungeon Master",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio File": {
      "main": [
        [
          {
            "node": "Paste your Groq API key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Voice Message": {
      "main": [
        [
          {
            "node": "Download Audio File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Paste your Groq API key": {
      "main": [
        [
          {
            "node": "Speech to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The track of your adventure": {
      "ai_memory": [
        [
          {
            "node": "Dungeon Master",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    }
  }
}