{ "name": "n8n-sip-pbx-demo-part-3-step-3-routing-queue-ai-recording-tools", "nodes": [ { "parameters": { "triggerOn": "trunk", "ref": "external", "trunkConnectionMode": "dynamic", "trunkStaticUsername": "trunk", "trunkStaticPassword": "Passw0rd", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 3072 ], "id": "99ad2fa2-7736-4bbe-9d1f-176d5f5a9461", "name": "external" }, { "parameters": { "resource": "call", "operation": "call.answer", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3312, 3072 ], "id": "61c158a4-8585-47af-aeee-982e59c04704", "name": "incoming_answer" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=Enter%20the%20extension%20number%20if%20you%20know%20it", "interruptOn": [ "dtmf" ], "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 3072 ], "id": "8417397a-6591-462f-a6df-db49139e59fa", "name": "play_extension" }, { "parameters": { "resource": "call", "operation": "call.wait", "timeoutSeconds": 5, "waitDtmfFallbackEnabled": true, "waitDtmfMultiDigitFallbackEnabled": true, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2896, 3056 ], "id": "329420f2-847d-43a1-927a-75fc83688cf8", "name": "input_extension" }, { "parameters": { "operation": "dial.make", "callMode": "extension", "extensionNumbers": "={{ $json.digits }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2688, 2960 ], "id": "c66e0117-41f3-48f1-8b8f-4c799de48149", "name": "dial_extension" }, { "parameters": { "operation": "dial.wait", "legId": "={{ $('external').item.json.legId }}", "waitEventOutputs": [ "ringing", "progress" ] }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2480, 2672 ], "id": "88f377b1-155f-4773-a8cc-88f1e46acf9b", "name": "wait_extension" }, { "parameters": { "resource": "media", "operation": "media.playTone", "repeatInfinite": true, "options": { "legId": "={{ $('external').item.json.legId }}", "mediaExecutionMode": "background" } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2272, 2496 ], "id": "f060fb7f-132b-4022-9c79-a13032dedb3f", "name": "ringing_extension" }, { "parameters": { "resource": "call", "operation": "call.bridge", "legAId": "={{ $json.legId }}", "legBId": "={{ $('external').item.json.legId }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2272, 2656 ], "id": "6644377d-5e42-4844-bd76-3891ccfe7b16", "name": "bridge_extension" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=Extension%20number%20is%20unavailable", "options": { "legId": "={{ $('external').item.json.legId }}", "stopOtherMedia": true } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2272, 2976 ], "id": "a5ac1d23-f2b2-46f8-bdea-1d2780604837", "name": "play_ext_unv" }, { "parameters": { "operation": "dial.break", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2272, 2816 ], "id": "c0451f9b-60cc-4215-b754-fbfe8f0f3e3d", "name": "break_extension" }, { "parameters": { "triggerOn": "extensions", "ref": "internal", "staticCredentials": { "item": [ { "username": "user1", "password": "Passw0rd", "extension": "101" }, { "username": "user2", "password": "Passw0rd", "extension": "102" }, { "username": "user3", "password": "Passw0rd", "extension": "103" } ] }, "extensionsEnableCallRecording": true, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 3440 ], "id": "34c0d499-5535-4661-aff3-3e4fa9fd8dbb", "name": "internal" }, { "parameters": { "rules": { "values": [ { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "leftValue": "={{ $json.calledNumber }}", "rightValue": "9", "operator": { "type": "string", "operation": "startsWith" }, "id": "2ac76834-3cac-42e4-bc75-c22c53eaee9b" } ], "combinator": "and" }, "renameOutput": true, "outputKey": "External" } ] }, "options": { "fallbackOutput": "extra" } }, "type": "n8n-nodes-base.switch", "typeVersion": 3.4, "position": [ -3312, 3360 ], "id": "2f354859-8935-4c03-876e-180ec3375807", "name": "outgoing_type" }, { "parameters": { "operation": "dial.make", "callMode": "trunk", "ref": "external", "destination": "={{ $json.calledNumber.slice(1) }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 3280 ], "id": "085ed721-f908-4989-a931-00cc0c6260f4", "name": "dial_external" }, { "parameters": { "operation": "dial.make", "callMode": "extension", "extensionNumbers": "={{ $json.calledNumber }}", "options": { "extensionOnlyFreeEndpoints": false } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 3440 ], "id": "8b8b4f08-fea2-42f9-b24b-76368c304f8d", "name": "dial_internal" }, { "parameters": { "resource": "call", "operation": "call.bridge", "legAId": "={{ $json.legId }}", "legBId": "={{ $('internal').item.json.legId }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2896, 3360 ], "id": "f480574c-c5cb-4b4c-9925-71b058d865ef", "name": "bridge_outgoing" }, { "parameters": { "resource": "respond", "operation": "respond.toRecord", "recordFilePath": "=/home/node/.n8n-files/recordings/{{ $json.extension }}/{{ $now.toFormat('yyLLdd-HHmmss') }}-{{ $json.callerNumber }}-{{ $json.calledNumber }}.mp3", "recordFileFormat": "mp3", "recordSplitChannels": true, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3312, 3520 ], "id": "8e843de4-f9b0-41d7-963b-633f1fc22589", "name": "recording_internal" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=Press%201%20if%20you%20are%20a%20customer,%20or%202%20if%20you%20would%20like%20to%20become%20one", "interruptOn": [ "dtmf" ], "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2064, 3072 ], "id": "46124451-0120-42e5-9d1b-0f679cb66b11", "name": "play_queues" }, { "parameters": { "resource": "call", "operation": "call.wait", "timeoutSeconds": 5, "rules": { "item": [ { "pattern": "1", "label": "Support" }, { "pattern": "2", "label": "Sales" } ] }, "waitDtmfFallbackEnabled": true, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -1856, 3024 ], "id": "2c327637-7319-45ba-9fde-969c21f0d9be", "name": "input_queue" }, { "parameters": { "resource": "queue", "operation": "queue.putLeg", "ref": "support", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -1616, 2944 ], "id": "0f0cc63b-37fa-448c-b6a2-7099feead01c", "name": "put_support" }, { "parameters": { "resource": "queue", "operation": "queue.putLeg", "ref": "sales", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -1616, 3104 ], "id": "d2cee325-44b9-4070-98fd-f23677ad073e", "name": "put_sales" }, { "parameters": { "triggerOn": "queue", "ref": "support", "queueExtensions": "101,102" }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 3760 ], "id": "c269335c-e05e-4d03-8fbb-d2eead22ec34", "name": "queue_support" }, { "parameters": { "triggerOn": "queue", "ref": "sales", "queueExtensions": "102,103" }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 4592 ], "id": "9310ef3b-4564-4dde-99e0-5ce5de66df85", "name": "queue_sales" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://streams.radiomast.io/ref-32k-mp3-mono", "options": { "mediaExecutionMode": "background" } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3248, 3744 ], "id": "ebb84866-63a1-4014-b4a3-b7a68bbb4bc4", "name": "play_music" }, { "parameters": { "resource": "queue", "operation": "queue.getStats", "queueStatsTarget": "legId", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3040, 3744 ], "id": "03984f36-6b54-49df-9e6b-270d15cdccd3", "name": "queue_stat" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "=https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=Your%20place%20in%20the%20queue:%20{{ $json.position }}.", "options": { "duckingFactor": 10 } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2832, 3744 ], "id": "de487621-b562-4272-adc6-e22da5c9c843", "name": "play_stat" }, { "parameters": { "resource": "call", "operation": "call.wait", "options": { "interruptReasons": [ "call_queue_removed" ] }, "timeoutSeconds": 30 }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2624, 3712 ], "id": "5008cacc-ec76-44b7-84cd-f0f663d56dc3", "name": "wait_music_loop" }, { "parameters": {}, "type": "n8n-nodes-base.noOp", "typeVersion": 1, "position": [ -3248, 4192 ], "id": "99ad6d81-4bb8-4f94-9c58-0ca3da004a41", "name": "dispatch_entry" }, { "parameters": { "operation": "dial.wait", "dialTimeoutSeconds": 10 }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3040, 4144 ], "id": "1f7a52ef-255b-46a0-a60c-cb56784aec89", "name": "wait_agent" }, { "parameters": { "resource": "call", "operation": "call.bridge", "legAId": "={{ $json.legId }}", "legBId": "={{ $('dispatch_entry').item.json.legId }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2208, 4112 ], "id": "1b08b807-9e91-4ea9-b9f5-540c70a92503", "name": "bridge_agent" }, { "parameters": { "operation": "dial.break", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2832, 4288 ], "id": "ea9c03ec-b8ff-4c14-bc5d-a04ebb74004d", "name": "break_agent" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "18d52b6e-77bb-4253-b1da-d52f8c71933b", "leftValue": "={{ $json.legId }}", "rightValue": "", "operator": { "type": "string", "operation": "notEmpty", "singleValue": true } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ -3248, 4640 ], "id": "d61254ff-f89b-480c-a2f7-88bb3774bd4f", "name": "offline_is_live" }, { "parameters": { "operation": "dial.make", "callMode": "websocket", "transportProfile": "openai_realtime", "websocketStartMode": "deferred", "options": { "openaiRealtimeInstructions": "Only answer the questions about PBX and SIP.TG services. Politely reject any kind of other questions. Use kb_index tool to get table of content and kb_section tool to request specific documentation section. Call invoke_bye if no more questions." } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3040, 4624 ], "id": "03a563c7-56f4-4a1f-ba9b-696519e22a0f", "name": "dial_ai", "credentials": { "openAiApi": { "id": "w7T8vek6MXmTQWOv", "name": "SIPTG OpenAi" } } }, { "parameters": { "resource": "recording", "operation": "recording.start", "recordFilePath": "=/home/node/.n8n-files/recordings/ai/{{ $now.toFormat('yyLLdd-HHmmss') }}-{{ $('offline_is_live').item.json.callerNumber }}.mp3", "recordFileFormat": "mp3", "recordSplitChannels": true, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2832, 4624 ], "id": "2f8991a7-a0a8-40f5-b1d9-69810223a810", "name": "recording_ai" }, { "parameters": { "resource": "call", "operation": "call.bridge", "legAId": "={{ $('offline_is_live').item.json.legId }}", "legBId": "={{ $json.legId }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2624, 4624 ], "id": "f864a118-1cf8-4d68-b681-06fd4ff8ce33", "name": "bridge_ai" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=There%20are%20no%20representatives%20available%20online.%20Our%20AI%20assistant%20will%20help%20you%20resolve%20your%20issue.%20What%20is%20your%20question?", "interruptOn": [ "voice" ], "options": { "legId": "={{ $('offline_is_live').item.json.legId }}", "stopOtherMedia": true, "mediaExecutionMode": "background" } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2416, 4624 ], "id": "445bbf22-377f-4532-a156-f59a498b19e1", "name": "play_offline" }, { "parameters": { "resource": "ai", "operation": "ai.attachVoiceAgent", "options": { "legId": "={{ $('dial_ai').item.json.legId }}" } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2208, 4624 ], "id": "d4603de0-e6bf-41cb-9861-1a1dc7b6c398", "name": "Attach voice agent" }, { "parameters": { "sessionIdType": "customKey", "sessionKey": "={{ $('offline_is_live').item.json.trunkRef }}-{{ $('offline_is_live').item.json.callerNumber }}", "contextWindowLength": 20 }, "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow", "typeVersion": 1.4, "position": [ -2256, 4832 ], "id": "bf0e68fc-c658-43c1-912b-c838f523ffa2", "name": "memory_ai" }, { "parameters": { "resource": "ai", "operation": "ai.invokeAiTool", "ref": "pin", "aiToolDescription": "Checks PIN number", "aiToolParams": { "item": [ { "name": "pin", "type": "number", "description": "4-digits PIN number", "required": true } ] } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -1968, 4832 ], "id": "03bbbea8-1891-4d4b-9d1a-ac32538735a4", "name": "invoke_pin" }, { "parameters": { "resource": "ai", "operation": "ai.invokeAiTool", "ref": "bye", "aiToolDescription": "Hangup the call after customer say goodbye" }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -1872, 4832 ], "id": "ca8671fa-480e-44ad-931b-282e36a74509", "name": "invoke_bye" }, { "parameters": { "triggerOn": "aiTool", "ref": "pin", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 5024 ], "id": "12f29b02-dffd-46e6-96f6-fb166a696711", "name": "tool_pin" }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "id": "d586f2cd-0b98-4cf2-9f61-34fead709bb2", "leftValue": "={{ $json.toolParams.pin % 2 }}", "rightValue": 0, "operator": { "type": "number", "operation": "equals" } } ], "combinator": "and" }, "options": {} }, "type": "n8n-nodes-base.if", "typeVersion": 2.3, "position": [ -3312, 5024 ], "id": "41e597be-67ef-407a-a476-bc9ad45499ba", "name": "is_pin_correct" }, { "parameters": { "resource": "respond", "operation": "respond.toAiTool", "outputText": "Correct", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 4944 ], "id": "3279305d-9e0e-4803-958e-5c22f75543d6", "name": "response_correct" }, { "parameters": { "resource": "respond", "operation": "respond.toAiTool", "outputText": "Incorrect", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 5104 ], "id": "41b5de96-f810-4bbe-962a-f947fd9d24f9", "name": "response_incorrect" }, { "parameters": { "triggerOn": "aiTool", "ref": "bye", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 5328 ], "id": "655178eb-5adb-49df-86c7-effe67234d21", "name": "tool_bye" }, { "parameters": { "resource": "respond", "operation": "respond.toAiTool", "outputText": "ok", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3312, 5328 ], "id": "9df882cb-fc66-4cdd-938b-e44c22c2838a", "name": "response_bye" }, { "parameters": { "resource": "media", "operation": "media.playAudio", "sourceType": "http", "playbackHttpUrl": "https://translate.google.com/translate_tts?client=tw-ob&tl=en&q=Thank%20you%20and%20goodbye", "options": { "legId": "={{ $('tool_bye').item.json.peerLegId }}", "duckingFactor": 0 } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 5328 ], "id": "9ef4564f-aaf2-4184-bffc-61ed593c785f", "name": "play_goodbye" }, { "parameters": { "resource": "call", "operation": "call.hangup", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2896, 5344 ], "id": "9d241b8b-a693-48d2-9653-e596c699613a", "name": "hangup_customer" }, { "parameters": { "toolDescription": "SIP.TG documentation index", "url": "=https://www.sip.tg/llms.txt", "options": {} }, "type": "n8n-nodes-base.httpRequestTool", "typeVersion": 4.4, "position": [ -2160, 4832 ], "id": "7b5b1cea-06ae-4457-a296-66dd59a69fb1", "name": "kb_index" }, { "parameters": { "toolDescription": "Returns documentation of SIP.TG section", "url": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('URL', `URL to documentation content`, 'string') }}", "options": {} }, "type": "n8n-nodes-base.httpRequestTool", "typeVersion": 4.4, "position": [ -2064, 4832 ], "id": "d7baf3ca-fce5-482a-8969-ec3d46660aa4", "name": "kb_section" } ], "pinData": {}, "connections": { "external": { "main": [ [ { "node": "incoming_answer", "type": "main", "index": 0 } ] ] }, "dial_external": { "main": [ [ { "node": "bridge_outgoing", "type": "main", "index": 0 } ] ] }, "dial_internal": { "main": [ [ { "node": "bridge_outgoing", "type": "main", "index": 0 } ] ] }, "outgoing_type": { "main": [ [ { "node": "dial_external", "type": "main", "index": 0 } ], [ { "node": "dial_internal", "type": "main", "index": 0 } ] ] }, "incoming_answer": { "main": [ [ { "node": "play_extension", "type": "main", "index": 0 } ] ] }, "play_extension": { "main": [ [ { "node": "input_extension", "type": "main", "index": 0 } ], [ { "node": "input_extension", "type": "main", "index": 0 } ] ] }, "dial_extension": { "main": [ [ { "node": "wait_extension", "type": "main", "index": 0 } ], [ { "node": "play_ext_unv", "type": "main", "index": 0 } ] ] }, "internal": { "main": [ [ { "node": "outgoing_type", "type": "main", "index": 0 } ], [ { "node": "recording_internal", "type": "main", "index": 0 } ] ] }, "play_queues": { "main": [ [ { "node": "input_queue", "type": "main", "index": 0 } ], [ { "node": "input_queue", "type": "main", "index": 0 } ] ] }, "input_extension": { "main": [ [ { "node": "dial_extension", "type": "main", "index": 0 } ], [ { "node": "play_queues", "type": "main", "index": 0 }, { "node": "play_queues", "type": "main", "index": 0 } ], [] ] }, "input_queue": { "main": [ [ { "node": "put_support", "type": "main", "index": 0 } ], [ { "node": "put_sales", "type": "main", "index": 0 } ], [ { "node": "play_queues", "type": "main", "index": 0 } ], [ { "node": "put_sales", "type": "main", "index": 0 } ], [] ] }, "queue_support": { "main": [ [ { "node": "play_music", "type": "main", "index": 0 } ], [ { "node": "dispatch_entry", "type": "main", "index": 0 } ], [ { "node": "offline_is_live", "type": "main", "index": 0 } ] ] }, "queue_sales": { "main": [ [ { "node": "play_music", "type": "main", "index": 0 } ], [ { "node": "dispatch_entry", "type": "main", "index": 0 } ], [ { "node": "offline_is_live", "type": "main", "index": 0 } ] ] }, "wait_agent": { "main": [ [ { "node": "bridge_agent", "type": "main", "index": 0 } ], [], [ { "node": "break_agent", "type": "main", "index": 0 } ], [] ] }, "play_music": { "main": [ [ { "node": "queue_stat", "type": "main", "index": 0 } ] ] }, "queue_stat": { "main": [ [ { "node": "play_stat", "type": "main", "index": 0 } ] ] }, "play_stat": { "main": [ [ { "node": "wait_music_loop", "type": "main", "index": 0 } ], [ { "node": "wait_music_loop", "type": "main", "index": 0 } ] ] }, "play_offline": { "main": [ [ { "node": "Attach voice agent", "type": "main", "index": 0 } ] ] }, "dial_ai": { "main": [ [ { "node": "recording_ai", "type": "main", "index": 0 } ] ] }, "bridge_ai": { "main": [ [ { "node": "play_offline", "type": "main", "index": 0 } ] ] }, "memory_ai": { "ai_memory": [ [ { "node": "Attach voice agent", "type": "ai_memory", "index": 0 } ] ] }, "tool_pin": { "main": [ [ { "node": "is_pin_correct", "type": "main", "index": 0 } ] ] }, "is_pin_correct": { "main": [ [ { "node": "response_correct", "type": "main", "index": 0 } ], [ { "node": "response_incorrect", "type": "main", "index": 0 } ] ] }, "kb_index": { "ai_tool": [ [ { "node": "Attach voice agent", "type": "ai_tool", "index": 0 } ] ] }, "kb_section": { "ai_tool": [ [ { "node": "Attach voice agent", "type": "ai_tool", "index": 0 } ] ] }, "offline_is_live": { "main": [ [ { "node": "dial_ai", "type": "main", "index": 0 } ] ] }, "wait_extension": { "main": [ [ { "node": "ringing_extension", "type": "main", "index": 0 } ], [ { "node": "bridge_extension", "type": "main", "index": 0 } ], [ { "node": "bridge_extension", "type": "main", "index": 0 } ], [ { "node": "break_extension", "type": "main", "index": 0 } ], [ { "node": "play_ext_unv", "type": "main", "index": 0 }, { "node": "break_extension", "type": "main", "index": 0 } ], [ { "node": "play_ext_unv", "type": "main", "index": 0 } ] ] }, "invoke_pin": { "ai_tool": [ [ { "node": "Attach voice agent", "type": "ai_tool", "index": 0 } ] ] }, "invoke_bye": { "ai_tool": [ [ { "node": "Attach voice agent", "type": "ai_tool", "index": 0 } ] ] }, "tool_bye": { "main": [ [ { "node": "response_bye", "type": "main", "index": 0 } ] ] }, "response_bye": { "main": [ [ { "node": "play_goodbye", "type": "main", "index": 0 } ] ] }, "play_goodbye": { "main": [ [], [ { "node": "hangup_customer", "type": "main", "index": 0 } ] ] }, "ringing_extension": { "main": [ [ { "node": "wait_extension", "type": "main", "index": 0 } ] ] }, "recording_ai": { "main": [ [ { "node": "bridge_ai", "type": "main", "index": 0 } ] ] }, "play_ext_unv": { "main": [ [], [ { "node": "play_queues", "type": "main", "index": 0 }, { "node": "play_queues", "type": "main", "index": 0 } ] ] }, "dispatch_entry": { "main": [ [ { "node": "wait_agent", "type": "main", "index": 0 } ] ] }, "wait_music_loop": { "main": [ [], [ { "node": "queue_stat", "type": "main", "index": 0 } ], [] ] } }, "active": false, "settings": { "executionOrder": "v1", "binaryMode": "separate", "timeSavedMode": "fixed", "saveDataSuccessExecution": "all", "callerPolicy": "workflowsFromSameOwner", "availableInMCP": false }, "meta": { "templateCredsSetupCompleted": true }, "tags": [] }