Please help me with the Switch node. I need messages from the Telegram Trigger to be passed into the Switch node and then routed into two branches: the first for the /start command, and the second for the word “hello.” I’m unable to configure

{
“name”: “My workflow”,
“nodes”: [
{
“parameters”: {
“chatId”: “={{ $(‘Telegram Trigger’).item.json.message.chat.id }}”,
“text”: “={{ $json.output }}”,
“additionalFields”: {
“appendAttribution”: false
}
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
1184,
16
],
“id”: “903bae5b-34f2-4b1e-8bd0-c4f664da1e3f”,
“name”: “Send a text message”,
“webhookId”: “928e4a9d-b31f-4dfd-b70b-b9ec9d424154”,
“credentials”: {
“telegramApi”: {
“id”: “JHAv255nZJRFc3CR”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $json.message.text }}”,
“options”: {
“systemMessage”: “”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 3.1,
“position”: [
784,
16
],
“id”: “66a317ea-0d52-4b0e-890e-3255fa45e1ec”,
“name”: “AI Agent”
},
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenRouter”,
“typeVersion”: 1,
“position”: [
784,
192
],
“id”: “9ffdbe43-1a40-4873-9686-5ff87c7ca67a”,
“name”: “OpenRouter Chat Model”,
“credentials”: {
“openRouterApi”: {
“id”: “poWJ7qPbjGwNjapN”,
“name”: “OpenRouter account”
}
}
},
{
“parameters”: {
“chatId”: “={{ $(‘Telegram Trigger’).item.json.message.chat.id }}”,
“text”: “приветолторт”,
“additionalFields”: {
“appendAttribution”: false
}
},
“type”: “n8n-nodes-base.telegram”,
“typeVersion”: 1.2,
“position”: [
608,
176
],
“id”: “26110e85-291e-497f-af60-31363a12b2d3”,
“name”: “Send a text message1”,
“webhookId”: “928e4a9d-b31f-4dfd-b70b-b9ec9d424154”,
“credentials”: {
“telegramApi”: {
“id”: “JHAv255nZJRFc3CR”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“updates”: [
“message”
],
“additionalFields”: {}
},
“type”: “n8n-nodes-base.telegramTrigger”,
“typeVersion”: 1.2,
“position”: [
240,
16
],
“id”: “b9327849-8c2d-4550-acb5-e6d664fc4c7b”,
“name”: “Telegram Trigger”,
“webhookId”: “b1cffa52-36dc-4d9c-851b-35b877d85c69”,
“credentials”: {
“telegramApi”: {
“id”: “JHAv255nZJRFc3CR”,
“name”: “Telegram account”
}
}
},
{
“parameters”: {
“rules”: {
“values”: [
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 3
},
“conditions”: [
{
“leftValue”: “={{ $json.message.text }}”,
“rightValue”: “/start”,
“operator”: {
“type”: “string”,
“operation”: “startsWith”
},
“id”: “5d9ba9aa-0b8f-46ac-8fc6-5a3ab3fc4b82”
}
],
“combinator”: “and”
},
“renameOutput”: true,
“outputKey”: ““команда /start””
},
{
“conditions”: {
“options”: {
“caseSensitive”: true,
“leftValue”: “”,
“typeValidation”: “strict”,
“version”: 3
},
“conditions”: [
{
“id”: “08645a5c-d36a-4977-890c-acd97a3eee6d”,
“leftValue”: “={{ $json.message.text }}”,
“rightValue”: "=Привет ",
“operator”: {
“type”: “string”,
“operation”: “contains”
}
}
],
“combinator”: “and”
},
“renameOutput”: true,
“outputKey”: ““Приветствие””
}
]
},
“options”: {
“fallbackOutput”: “extra”
}
},
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 3.4,
“position”: [
448,
16
],
“id”: “86392aeb-1f78-4d49-a3a6-744532888dd0”,
“name”: “Switch”
}
],
“pinData”: {},
“connections”: {
“AI Agent”: {
“main”: [
[
{
“node”: “Send a text message”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenRouter Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Send a text message”: {
“main”: [

]
},
“Telegram Trigger”: {
“main”: [
[
{
“node”: “Switch”,
“type”: “main”,
“index”: 0
}
]
]
},
“Switch”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
],

]
}
},
“active”: false,
“settings”: {
“executionOrder”: “v1”,
“binaryMode”: “separate”
},
“versionId”: “45a1895d-ac15-476a-81d6-b4582c592a01”,
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “76e2a649a3e10a430ccdcf543563682470c4208992b01fe0f8482c2c7f17e85c”
},
“id”: “sA3lt2DcBRPidlcM”,
“tags”:
}

welcome to the n8n community @Aleksandr2406
I’d also check the second condition value: it appears to be =Привет with an extra = and trailing space. I’d change it to just Привет or hello, optionally make it case-insensitive, and then connect the Switch’s second output to the greeting node.

@Aleksandr2406 both replies above nailed it but here’s the actual wired-up switch so you can just import it and see it work

plug your Telegram creds into all three telegram nodes and you’re good, the key fix is rightValue is just Привет with no = prefix or trailing space, and both switch outputs are actually wired up now