{
  "name": "Send Service level Agreement",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "1f814b7d-5cb6-4135-9012-f2dd5d4ac52f",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        -208
      ],
      "id": "02ec72a3-087d-403f-8362-9f9fa15988db",
      "name": "Webhook",
      "webhookId": "1f814b7d-5cb6-4135-9012-f2dd5d4ac52f"
    },
    {
      "parameters": {
        "resource": "contact",
        "operation": "get",
        "contactId": "={{ $json.body['contact ID'] }}"
      },
      "type": "n8n-nodes-base.zohoCrm",
      "typeVersion": 1,
      "position": [
        224,
        -208
      ],
      "id": "e2780e14-7e1a-41d2-b831-c0ffaf8ac1b2",
      "name": "Get a contact",
      "credentials": {
        "zohoOAuth2Api": {
          "id": "BLGtlXjsSA9NPhij",
          "name": "Zoho account 2"
        }
      }
    },
    {
      "parameters": {
        "resource": "deal",
        "operation": "get",
        "dealId": "={{ $('Webhook').item.json.body['Deal ID'] }}"
      },
      "type": "n8n-nodes-base.zohoCrm",
      "typeVersion": 1,
      "position": [
        448,
        -208
      ],
      "id": "8800ab1e-237f-4a94-b562-0ed82e90a308",
      "name": "Get a deal",
      "credentials": {
        "zohoOAuth2Api": {
          "id": "BLGtlXjsSA9NPhij",
          "name": "Zoho account 2"
        }
      }
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.Service_level_agreement_Link }}",
          "mode": "url"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        672,
        -208
      ],
      "id": "16eb5854-4536-4b49-9133-9a0c0da3f04d",
      "name": "Download file",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "kYmaXHVqiUwOGRCy",
          "name": "Google Drive account 2"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $('Get a contact').item.json.Email }}",
        "subject": "=Service Agreement For {{ $('Get a contact').item.json.Account_Name.name }}",
        "message": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Service Agreement Email Template</title>\n    <!-- Load Tailwind CSS -->\n    <script src=\"https://cdn.tailwindcss.com\"></script>\n    <style>\n        /* Apply a subtle background color and set the default font */\n        body {\n            font-family: 'Inter', sans-serif;\n            background-color: #f7f9fb;\n        }\n    </style>\n</head>\n<body class=\"p-4 sm:p-8\">\n\n    <!-- Email Container Card -->\n    <div class=\"max-w-2xl mx-auto bg-white shadow-xl rounded-xl p-6 sm:p-10 border border-gray-100\">\n\n        <!-- Header/Greeting -->\n        <p class=\"text-xl font-semibold text-gray-800 mb-6\">\n            Hey {{ $('Get a contact').item.json.Full_Name }},\n        </p>\n        <p class=\"text-gray-600 mb-8\">\n            Hope you are doing well.\n        </p>\n\n        <!-- Main Body Content (Updated for Service Agreement) -->\n        <div class=\"space-y-6 text-lg text-gray-700 leading-relaxed\">\n            <p>\n                I'm attaching the service agreement. Please go through it and let me know if you have any questions or concerns.\n            </p>\n            <p>\n                If everything looks good, please sign and send it back to me.\n            </p>\n            <p>\n                Looking forward to it.\n            </p>\n        </div>\n\n        <!-- Signature Block -->\n        <div class=\"mt-12 pt-6 border-t border-gray-200\">\n            <p class=\"text-gray-700 font-semibold mb-3\">Regards,</p>\n\n            <div class=\"space-y-0.5 text-sm\">\n                <p class=\"font-bold text-gray-800\">Nihal Nazer</p>\n                <p class=\"text-gray-600\">Business Development Executive</p>\n                <p class=\"text-indigo-600 font-medium\">Dare Network</p>\n                <a href=\"https://www.thedarenetwork.com\" class=\"text-indigo-500 hover:text-indigo-700 hover:underline transition duration-150 block mt-1\" target=\"_blank\">\n                    www.thedarenetwork.com\n                </a>\n            </div>\n        </div>\n\n    </div>\n</body>\n</html>",
        "options": {
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          }
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        928,
        -208
      ],
      "id": "c1f72f51-f665-4e0c-8078-1c88f7d9e68d",
      "name": "Send a message",
      "webhookId": "baa4e0b5-9135-4e5c-92be-99dd2f9d9d5c",
      "notesInFlow": false,
      "credentials": {
        "gmailOAuth2": {
          "id": "ctNdBjsZlsNO0VaH",
          "name": "Gmail account 2"
        }
      }
    },
    {
      "parameters": {
        "resource": "deal",
        "operation": "get",
        "dealId": "={{ $('Webhook').item.json.body['Deal ID'] }}"
      },
      "type": "n8n-nodes-base.zohoCrm",
      "typeVersion": 1,
      "position": [
        1344,
        -208
      ],
      "id": "d382b875-55ed-40e4-9d50-5831ec51e9aa",
      "name": "Get a deal1",
      "credentials": {
        "zohoOAuth2Api": {
          "id": "BLGtlXjsSA9NPhij",
          "name": "Zoho account 2"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "8e4ccb82-17d2-4cfb-b981-e4ef619e5690",
              "leftValue": "={{ $json.Stage }}",
              "rightValue": "Proposal Agreed",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1568,
        -208
      ],
      "id": "0d670c3e-39a5-4a49-adb2-c38120c34690",
      "name": "If"
    },
    {
      "parameters": {
        "operation": "reply",
        "messageId": "={{ $('Send a message').item.json.id }}",
        "message": "=<!DOCTYPE html>\n<html>\n  <body style=\"font-family: Arial, sans-serif; color: #333; line-height: 1.6; font-size: 15px;\">\n    <p>Hey {{ $('Get a contact').item.json.Full_Name }},</p>\n    \n    <p>Hope you’re doing great!</p>\n    \n    <p>\n      Just checking in to see if you got a chance to go through the service agreement. \n      If everything looks good, please sign and send it back. If you’ve decided not to move forward, \n      no worries at all—just let me know so we can close things from our end.\n    </p>\n    \n    <p>Looking forward to hearing from you!</p>\n    \n    <p style=\"margin-top: 20px;\">\n      Best,<br>\n      <strong>Nihal Nazer</strong><br>\n      Dare Network\n    </p>\n  </body>\n</html>",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1792,
        -208
      ],
      "id": "8ade729f-48de-49c5-ad57-76cf880ac3cb",
      "name": "Reply to a message",
      "webhookId": "aec15adf-2cc5-4502-800c-8d84171d7535",
      "credentials": {
        "gmailOAuth2": {
          "id": "ctNdBjsZlsNO0VaH",
          "name": "Gmail account 2"
        }
      }
    },
    {
      "parameters": {
        "resource": "deal",
        "operation": "get",
        "dealId": "={{ $('Webhook').item.json.body['Deal ID'] }}"
      },
      "type": "n8n-nodes-base.zohoCrm",
      "typeVersion": 1,
      "position": [
        2240,
        -208
      ],
      "id": "2c76732b-7916-4d20-8786-0cd2fbdb2332",
      "name": "Get a deal2",
      "credentials": {
        "zohoOAuth2Api": {
          "id": "BLGtlXjsSA9NPhij",
          "name": "Zoho account 2"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "f4b48897-ecf0-4d6a-a044-e99f4ba881ea",
              "leftValue": "={{ $json.Stage }}",
              "rightValue": "Proposal Agreed",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2464,
        -208
      ],
      "id": "9f7f9b86-3a90-40b6-8658-d7019c5ee52c",
      "name": "If1"
    },
    {
      "parameters": {
        "sendTo": "={{ $('Get a contact').item.json.Email }}",
        "subject": "=Follow-up on Our Discussion",
        "message": "=<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Proposal Email Template - Final Check-In</title>\n    <!-- Load Tailwind CSS -->\n    <script src=\"https://cdn.tailwindcss.com\"></script>\n    <style>\n        /* Apply a subtle background color and set the default font */\n        body {\n            font-family: 'Inter', sans-serif;\n            background-color: #f7f9fb;\n        }\n    </style>\n</head>\n<body class=\"p-4 sm:p-8\">\n\n    <!-- Email Container Card -->\n    <div class=\"max-w-2xl mx-auto bg-white shadow-xl rounded-xl p-6 sm:p-10 border border-gray-100\">\n\n        <!-- Header/Greeting -->\n        <p class=\"text-xl font-semibold text-gray-800 mb-6\">\n            Hey ,\n        </p>\n        <p class=\"text-gray-600 mb-8\">\n            Hope you’re doing well!\n        </p>\n\n        <!-- Main Body Content (Updated for Final Call/Closing) -->\n        <div class=\"space-y-6 text-lg text-gray-700 leading-relaxed\">\n            <p>\n                I’ve been trying to reach out over the past week but couldn’t get through. Just wanted to let you know that I’ll be closing the deal from my end today.\n            </p>\n            <p>\n                If you’d like to hold off or need a bit more time to decide, no problem at all—just let me know and I’ll keep it on hold for you. Otherwise, please confirm if you’ve decided not to move forward.\n            </p>\n            <p>\n                Looking forward to hearing from you soon.\n            </p>\n        </div>\n\n        <!-- Signature Block (Simplified) -->\n        <div class=\"mt-12 pt-6 border-t border-gray-200\">\n            <p class=\"text-gray-700 font-semibold mb-3\">Best,</p>\n\n            <div class=\"space-y-0.5 text-sm\">\n                <p class=\"font-bold text-gray-800\">Nihal Nazer</p>\n                <p class=\"text-indigo-600 font-medium\">Dare Network</p>\n                <!-- Retaining the website link as it's standard for a professional signature, though not explicitly in the last prompt -->\n                <a href=\"https://www.thedarenetwork.com\" class=\"text-indigo-500 hover:text-indigo-700 hover:underline transition duration-150 block mt-1\" target=\"_blank\">\n                    www.thedarenetwork.com\n                </a>\n            </div>\n        </div>\n\n    </div>\n</body>\n</html>",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        2688,
        -208
      ],
      "id": "c222b2bf-e73a-4bc4-a3e4-a93cc404ed8a",
      "name": "Send a message1",
      "webhookId": "4cf508ec-abca-40c3-842b-e937dcc805de",
      "credentials": {
        "gmailOAuth2": {
          "id": "ctNdBjsZlsNO0VaH",
          "name": "Gmail account 2"
        }
      }
    },
    {
      "parameters": {
        "amount": 2,
        "unit": "days"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1120,
        -208
      ],
      "id": "70338527-1aec-4837-9e34-381f0faf1f6f",
      "name": "2 days Follow Up ",
      "webhookId": "954539ea-cbdb-46c6-9ab0-05cd9c201c3b"
    },
    {
      "parameters": {
        "unit": "days"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        2016,
        -208
      ],
      "id": "65f719df-178e-4dfa-8676-a0eda3ab3b2c",
      "name": "1 week follow up",
      "webhookId": "0fd7951d-44ab-4570-9c9c-4e5fef3e611c"
    }
  ],
  "pinData": {},
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get a contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a contact": {
      "main": [
        [
          {
            "node": "Get a deal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a deal": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "2 days Follow Up ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a deal1": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Reply to a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reply to a message": {
      "main": [
        [
          {
            "node": "1 week follow up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a deal2": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2 days Follow Up ": {
      "main": [
        [
          {
            "node": "Get a deal1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1 week follow up": {
      "main": [
        [
          {
            "node": "Get a deal2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate"
  },
  "versionId": "f87454c9-2880-4b2a-8f4a-686e13823412",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "ec71a95432ae1169816e368ff566c55fc9a5562016ed19405e0147feef576edc"
  },
  "id": "RqQCknc2YQRkM0Gi",
  "tags": []
}