{
  "name": "Verify Outbound Leads with MailVeri from Apollo and Clay",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": -240,
          "y": 0,
          "name": "Inbound Lead Webhook (Apollo / Clay)"
        },
        "restore": {},
        "parameters": [
          {
            "name": "maxResults",
            "type": "number",
            "label": "Maximum number of results",
            "required": true
          }
        ]
      }
    },
    {
      "id": 2,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": false,
        "useNewZLib": true
      },
      "mapper": {
        "url": "https://api.mailveri.com/v1/verify-mail/",
        "method": "POST",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer YOUR_MAILVERI_API_KEY"
          },
          {
            "name": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": "{\n  \"email\": \"{{1.email}}\"\n}",
        "type": "raw",
        "contentType": "application/json",
        "parseResponse": true
      },
      "metadata": {
        "designer": {
          "x": 80,
          "y": 0,
          "name": "MailVeri: Verify Email Deliverability"
        }
      }
    },
    {
      "id": 3,
      "module": "builtin:BasicRouter",
      "version": 1,
      "routes": [
        {
          "flow": [
            {
              "id": 4,
              "module": "tools:SetMultipleVariables",
              "version": 1,
              "parameters": {
                "variables": [
                  {
                    "name": "verified_email",
                    "value": "{{1.email}}"
                  },
                  {
                    "name": "deliverability_status",
                    "value": "{{2.data.status}}"
                  },
                  {
                    "name": "first_name",
                    "value": "{{1.first_name}}"
                  },
                  {
                    "name": "company",
                    "value": "{{1.company}}"
                  },
                  {
                    "name": "action_note",
                    "value": "Safe to email. Replace this module with Instantly / Smartlead / CRM."
                  }
                ]
              },
              "mapper": {},
              "metadata": {
                "designer": {
                  "x": 420,
                  "y": -130,
                  "name": "Deliverable: Route to Cold Outreach (Instantly/Smartlead)"
                }
              }
            }
          ],
          "filter": {
            "name": "Status is VALID",
            "conditions": [
              [
                {
                  "a": "{{2.data.status}}",
                  "b": "VALID",
                  "o": "text:equal"
                }
              ]
            ]
          }
        },
        {
          "flow": [
            {
              "id": 5,
              "module": "tools:SetMultipleVariables",
              "version": 1,
              "parameters": {
                "variables": [
                  {
                    "name": "quarantined_email",
                    "value": "{{1.email}}"
                  },
                  {
                    "name": "risk_status",
                    "value": "{{2.data.status}}"
                  },
                  {
                    "name": "quarantine_action",
                    "value": "Blocked from outbound campaign to protect domain sender reputation."
                  }
                ]
              },
              "mapper": {},
              "metadata": {
                "designer": {
                  "x": 420,
                  "y": 130,
                  "name": "Quarantine: Suppression List (Protect Sender Reputation)"
                }
              }
            }
          ],
          "filter": {
            "name": "Status is INVALID or Risky",
            "conditions": [
              [
                {
                  "a": "{{2.data.status}}",
                  "b": "VALID",
                  "o": "text:notEqual"
                }
              ]
            ]
          }
        }
      ],
      "metadata": {
        "designer": {
          "x": 260,
          "y": 0,
          "name": "Router: Deliverable vs Quarantine"
        }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}
