{
  "name": "Increase Cold Lead Delivery by Provider and Google vs. Microsoft 365 via DomainSignal",
  "nodes": [
    {
      "parameters": {
        "url": "=https://api.domainsignal.io/v1/probe?domain={{ $json.domain }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_DOMAINSIGNAL_KEY_HERE"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.5,
      "position": [
        176,
        0
      ],
      "id": "48a0f207-0bce-4bcf-ad06-e1f7b5376723",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.mailbox_infrastructure.primary_provider }}",
                    "rightValue": "Google Workspace",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    },
                    "id": "9b5df658-65a5-417f-99fe-c57d74631909"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Google Leads"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "2e3be402-9b81-4e67-8fb2-d3688e93383a",
                    "leftValue": "={{ $json.mailbox_infrastructure.primary_provider }}",
                    "rightValue": "Microsoft 365",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Microsoft Leads"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "048cac37-eabc-4c58-b4c1-8655544998e6",
                    "leftValue": "={{ $json.security_posture.dmarc_present }}",
                    "rightValue": "false",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "[Quarantine / Do Not Send]"
            }
          ]
        },
        "options": {
          "fallbackOutput": 2
        }
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        480,
        -16
      ],
      "id": "7f27ba92-2f6e-4b31-83f8-47397bf3af0b",
      "name": "Switch"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "18a79c7a-4098-4073-af5b-9e3e6df67e5e",
              "name": "tailored_email_hook",
              "value": "Saw that your team runs on Google Workspace — built this to integrate natively with your current workflow...",
              "type": "string"
            },
            {
              "id": "9e401e3d-9b98-4a90-8a8f-b279eaeecd35",
              "name": "company_tier",
              "value": "=    {{ $json.firmographic_inferences.estimated_company_tier }}",
              "type": "string"
            },
            {
              "id": "97689abb-d7f7-4a54-954c-24bf2de8952f",
              "name": "email_format",
              "value": "={{ $json.outbound_guidance.link_safety.includes('High Risk') ? 'Plain Text (Strip Links)' : 'HTML / Tracked Links OK' }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "include": "selected",
        "includeFields": "={{ $json.domain }}",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        720,
        -208
      ],
      "id": "9baca8ad-edd0-4af0-a56f-3698ffdcbda5",
      "name": "[Inject Google Pitch Hook]"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "40688382-e281-44c4-bb4c-d7c641fdee31",
              "name": "tailored_email_hook",
              "value": "Given your team's Microsoft 365 environment, we prioritized enterprise-grade compliance and native Entra ID compatibility...\"",
              "type": "string"
            },
            {
              "id": "e71a5886-1b9f-471f-ba6d-ccc71519f9d8",
              "name": "company_tier",
              "value": "={{ $json.firmographic_inferences.estimated_company_tier }}",
              "type": "string"
            },
            {
              "id": "69d0da42-4b54-46bf-8028-73042c6177bf",
              "name": "email_format",
              "value": "={{ $json.outbound_guidance.link_safety.includes('High Risk') ? 'Plain Text (Strip Links)' : 'HTML / Tracked Links OK' }}",
              "type": "string"
            },
            {
              "id": "93b84d71-e3b0-4850-9428-e50d2a9dd3b0",
              "name": "sso_vendor",
              "value": "={{ $json.sso_vendor || $json.tenant_profile?.sso_vendor || ($json.mailbox_infrastructure?.primary_provider?.includes('Google') ? 'Google Workspace SSO' : 'Native Entra ID') }}",
              "type": "string"
            },
            {
              "id": "cb21dac8-4371-4530-95ba-692381091323",
              "name": "is_federated",
              "value": "={{ $json.firmographic_inferences?.signals?.some(s => s.includes('Corporate Identity Federation')) ?? false }}",
              "type": "string"
            },
            {
              "id": "02007a5d-7380-4e8a-96b3-93dc148e18ba",
              "name": "parent_tenant_id",
              "value": "={{ $json.corporate_umbrella?.parent_tenant_guid || 'N/A' }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "include": "selected",
        "includeFields": "={{ $json.domain }}",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        848,
        0
      ],
      "id": "6c507298-b921-42c2-992a-2f8f24825acf",
      "name": "[Inject M365 Enterprise Hook]"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "273cdc02-a506-4049-a024-37bf443fbf76",
              "name": "status",
              "value": "QUARANTINE",
              "type": "string"
            },
            {
              "id": "700accc3-c324-4e1a-a3de-783a7cce51bf",
              "name": "reason",
              "value": "Broken DMARC or dead mail server — do not cold email",
              "type": "string"
            },
            {
              "id": "93c9c446-a44e-4fbe-9bb8-2465367cde75",
              "name": "REVIEW",
              "value": "No Google Workspace or Microsoft 365 tenant identified (Custom/Self-Hosted or Inactive)",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        1008,
        272
      ],
      "id": "68ce0180-ad3e-4061-aaab-f413284f12b0",
      "name": "Quarantine / Review"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.instantly.ai/api/v1/lead/add",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "email",
              "value": "={{ $('Start').item.json.domain }}"
            },
            {
              "name": "campaign_id",
              "value": "YOUR_GOOGLE_CAMPAIGN_ID"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.5,
      "position": [
        960,
        -272
      ],
      "id": "5f746575-7441-485a-aeb6-ffb750b28d1c",
      "name": "[Push to Instantly - Google Campaign]",
      "disabled": true
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.instantly.ai/api/v1/lead/add",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "email",
              "value": "={{ $('Start').item.json.domain }}"
            },
            {
              "name": "campaign_id",
              "value": "YOUR_OUTLOOK_CAMPAIGN_ID"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.5,
      "position": [
        1152,
        0
      ],
      "id": "d0c38c13-bb10-4b6c-af0b-cf31eedd9d9c",
      "name": "[Push to Instantly - Outlook Campaign]",
      "disabled": true
    },
    {
      "parameters": {},
      "id": "2677d219-5076-4dc8-88bf-cbedc00b8058",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -112,
        0
      ]
    },
    {
      "parameters": {
        "content": "## 1. LEAD INGESTION \nFeed target domains via CSV, Google Sheets, or Webhook. 5 sample enterprise domains pre-loaded to test.",
        "height": 192,
        "color": "#E39C4A"
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -160,
        -208
      ],
      "id": "7c036941-ea35-4ea4-9fc2-300d0028b7b2",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## 2. EDGE IDENTITY PROBE (<25ms)\nQueries Microsoft Entra ID and Google cloud discovery endpoints via DomainSignal. Resolves mailbox infrastructure, Proofpoint firewalls, and SSO status, etc.",
        "height": 256,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        96,
        144
      ],
      "id": "621a7193-b60e-4f6d-994f-558358150cee",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## 3. DELIVERABILITY & GATEWAY ROUTING\nRoutes Google-to-Google and Outlook-to-M365. Quarantines domains with missing DMARC to protect sending reputation.",
        "height": 208,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        336,
        -240
      ],
      "id": "fb7ca132-107a-4571-b4b5-d67a75f24a46",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "## 4. PROOFPOINT STRIPPING & OUTBOUND DISPATCH\nTags company tier, flags Proofpoint sandbox risks (recommending Plain Text), and formats variables for Instantly / Smartlead.",
        "height": 224,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        656,
        208
      ],
      "id": "5997a786-2524-41c0-a166-5be1bda2db0f",
      "name": "Sticky Note3"
    }
  ],
  "pinData": {
    "Start": [
      {
        "json": {
          "domain": "stripe.com"
        }
      },
      {
        "json": {
          "domain": "delta.com"
        }
      },
      {
        "json": {
          "domain": "airbnb.com"
        }
      },
      {
        "json": {
          "domain": "tesla.com"
        }
      },
      {
        "json": {
          "domain": "homedepot.com"
        }
      }
    ]
  },
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "[Inject Google Pitch Hook]",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "[Inject M365 Enterprise Hook]",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Quarantine / Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "[Inject Google Pitch Hook]": {
      "main": [
        [
          {
            "node": "[Push to Instantly - Google Campaign]",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "[Inject M365 Enterprise Hook]": {
      "main": [
        [
          {
            "node": "[Push to Instantly - Outlook Campaign]",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate"
  },
  "versionId": "dce7ed5d-5e7b-4942-90fe-6b9f0416d547",
  "meta": {
    "instanceId": "79f04b5be133a0c268c98963c0365f88db06027073cca6e7c350c96498989e90"
  },
  "nodeGroups": [],
  "id": "z0ILa9M2SpVcIVCo",
  "tags": [
    {
      "updatedAt": "2026-09-07T05:12:14.764Z",
      "createdAt": "2026-09-07T05:12:14.764Z",
      "id": "0nfhXRw8KFNFp7Cb",
      "name": "domainsignal"
    },
    {
      "updatedAt": "2026-09-07T05:12:06.996Z",
      "createdAt": "2026-09-07T05:12:06.996Z",
      "id": "12Efhm7xcllF9cGp",
      "name": "instantly"
    },
    {
      "updatedAt": "2026-09-07T05:11:22.502Z",
      "createdAt": "2026-09-07T05:11:22.502Z",
      "id": "UFSxzGeeih8oCo2H",
      "name": "cold-email"
    },
    {
      "updatedAt": "2026-09-07T05:11:34.421Z",
      "createdAt": "2026-09-07T05:11:34.421Z",
      "id": "bBwtwysfSyHz5wPH",
      "name": "deliverability"
    },
    {
      "updatedAt": "2026-09-07T05:11:36.226Z",
      "createdAt": "2026-09-07T05:11:36.226Z",
      "id": "eyKSGlyXlmNUGF0C",
      "name": "lead-generation"
    },
    {
      "updatedAt": "2026-09-07T05:11:48.946Z",
      "createdAt": "2026-09-07T05:11:48.946Z",
      "id": "lV4qCZlAK72CJvbl",
      "name": "email-marketing"
    },
    {
      "updatedAt": "2026-09-07T05:11:51.287Z",
      "createdAt": "2026-09-07T05:11:51.287Z",
      "id": "nI4NOA0KuLgzHxVt",
      "name": "enrichment"
    },
    {
      "updatedAt": "2026-09-07T05:11:52.562Z",
      "createdAt": "2026-09-07T05:11:52.562Z",
      "id": "sEIg9YVEeRMHKGcw",
      "name": "smartlead"
    }
  ]
}