{
  "name": "AI chatbot call center: demo call back (production-ready, part 6)",
  "nodes": [
    {
      "id": "7f37feab-7b61-4fa6-8c91-c0fba6e81428",
      "name": "Media Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        200,
        920
      ]
    },
    {
      "id": "15cd74bb-555b-4dee-bb6e-083763a6aef3",
      "name": "Flow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -1820,
        760
      ]
    },
    {
      "id": "7278ddee-8706-48fb-a103-824122255564",
      "name": "Input",
      "type": "n8n-nodes-base.set",
      "position": [
        -1580,
        760
      ]
    },
    {
      "id": "8cdd1195-a304-4c19-ae58-32bc116767d9",
      "name": "Test Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1820,
        960
      ]
    },
    {
      "id": "d422a706-ae5c-4260-8a56-f77c95f5e607",
      "name": "Test Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1580,
        960
      ]
    },
    {
      "id": "efeb6250-7049-489e-9ca7-cd989c8ac4a7",
      "name": "Download Minimax Audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1540,
        640
      ]
    },
    {
      "id": "bf81adff-eab4-49b2-adae-86a2749e77ea",
      "name": "Telegram Voice Output",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1740,
        620
      ]
    },
    {
      "id": "f5b0ae5d-a45d-46a2-9d73-cf543c10f1c7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1160,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0b2a3b09-3719-4726-918c-2a041537d494",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "27450565-b746-49ca-b652-2823ac5c532b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        760
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f5517bef-bc96-4a88-a2a6-d581b064331a",
      "name": "If Provider No",
      "type": "n8n-nodes-base.if",
      "position": [
        -1340,
        760
      ]
    },
    {
      "id": "2dc1548d-6329-4d60-abd4-25e91543effb",
      "name": "Provider Cache",
      "type": "n8n-nodes-base.redis",
      "position": [
        -1080,
        520
      ]
    },
    {
      "id": "aaddc697-2336-46be-a88a-fa69a8eeabb8",
      "name": "Save Provider Cache",
      "type": "n8n-nodes-base.redis",
      "position": [
        -380,
        600
      ]
    },
    {
      "id": "920995e5-e543-4f0e-bb3b-9c72843cbaab",
      "name": "If Provider Cache",
      "type": "n8n-nodes-base.if",
      "position": [
        -860,
        520
      ]
    },
    {
      "id": "9768a213-2471-496c-8101-5e1625ac5089",
      "name": "Provider",
      "type": "n8n-nodes-base.set",
      "position": [
        -160,
        500
      ]
    },
    {
      "id": "3462fb92-b466-4dbe-8176-8ed434162206",
      "name": "Load Provider Data",
      "type": "n8n-nodes-base.postgres",
      "position": [
        -600,
        600
      ]
    },
    {
      "id": "c5297e7c-5ab0-4a4b-8ec3-07b410f56f6a",
      "name": "If Provider Voice",
      "type": "n8n-nodes-base.if",
      "position": [
        560,
        780
      ]
    },
    {
      "id": "79e2cc7a-df75-46ec-b49a-884667b52e00",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2100,
        660
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ce0507a8-ebf1-4f4d-b3a8-9d17e3aa9d12",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        820,
        720
      ]
    },
    {
      "id": "12ee2e31-d06e-4b15-b72a-a2409f92f101",
      "name": "Create Chat Log Output",
      "type": "n8n-nodes-base.postgres",
      "position": [
        560,
        160
      ]
    },
    {
      "id": "aea3239f-219b-41b1-9026-2222cac97a6f",
      "name": "Create Chat Log Input",
      "type": "n8n-nodes-base.postgres",
      "position": [
        340,
        60
      ]
    },
    {
      "id": "de6b2428-dbc8-4004-a319-aadbeaf9c580",
      "name": "If Input",
      "type": "n8n-nodes-base.if",
      "position": [
        120,
        140
      ]
    },
    {
      "id": "5cbe76b1-0ea4-4d40-8941-e51ebbc038ff",
      "name": "Output",
      "type": "n8n-nodes-base.set",
      "position": [
        2220,
        1380
      ]
    },
    {
      "id": "254958ca-ad37-4c3e-8957-6af9f9899a55",
      "name": "Media Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        200,
        1140
      ]
    },
    {
      "id": "91bdac61-2819-4189-8341-6ce9812f7d8f",
      "name": "Chinese,Yue",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        520
      ]
    },
    {
      "id": "a08d4c06-ccba-4740-85fe-99c8786ca5da",
      "name": "Minimax TTS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1340,
        640
      ]
    },
    {
      "id": "c243d382-f5c7-49e9-8c2d-01104c550eee",
      "name": "Chinese",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        680
      ]
    },
    {
      "id": "9673e139-15b0-445b-ad01-4bebc7703f70",
      "name": "Japanese",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        840
      ]
    },
    {
      "id": "6ba0be81-f47d-4b22-a539-5a0ce10c3d7c",
      "name": "English",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        1000
      ]
    },
    {
      "id": "eb8e9741-505d-4375-910a-64702dea7bc6",
      "name": "If Reply",
      "type": "n8n-nodes-base.if",
      "position": [
        1980,
        800
      ]
    },
    {
      "id": "d694be56-34f1-4f11-90d4-f55aa1f34b7b",
      "name": "Telegram Reply Output",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2220,
        700
      ]
    },
    {
      "id": "60789078-05a3-48c8-8821-34513c82e009",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7118e129-23d8-4420-b609-c6239912276a",
      "name": "Telegram Output",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2220,
        940
      ]
    },
    {
      "id": "e95a9255-1184-4c1c-b43d-678674c7abf2",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b1f76f30-98c9-4421-a858-0d4795148fb4",
      "name": "Parse Cache",
      "type": "n8n-nodes-base.code",
      "position": [
        -600,
        440
      ]
    }
  ],
  "connections": {
    "Input": {
      "main": [
        [
          {
            "node": "If Provider No",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Chinese,Yue",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chinese",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chinese",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Japanese",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "English",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chinese": {
      "main": [
        [
          {
            "node": "Minimax TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "English": {
      "main": [
        [
          {
            "node": "Minimax TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Input": {
      "main": [
        [
          {
            "node": "Create Chat Log Input",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Chat Log Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Reply": {
      "main": [
        [
          {
            "node": "Telegram Reply Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Telegram Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Japanese": {
      "main": [
        [
          {
            "node": "Minimax TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Provider": {
      "main": [
        [
          {
            "node": "Media Switch",
            "type": "main",
            "index": 0
          },
          {
            "node": "If Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chinese,Yue": {
      "main": [
        [
          {
            "node": "Minimax TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Minimax TTS": {
      "main": [
        [
          {
            "node": "Download Minimax Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Cache": {
      "main": [
        [
          {
            "node": "Provider",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Fields": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flow Trigger": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Media Switch": {
      "main": [
        [
          {
            "node": "If Provider Voice",
            "type": "main",
            "index": 0
          }
        ],
        [],
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Trigger": {
      "main": [
        [
          {
            "node": "Test Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Media Switch1": {
      "main": [
        [
          {
            "node": "If Reply",
            "type": "main",
            "index": 0
          }
        ],
        [],
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Provider No": {
      "main": [
        [
          {
            "node": "Provider Cache",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Media Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Provider Cache": {
      "main": [
        [
          {
            "node": "If Provider Cache",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Output": {
      "main": [
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Provider Cache": {
      "main": [
        [
          {
            "node": "Parse Cache",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Load Provider Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Provider Voice": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Provider Data": {
      "main": [
        [
          {
            "node": "Save Provider Cache",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Provider Cache": {
      "main": [
        [
          {
            "node": "Provider",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Chat Log Input": {
      "main": [
        [
          {
            "node": "Create Chat Log Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Reply Output": {
      "main": [
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Voice Output": {
      "main": [
        [
          {
            "node": "If Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Minimax Audio": {
      "main": [
        [
          {
            "node": "Telegram Voice Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}