{
    "name": "Apollo to Smartlead Pipeline [CreatorOpsMatrix]",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {},
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0,
                    "name": "Apollo.io Webhook Catch"
                },
                "parameters": [
                    {
                        "name": "hook",
                        "type": "hook:CustomWebHook"
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "http:ActionMakeRequest",
            "version": 3,
            "parameters": {
                "handleErrors": true
            },
            "filter": {
                "name": "Verified Emails Only",
                "conditions": [
                    [
                        {
                            "a": "{{1.email_status}}",
                            "o": "text:equal",
                            "b": "verified"
                        }
                    ]
                ]
            },
            "mapper": {
                "url": "https://api.smartlead.ai/api/v1/campaigns/{{CAMPAIGN_ID}}/leads?api_key={{SMARTLEAD_API_KEY}}",
                "method": "post",
                "headers": [],
                "bodyType": "raw",
                "body": "{\n  \"leadList\": [\n    {\n      \"first_name\": \"{{1.first_name}}\",\n      \"last_name\": \"{{1.last_name}}\",\n      \"email\": \"{{1.email}}\",\n      \"company_name\": \"{{1.organization.name}}\",\n      \"custom_fields\": {\n        \"job_title\": \"{{1.title}}\",\n        \"city\": \"{{1.city}}\"\n      }\n    }\n  ]\n}",
                "parseResponse": true
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0,
                    "name": "Smartlead API Inject"
                }
            },
            "errorHandlers": [
                {
                    "id": 3,
                    "module": "core:IgnoreError",
                    "version": 1,
                    "mapper": {},
                    "metadata": {
                        "designer": {
                            "x": 300,
                            "y": 150,
                            "name": "Ignore 400 Duplicate Error"
                        }
                    }
                }
            ]
        }
    ],
    "metadata": {
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "notes": [
            {
                "id": 1,
                "x": 0,
                "y": -150,
                "text": "CREATOROPSMATRIX STACK LOCK-IN\n\nIf you need to deploy or upgrade the infrastructure for this pipeline, use the operator links below:\n\n1. Apollo.io (Data): https://creatoropsmatrix.com/go/apollo\n2. Make.com (Logic): https://creatoropsmatrix.com/go/make\n3. Smartlead.ai (Delivery): https://creatoropsmatrix.com/go/smartlead\n4. GoHighLevel (CRM): https://creatoropsmatrix.com/go/gohighlevel\n\nDocumentation: https://creatoropsmatrix.com/apollo-to-smartlead-automation/"
            }
        ]
    }
}