Switch not properly working

Describe the problem/error/question

I have a switch that checks for specific strings the AI Agent can output. It outputs the strings as expected, I have a SET node that puts it as a string and then it goes to the Switch (code below), but it always goes to the fallback.

I do not have the option for “Less strict type validation” and I’m kind of lost why it’s not working.

What is the error message (if any)?

No error - but it goes to fallback every time.

Please share your workflow

(https://testdevocto.app.n8n.cloud/workflow/0biHZDRZmfzb49y5)

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
  "nodes": [
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.output }}",
                    "rightValue": "Entendi que você quer falar com alguém do nosso time",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    },
                    "id": "65220e70-d115-48fb-90fe-bbc46e002279"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "atendimento_humano"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "bffd892d-5da9-4e3a-bbe5-6107d86a118d",
                    "leftValue": "={{ $json.output }}",
                    "rightValue": "Para realizar o seu agendamento",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "agendamento"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "878b6af0-2feb-4f01-94be-102e063380c3",
                    "leftValue": "={{ $json.output }}",
                    "rightValue": "Ok, entendi que deseja reagendar sua consulta",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "reagendamento"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": false,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "04560499-fdeb-43b6-a74a-33f4735922e8",
                    "leftValue": "={{ $json.output }}",
                    "rightValue": "cancelamento",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "cancelamento"
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra",
          "ignoreCase": true
        }
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        4352,
        -272
      ],
      "id": "6f36bcfa-fa28-444c-80b2-06b3ca709286",
      "name": "Switch2"
    }
  ],
  "connections": {
    "Switch2": {
      "main": [
        [],
        [],
        [],
        [],
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4a895979ba8d7c87840a1e8ba6746823a040e25197ecb217d3790fa508dad9f8"
  }
}

## Share the output returned by the last node
It returns exactly the output: 
[
  {
    "output": "Para realizar seu agendamento, vou precisar de algumas informações."
  }
]

and yet, it's not caught by the first switch rule. 

## Information on your n8n setup
- **n8n version:** 1.102.3
- **Database (default: SQLite):** SQLite / Supabase
- **n8n EXECUTIONS_PROCESS setting (default: own, main):** main
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** n8n cloud
- **Operating system:** Windows 11

See here how I set the rule:


Para realizar o seu agendamento
is not equal to
Para realizar seu agendamento

the first phrase has “o” in the middle.