{
    "name": "NexHello Received Simple Template",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "hook": 2847900,
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 150,
                    "name": "NexHello Receiver"
                },
                "restore": {
                    "parameters": {
                        "hook": {
                            "data": {
                                "editable": "true"
                            },
                            "label": "My gateway-webhook webhook"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "hook",
                        "type": "hook:gateway-webhook",
                        "label": "Webhook",
                        "required": true
                    },
                    {
                        "name": "maxResults",
                        "type": "number",
                        "label": "Maximum number of results"
                    }
                ],
                "interface": [
                    {
                        "name": "event",
                        "type": "text"
                    },
                    {
                        "name": "schema_version",
                        "type": "text"
                    },
                    {
                        "name": "event_id",
                        "type": "text"
                    },
                    {
                        "name": "occurred_at",
                        "type": "text"
                    },
                    {
                        "name": "sent_at",
                        "type": "text"
                    },
                    {
                        "name": "source",
                        "spec": [
                            {
                                "name": "app_id",
                                "type": "text"
                            },
                            {
                                "name": "app_name",
                                "type": "text"
                            },
                            {
                                "name": "environment",
                                "type": "text"
                            },
                            {
                                "name": "source_type",
                                "type": "text"
                            },
                            {
                                "name": "capture_method",
                                "type": "text"
                            }
                        ],
                        "type": "collection"
                    },
                    {
                        "name": "data",
                        "spec": [
                            {
                                "name": "contact",
                                "spec": [
                                    {
                                        "name": "id",
                                        "type": "text"
                                    },
                                    {
                                        "name": "first_name",
                                        "type": "text"
                                    },
                                    {
                                        "name": "last_name",
                                        "type": "text"
                                    },
                                    {
                                        "name": "full_name",
                                        "type": "text"
                                    },
                                    {
                                        "name": "name_split_method",
                                        "type": "text"
                                    },
                                    {
                                        "name": "name_split_confidence",
                                        "type": "text"
                                    },
                                    {
                                        "name": "company",
                                        "type": "text"
                                    },
                                    {
                                        "name": "about_this_person",
                                        "type": "text"
                                    },
                                    {
                                        "name": "phones",
                                        "spec": {
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "normalized_value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "is_primary",
                                                    "type": "boolean"
                                                }
                                            ],
                                            "type": "collection"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "name": "emails",
                                        "spec": {
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "normalized_value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "is_primary",
                                                    "type": "boolean"
                                                }
                                            ],
                                            "type": "collection"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "name": "websites",
                                        "spec": {
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "normalized_value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "is_primary",
                                                    "type": "boolean"
                                                }
                                            ],
                                            "type": "collection"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "name": "linkedin_links",
                                        "spec": {
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "normalized_value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "label",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "is_primary",
                                                    "type": "boolean"
                                                }
                                            ],
                                            "type": "collection"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "name": "addresses",
                                        "spec": {
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "normalized_value",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "is_primary",
                                                    "type": "boolean"
                                                }
                                            ],
                                            "type": "collection"
                                        },
                                        "type": "array"
                                    },
                                    {
                                        "name": "phone",
                                        "type": "text"
                                    },
                                    {
                                        "name": "email",
                                        "type": "text"
                                    },
                                    {
                                        "name": "website",
                                        "type": "text"
                                    },
                                    {
                                        "name": "linkedin",
                                        "type": "text"
                                    },
                                    {
                                        "name": "address",
                                        "type": "text"
                                    }
                                ],
                                "type": "collection"
                            },
                            {
                                "name": "interactions",
                                "spec": {
                                    "spec": [
                                        {
                                            "name": "id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "contact_id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "kind",
                                            "type": "text"
                                        },
                                        {
                                            "name": "status",
                                            "type": "text"
                                        },
                                        {
                                            "name": "occurred_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "recorded_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "note",
                                            "type": "text"
                                        }
                                    ],
                                    "type": "collection"
                                },
                                "type": "array"
                            },
                            {
                                "name": "follow_up_actions",
                                "spec": {
                                    "spec": [
                                        {
                                            "name": "id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "contact_id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "title",
                                            "type": "text"
                                        },
                                        {
                                            "name": "type",
                                            "type": "text"
                                        },
                                        {
                                            "name": "status",
                                            "type": "text"
                                        },
                                        {
                                            "name": "due_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "due_local_date",
                                            "type": "text"
                                        },
                                        {
                                            "name": "due_at_local",
                                            "type": "text"
                                        },
                                        {
                                            "name": "time_zone_id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "duration_minutes",
                                            "type": "number"
                                        },
                                        {
                                            "name": "reminder_enabled",
                                            "type": "boolean"
                                        },
                                        {
                                            "name": "calendar_handoff_requested",
                                            "type": "boolean"
                                        },
                                        {
                                            "name": "created_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "updated_at",
                                            "type": "text"
                                        }
                                    ],
                                    "type": "collection"
                                },
                                "type": "array"
                            },
                            {
                                "name": "follow_up_events",
                                "spec": {
                                    "spec": [
                                        {
                                            "name": "id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "follow_up_action_id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "type",
                                            "type": "text"
                                        },
                                        {
                                            "name": "occurred_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "to_due_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "to_due_at_local",
                                            "type": "text"
                                        },
                                        {
                                            "name": "to_due_local_date",
                                            "type": "text"
                                        },
                                        {
                                            "name": "time_zone_id",
                                            "type": "text"
                                        }
                                    ],
                                    "type": "collection"
                                },
                                "type": "array"
                            },
                            {
                                "name": "changes",
                                "spec": {
                                    "spec": [
                                        {
                                            "name": "entity",
                                            "type": "text"
                                        },
                                        {
                                            "name": "operation",
                                            "type": "text"
                                        },
                                        {
                                            "name": "entity_id",
                                            "type": "text"
                                        },
                                        {
                                            "name": "occurred_at",
                                            "type": "text"
                                        },
                                        {
                                            "name": "data",
                                            "spec": [
                                                {
                                                    "name": "id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "contact_id",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "kind",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "status",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "occurred_at",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "recorded_at",
                                                    "type": "text"
                                                },
                                                {
                                                    "name": "note",
                                                    "type": "text"
                                                }
                                            ],
                                            "type": "collection"
                                        }
                                    ],
                                    "type": "collection"
                                },
                                "type": "array"
                            }
                        ],
                        "type": "collection"
                    },
                    {
                        "name": "delivery",
                        "spec": [
                            {
                                "name": "delivery_id",
                                "type": "text"
                            },
                            {
                                "name": "idempotency_key",
                                "type": "text"
                            },
                            {
                                "name": "mode",
                                "type": "text"
                            },
                            {
                                "name": "profile_id",
                                "type": "text"
                            },
                            {
                                "name": "user_id",
                                "type": "text"
                            },
                            {
                                "name": "user_confirmed",
                                "type": "boolean"
                            }
                        ],
                        "type": "collection"
                    },
                    {
                        "name": "__IMTHEADERS__",
                        "spec": [
                            {
                                "name": "name",
                                "type": "text",
                                "label": "Name"
                            },
                            {
                                "name": "value",
                                "type": "text",
                                "label": "Value"
                            }
                        ],
                        "type": "array",
                        "label": "Headers"
                    }
                ]
            }
        },
        {
            "id": 22,
            "module": "builtin:BasicIfElse",
            "version": 1,
            "mapper": null,
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 150,
                    "name": "Has required data?"
                }
            },
            "branches": [
                {
                    "merge": false,
                    "label": "",
                    "type": "condition",
                    "flow": [
                        {
                            "id": 6,
                            "module": "json:CreateJSON",
                            "version": 1,
                            "parameters": {
                                "type": 297174,
                                "space": ""
                            },
                            "mapper": {
                                "response": "Lead submitted successfully!"
                            },
                            "metadata": {
                                "designer": {
                                    "x": 600,
                                    "y": 0,
                                    "name": "Success"
                                },
                                "setupValidation": {
                                    "result": {
                                        "valid": true,
                                        "fields": []
                                    },
                                    "version": 1,
                                    "configuration": "64d5cf0372f3e56a"
                                },
                                "restore": {
                                    "parameters": {
                                        "type": {
                                            "label": "Response"
                                        },
                                        "space": {
                                            "label": "Empty"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "type",
                                        "type": "udt",
                                        "label": "Data structure",
                                        "required": true
                                    },
                                    {
                                        "name": "space",
                                        "type": "select",
                                        "label": "Indentation",
                                        "validate": {
                                            "enum": [
                                                "tab",
                                                "2",
                                                "4"
                                            ]
                                        }
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "response",
                                        "type": "text",
                                        "label": null,
                                        "required": true
                                    }
                                ]
                            }
                        },
                        {
                            "id": 5,
                            "module": "gateway:WebhookRespond",
                            "version": 1,
                            "parameters": {},
                            "mapper": {
                                "body": "{{6.json}}",
                                "status": "200",
                                "headers": []
                            },
                            "metadata": {
                                "designer": {
                                    "x": 900,
                                    "y": 0,
                                    "name": "Success Response"
                                },
                                "setupValidation": {
                                    "result": {
                                        "valid": true,
                                        "fields": []
                                    },
                                    "version": 1,
                                    "configuration": "d54def5ec523e837"
                                },
                                "restore": {
                                    "expect": {
                                        "headers": {
                                            "mode": "chose"
                                        }
                                    }
                                },
                                "expect": [
                                    {
                                        "name": "status",
                                        "type": "uinteger",
                                        "label": "Status",
                                        "required": true,
                                        "validate": {
                                            "min": 100
                                        }
                                    },
                                    {
                                        "name": "body",
                                        "type": "any",
                                        "label": "Body"
                                    },
                                    {
                                        "name": "headers",
                                        "spec": [
                                            {
                                                "name": "key",
                                                "type": "text",
                                                "label": "Key",
                                                "required": true,
                                                "validate": {
                                                    "max": 256
                                                }
                                            },
                                            {
                                                "name": "value",
                                                "type": "text",
                                                "label": "Value",
                                                "required": true,
                                                "validate": {
                                                    "max": 4096
                                                }
                                            }
                                        ],
                                        "type": "array",
                                        "label": "Custom headers",
                                        "validate": {
                                            "maxItems": 16
                                        }
                                    }
                                ]
                            }
                        }
                    ],
                    "conditions": [
                        [
                            {
                                "a": "{{1.data.contact.id}}",
                                "o": "exist"
                            },
                            {
                                "a": "{{1.data.contact.last_name}}",
                                "o": "exist"
                            }
                        ]
                    ]
                },
                {
                    "merge": false,
                    "disabled": false,
                    "label": "",
                    "type": "else",
                    "flow": [
                        {
                            "id": 14,
                            "module": "json:CreateJSON",
                            "version": 1,
                            "parameters": {
                                "type": 297174,
                                "space": ""
                            },
                            "mapper": {
                                "response": "Lead submission failed. Please try again."
                            },
                            "metadata": {
                                "designer": {
                                    "x": 600,
                                    "y": 300,
                                    "name": "Failure"
                                },
                                "setupValidation": {
                                    "version": 1,
                                    "configuration": "d1d8502b33c75d33",
                                    "result": {
                                        "valid": true,
                                        "fields": []
                                    }
                                },
                                "restore": {
                                    "parameters": {
                                        "type": {
                                            "label": "Response"
                                        },
                                        "space": {
                                            "label": "Empty"
                                        }
                                    }
                                },
                                "parameters": [
                                    {
                                        "name": "type",
                                        "type": "udt",
                                        "label": "Data structure",
                                        "required": true
                                    },
                                    {
                                        "name": "space",
                                        "type": "select",
                                        "label": "Indentation",
                                        "validate": {
                                            "enum": [
                                                "tab",
                                                "2",
                                                "4"
                                            ]
                                        }
                                    }
                                ],
                                "expect": [
                                    {
                                        "name": "response",
                                        "type": "text",
                                        "label": null,
                                        "required": true
                                    }
                                ]
                            }
                        },
                        {
                            "id": 17,
                            "module": "gateway:WebhookRespond",
                            "version": 1,
                            "parameters": {},
                            "mapper": {
                                "status": "422",
                                "body": "{{14.json}}",
                                "headers": []
                            },
                            "metadata": {
                                "designer": {
                                    "x": 900,
                                    "y": 300,
                                    "name": "Failure Response"
                                },
                                "setupValidation": {
                                    "version": 1,
                                    "configuration": "d5b858a51724176e",
                                    "result": {
                                        "valid": true,
                                        "fields": []
                                    }
                                },
                                "restore": {
                                    "expect": {
                                        "headers": {
                                            "mode": "chose"
                                        }
                                    }
                                },
                                "expect": [
                                    {
                                        "name": "status",
                                        "type": "uinteger",
                                        "label": "Status",
                                        "validate": {
                                            "min": 100
                                        },
                                        "required": true
                                    },
                                    {
                                        "name": "body",
                                        "type": "any",
                                        "label": "Body"
                                    },
                                    {
                                        "name": "headers",
                                        "type": "array",
                                        "label": "Custom headers",
                                        "validate": {
                                            "maxItems": 16
                                        },
                                        "spec": [
                                            {
                                                "name": "key",
                                                "label": "Key",
                                                "type": "text",
                                                "required": true,
                                                "validate": {
                                                    "max": 256
                                                }
                                            },
                                            {
                                                "name": "value",
                                                "label": "Value",
                                                "type": "text",
                                                "required": true,
                                                "validate": {
                                                    "max": 4096
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        }
                    ]
                }
            ]
        }
    ],
    "metadata": {
        "instant": true,
        "version": 1,
        "scenario": {
            "roundtrips": 1,
            "maxErrors": 3,
            "autoCommit": true,
            "autoCommitTriggerLast": true,
            "sequential": false,
            "slots": null,
            "confidential": false,
            "dataloss": false,
            "dlq": false,
            "freshVariables": false
        },
        "designer": {
            "orphans": []
        },
        "zone": "us1.make.com",
        "notes": []
    }
}