{
    "name": "Cornersight -> Slack hot lead alert",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "hook": null,
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "hook": {
                            "label": "Cornersight webhook (click Add to create yours)",
                            "data": {
                                "editable": "true"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "hook",
                        "type": "hook:gateway-webhook",
                        "label": "Webhook",
                        "required": true
                    },
                    {
                        "name": "maxResults",
                        "type": "number",
                        "label": "Maximum number of results"
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "slack:CreateMessage",
            "version": 4,
            "parameters": {
                "__IMTCONN__": null
            },
            "filter": {
                "name": "ICP comment?",
                "conditions": [
                    [
                        {
                            "a": "{{1.data.isIcp}}",
                            "b": "true",
                            "o": "text:equal"
                        },
                        {
                            "a": "{{1.data.engagementType}}",
                            "b": "Comment",
                            "o": "text:equal"
                        }
                    ]
                ]
            },
            "mapper": {
                "channelWType": "manualy",
                "channel": "#hot-leads",
                "text": ":fire: *{{1.data.name}}* ({{1.data.jobTitle}} at {{1.data.companyName}}) commented:\n> {{1.data.commentText}}\nPost: {{1.data.postUrl}}\nProfile: {{1.data.linkedinUrl}}",
                "mrkdwn": true,
                "parse": false
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "__IMTCONN__": {
                            "label": "Connect your Slack workspace",
                            "data": {
                                "scoped": "true",
                                "connection": "slack2"
                            }
                        }
                    },
                    "expect": {
                        "channelWType": {
                            "label": "Enter manually"
                        },
                        "mrkdwn": {
                            "mode": "chose"
                        },
                        "parse": {
                            "mode": "chose"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:slack2,slack3",
                        "label": "Connection",
                        "required": true
                    }
                ]
            }
        }
    ],
    "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": [],
            "notes": [
                {
                    "id": 1,
                    "text": "Cornersight -> Slack hot lead alert.\nSends a Slack message when someone who fits your ICP comments.\n1. Click this webhook, click Add, save, copy the URL into your Cornersight source.\n2. Run once, then send a test lead so Make learns the fields.\n3. In the Slack module: connect Slack, set your channel (default #hot-leads).\nWant likes too? Delete the second condition in the ICP comment? filter.",
                    "filter": false
                }
            ]
        },
        "zone": "us1.make.com"
    }
}
