{
  "name": "Gmail auto-reply + smart routing",
  "nodes": [
    {
      "parameters": {
        "content": "## Gmail auto-reply + routing\n\n**What it does:** acknowledges inbound mail and labels/routes it by topic.\n\n**Setup**\n1. Open *New email* \u2192 connect your **Gmail** account.\n2. Adjust the keyword routing in *Route by topic*.\n3. Edit the auto-reply text.\n4. Click **Active**.",
        "width": 360,
        "height": 300
      },
      "id": "sticky-setup",
      "name": "Setup guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -520,
        -140
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "filters": {}
      },
      "id": "trg",
      "name": "New email",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.2,
      "position": [
        -220,
        0
      ]
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "conditions": [
                  {
                    "leftValue": "={{ $json.snippet }}",
                    "rightValue": "invoice",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ]
              },
              "outputKey": "Billing"
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra"
        }
      },
      "id": "sw",
      "name": "Route by topic",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        40,
        0
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "reply",
        "message": "Thanks for contacting your business \u2014 we've received your message and will reply within one business day."
      },
      "id": "reply",
      "name": "Send acknowledgement",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        320,
        0
      ]
    }
  ],
  "connections": {
    "New email": {
      "main": [
        [
          {
            "node": "Route by topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by topic": {
      "main": [
        [
          {
            "node": "Send acknowledgement",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send acknowledgement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [],
  "id": "XrjHdwCVsG78hQ5n"
}