{
  "name": "Complaint Assigned Notify",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "complaint-assigned"
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        200,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://fcm.googleapis.com/fcm/send",
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={\"to\": $json.fcmToken, \"notification\": {\"title\": \"New assignment\", \"body\": $json.complaintId}}"
      },
      "name": "FCM",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "FCM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}