Created
August 3, 2025 08:57
-
-
Save architjn/fce9a09b1a28faf40e1d1cc7579d6250 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Multitrigger", | |
"nodes": [ | |
{ | |
"parameters": { | |
"updates": [ | |
"message" | |
], | |
"additionalFields": {} | |
}, | |
"id": "8f77baed-a77f-4e24-8e24-f1eb1213048c", | |
"name": "Telegram Trigger", | |
"type": "n8n-nodes-base.telegramTrigger", | |
"typeVersion": 1, | |
"position": [ | |
240, | |
-32 | |
], | |
"webhookId": "d86df351-80a5-4ddc-8087-da534ca1c461", | |
"credentials": { | |
"telegramApi": { | |
"id": "nl1aur0dBto9loNM", | |
"name": "Secret AI Bot" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"keepOnlySet": true, | |
"values": { | |
"string": [ | |
{ | |
"name": "message", | |
"value": "={{ $json.message.text }}" | |
}, | |
{ | |
"name": "sessionId", | |
"value": "={{ $json.message.chat.id }}" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"id": "18f7f65b-c441-45b9-b3d8-79776d4763cf", | |
"name": "SetMessageFromTelegram", | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 1, | |
"position": [ | |
464, | |
-32 | |
] | |
}, | |
{ | |
"parameters": { | |
"keepOnlySet": true, | |
"values": { | |
"string": [ | |
{ | |
"name": "message", | |
"value": "={{ $json.messages[0].text.body }}" | |
}, | |
{ | |
"name": "sessionId", | |
"value": "={{ $json.messages[0].from }}" | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"id": "ed0e8aa7-64f8-4594-ab77-d374cc9d0d72", | |
"name": "SetMessageFromWhatsApp", | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 1, | |
"position": [ | |
464, | |
160 | |
] | |
}, | |
{ | |
"parameters": { | |
"updates": [ | |
"messages" | |
], | |
"options": {} | |
}, | |
"type": "n8n-nodes-base.whatsAppTrigger", | |
"typeVersion": 1, | |
"position": [ | |
240, | |
160 | |
], | |
"id": "50b32af1-32b4-4fec-8626-81bea1741e79", | |
"name": "WhatsApp Trigger", | |
"webhookId": "2d791ee5-ef4b-49c0-9803-c68be6143988", | |
"credentials": { | |
"whatsAppTriggerApi": { | |
"id": "AbCW0GBA4uAuhiS5", | |
"name": "WhatsApp OAuth account" | |
} | |
} | |
}, | |
{ | |
"parameters": {}, | |
"type": "n8n-nodes-base.merge", | |
"typeVersion": 3.2, | |
"position": [ | |
688, | |
64 | |
], | |
"id": "07cd3e32-2e97-4f02-9004-1787c3c13d8b", | |
"name": "Merge" | |
}, | |
{ | |
"parameters": { | |
"content": "## Handle multiple chat triggers", | |
"height": 528, | |
"width": 928 | |
}, | |
"type": "n8n-nodes-base.stickyNote", | |
"position": [ | |
96, | |
-160 | |
], | |
"typeVersion": 1, | |
"id": "93585aac-f99a-4b6e-800b-1dca630a3f39", | |
"name": "Sticky Note" | |
} | |
], | |
"pinData": { | |
"Telegram Trigger": [ | |
{ | |
"json": { | |
"update_id": 718708072, | |
"message": { | |
"message_id": 489, | |
"from": { | |
"id": 6771012698, | |
"is_bot": false, | |
"first_name": "Archit", | |
"username": "architjn", | |
"language_code": "en" | |
}, | |
"chat": { | |
"id": 6771012698, | |
"first_name": "Archit", | |
"username": "architjn", | |
"type": "private" | |
}, | |
"date": 1754210556, | |
"text": "hello" | |
} | |
} | |
} | |
], | |
"WhatsApp Trigger": [ | |
{ | |
"json": { | |
"messaging_product": "whatsapp", | |
"metadata": { | |
"display_phone_number": "15556329493", | |
"phone_number_id": "712077311981725" | |
}, | |
"contacts": [ | |
{ | |
"profile": { | |
"name": "Archit" | |
}, | |
"wa_id": "917838864992" | |
} | |
], | |
"messages": [ | |
{ | |
"from": "917838864992", | |
"id": "wamid.HBgMOTE3ODM4ODY0OTkyFQIAEhgUM0E4NjI4ODkyMUQ5MEFCOEJCODgA", | |
"timestamp": "1750791635", | |
"text": { | |
"body": "hi" | |
}, | |
"type": "text" | |
} | |
], | |
"field": "messages" | |
} | |
} | |
] | |
}, | |
"connections": { | |
"Telegram Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "SetMessageFromTelegram", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"SetMessageFromTelegram": { | |
"main": [ | |
[ | |
{ | |
"node": "Merge", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"SetMessageFromWhatsApp": { | |
"main": [ | |
[ | |
{ | |
"node": "Merge", | |
"type": "main", | |
"index": 1 | |
} | |
] | |
] | |
}, | |
"WhatsApp Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "SetMessageFromWhatsApp", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": false, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "b5ff6884-61e7-4da0-bfe8-d5fe93a38513", | |
"meta": { | |
"templateCredsSetupCompleted": true, | |
"instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9" | |
}, | |
"id": "7nepYWlWA3wajwzZ", | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment