{
  "name": "My workflow",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "c5183920-340c-4e2d-8aee-5f782969db87",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -416,
        -48
      ],
      "id": "fe23ee01-ff01-47cf-adb4-ffb2d36b5693",
      "name": "Webhook",
      "webhookId": "c5183920-340c-4e2d-8aee-5f782969db87"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.body.data.speaker_type }}",
                    "rightValue": "=AVATA",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "c645414d-6df0-4047-8d4b-0e18ecd9fc6d"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Avatar Message"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "e3b9cc8d-3caa-4952-acce-2abf0e10b424",
                    "leftValue": "={{ $json.body.data.speaker_type }}",
                    "rightValue": "OBJECT",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Object Message"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.2,
      "position": [
        -144,
        -48
      ],
      "id": "a03633b4-45af-4c66-b17b-38d335c8f8dc",
      "name": "Switch"
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "otherOptions": {}
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        64,
        -192
      ],
      "id": "c16d32b6-8f56-4c18-bbaf-46b7f391e2c9",
      "name": "Send a message",
      "webhookId": "0b8c1279-0883-437f-8b5a-917780748378",
      "credentials": {
        "slackOAuth2Api": {
          "id": "LCcnEbqHG1Gwu2J4",
          "name": "Slack account"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        64,
        64
      ],
      "id": "8615b95b-8d01-461a-87ed-e3dab61b89da",
      "name": "Append row in sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "xM2x1yoDdF6JGm6V",
          "name": "Google Sheets account"
        }
      }
    }
  ],
  "pinData": {
    "Webhook": [
      {
        "json": {
          "headers": {
            "host": "renderworks.app.n8n.cloud",
            "user-agent": "axios/1.7.9",
            "content-length": "365",
            "accept": "application/json, text/plain, */*",
            "accept-encoding": "gzip, br",
            "baggage": "sentry-environment=server,sentry-release=2025.2.226,sentry-public_key=e9eb620da3b6b25a134616124cf1cac7,sentry-trace_id=13f98d48817449259a31ccfce8168fea",
            "cdn-loop": "cloudflare; loops=1; subreqs=1",
            "cf-connecting-ip": "89.163.148.202",
            "cf-ew-via": "15",
            "cf-ipcountry": "DE",
            "cf-ray": "96f72306e6a7e67c-DUS",
            "cf-visitor": "{\"scheme\":\"https\"}",
            "cf-worker": "n8n.cloud",
            "content-type": "application/json",
            "sentry-trace": "13f98d48817449259a31ccfce8168fea-8f7894f5794192bf",
            "x-forwarded-for": "89.163.148.202, 172.70.220.30",
            "x-forwarded-host": "renderworks.app.n8n.cloud",
            "x-forwarded-port": "443",
            "x-forwarded-proto": "https",
            "x-forwarded-server": "traefik-prod-users-gwc-88-6587794787-cqdsw",
            "x-is-trusted": "yes",
            "x-real-ip": "89.163.148.202"
          },
          "params": {},
          "query": {},
          "body": {
            "event": "instant_message",
            "timestamp": "2025-08-15T07:56:41.403Z",
            "data": {
              "name": "instant_message",
              "bot_slname": "OneSmartBot Resident",
              "speaker_uuid": "4d9ce772-d3ee-4cce-9555-bfb06ffcb228",
              "message": "hi",
              "speaker_type": "AVATAR",
              "bot_uuid": "bd67863e-b273-4c3b-8ae5-dd8f61229280",
              "version": "128.00.00",
              "speaker_name": "GTASkinCentral Resident",
              "system": "SB_PERSONAL"
            }
          },
          "webhookUrl": "https://renderworks.app.n8n.cloud/webhook-test/c5183920-340c-4e2d-8aee-5f782969db87",
          "executionMode": "test"
        }
      }
    ]
  },
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5d5ee109-f09f-4ea2-86bc-f67d15f96022",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "0c560ce9773183ff170271d227d3ba7c6510a7ddb4f3b2d14d5052ee54b89c17"
  },
  "id": "NBwaj6SZsgxXXrfO",
  "tags": []
}