{
  "name": "Patient Feedback Collection",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        560,
        260
      ],
      "id": "a8aeecef-5f4a-4ba3-81c7-ef01ea444716",
      "name": "No Operation, do nothing"
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "1LzQc8mJjb2EDImZS-6bxRRa0nHj4YDuH6tnhZYf4c1w",
          "mode": "list",
          "cachedResultName": "Patients List",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1LzQc8mJjb2EDImZS-6bxRRa0nHj4YDuH6tnhZYf4c1w/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1LzQc8mJjb2EDImZS-6bxRRa0nHj4YDuH6tnhZYf4c1w/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        180,
        140
      ],
      "id": "06902130-db4a-427b-a681-e96ba9ca844f",
      "name": "Google Sheets Trigger",
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "eabsuHEHYGUrXq0K",
          "name": "Suresh.Google Sheets Trigger account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "459ce023-8610-46b1-8e3b-7b58fd47434b",
              "leftValue": "={{ $json.Status }}",
              "rightValue": "=true",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        360,
        140
      ],
      "id": "28821974-107f-40c9-a9ed-50ed9fab4604",
      "name": "If Status True"
    },
    {
      "parameters": {
        "resource": "message",
        "subject": "Give a Visiting you  feedback!",
        "message": "=Hi {{ $json.Name }},\n\nThank you for Visit Infy Hospital so can you share your visiting feedback click on this link.\n\nfeedback link :https://docs.google.com/forms/d/e/1FAIpQLSelTrLLYD_Dap6Be19m_Mcyyg-5ktSCjQfR872NwU2eCc1QQA/viewform?usp=header\n\nBest regards,  \nInfy Hospital \nCustomer Support Team\n",
        "toList": [
          "={{ $json.Email }}"
        ],
        "additionalFields": {}
      },
      "id": "fcb9c6d7-e9bf-47b5-bcaf-5707cd0dbde3",
      "name": "Send Feedback Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 1,
      "position": [
        560,
        80
      ],
      "credentials": {
        "gmailOAuth2": {
          "id": "stjUuumoBlfUIL1N",
          "name": "Suresh.Gmail account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "If Status True",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Status True": {
      "main": [
        [
          {
            "node": "Send Feedback Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "70076f38-b722-4511-91a4-bb2a7432fe3d",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "fcb622cbd5234c565b9b78babeaf0ea2455df9d2aad0d1adff7c1ef99583e685"
  },
  "id": "PQAdDJkXCDEjDkET"
}