{
  "name": "Patient Visit Feedback Email",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        560,
        260
      ],
      "id": "4bc66421-44b3-4f09-a184-d946d045d11e",
      "name": "No Operation, do nothing"
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "1LzQc8mJjb2EDImZS-6bxRRa0nHj4YDuH6tnhZYf4c1w",
          "mode": "list",
          "cachedResultName": "Patients List"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        180,
        140
      ],
      "id": "51ce9edf-27df-4749-a899-f7ca9b65fe46",
      "name": "Google Sheets Trigger",
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "n9Gd4hxRGTalH4em",
          "name": "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": "4a134855-c453-4d56-ae66-754fe40467c9",
      "name": "If Status True"
    },
    {
      "parameters": {
        "resource": "message",
        "subject": "Give a Visiting you  feedback!",
        "message": "=Hi {{ $json.Name }},\n\nThank you for Visit Forgent Hospital so can you share your visiting feedback click on this link.\n\nfeedback link :https://forms.gle/YOUR-FORM-ID\n\nBest regards,  \nForgent Hospital \nCustomer Support Team\n",
        "toList": [
          "={{ $json.Email }}"
        ],
        "additionalFields": {}
      },
      "id": "b7974773-b025-4238-b2d0-8bea533c5aa0",
      "name": "Send Feedback Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 1,
      "position": [
        560,
        80
      ],
      "credentials": {
        "gmailOAuth2": {
          "id": "uDat96OaUczrGBW5",
          "name": "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": "36045f10-9d0c-4088-b807-bf6c6fa00c70",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "f1c26778ec36097a9722a22c47c5e9c01f00b8862dadd0121ec118026a370fa6"
  },
  "id": "OF6o4kz6MlR7O9zw"
}