{
    "name": "Demo 2: Website form to lead list",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "restore": {
                    "parameters": {
                        "hook": {
                            "data": {
                                "editable": "true"
                            },
                            "label": "Website form"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "hook",
                        "type": "hook:gateway-webhook",
                        "label": "Webhook",
                        "required": true
                    },
                    {
                        "name": "maxResults",
                        "type": "number",
                        "label": "Maximum number of results"
                    }
                ],
                "interface": [
                    {
                        "name": "caller_name",
                        "type": "text"
                    },
                    {
                        "name": "caller_phone",
                        "type": "text"
                    },
                    {
                        "name": "called_at",
                        "type": "text"
                    },
                    {
                        "name": "voicemail",
                        "type": "text"
                    }
                ]
            }
        },
        {
            "id": 2,
            "module": "app#vrymdor-ai-node:runAction",
            "version": 1,
            "parameters": {},
            "mapper": {
                "type": "sanitize",
                "input": "{{1.message}}"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "c652c47ec467ee2d"
                },
                "restore": {
                    "expect": {
                        "type": {
                            "mode": "chose",
                            "label": "Remove personal data and secrets"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "app#vrymdor-ai-node2"
                            },
                            "label": "Your Vrymdor AI Node connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:app#vrymdor-ai-node2",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "type",
                        "type": "select",
                        "label": "Action",
                        "required": true,
                        "validate": {
                            "enum": [
                                "sanitize",
                                "tool",
                                "llm",
                                "webhook"
                            ]
                        }
                    },
                    {
                        "name": "input",
                        "type": "any",
                        "label": "Input",
                        "required": true
                    }
                ]
            }
        },
        {
            "id": 3,
            "module": "json:CreateJSON",
            "version": 1,
            "parameters": {
                "type": 587676,
                "space": ""
            },
            "mapper": {
                "model": "claude-opus-5-5",
                "system": "You sort website contact form messages for a small insurance agency. Private details in the message have already been replaced with placeholders such as [REDACTED:EMAIL] or [REDACTED:SSN]; never guess or invent what they hide. Reply with JSON only, no other text, in exactly this shape: {\"request_type\": \"new_quote\" or \"policy_change\" or \"claim\" or \"billing\" or \"other\", \"line\": \"auto\" or \"home\" or \"life\" or \"business\" or \"other\", \"summary\": \"one sentence for the agent\", \"next_step\": \"one short sentence on what the agent should do first\"}. Write in US English. Do not use em dashes, en dashes or double hyphens.",
                "messages": [
                    {
                        "role": "user",
                        "content": "{{1.interest}}: {{2.output}}"
                    }
                ],
                "max_tokens": "2000",
                "output_config": {
                    "effort": "low"
                }
            },
            "metadata": {
                "designer": {
                    "x": 600,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "10fe7a4ffed706a4"
                },
                "restore": {
                    "expect": {
                        "messages": {
                            "mode": "chose",
                            "items": [
                                null
                            ]
                        }
                    },
                    "parameters": {
                        "type": {
                            "label": "Claude request"
                        },
                        "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": "model",
                        "type": "text",
                        "label": "Model"
                    },
                    {
                        "name": "max_tokens",
                        "type": "number",
                        "label": "Max tokens"
                    },
                    {
                        "name": "output_config",
                        "spec": [
                            {
                                "name": "effort",
                                "type": "text",
                                "label": "Effort"
                            }
                        ],
                        "type": "collection",
                        "label": "Output config"
                    },
                    {
                        "name": "system",
                        "type": "text",
                        "label": "System"
                    },
                    {
                        "name": "messages",
                        "spec": {
                            "name": "value",
                            "spec": [
                                {
                                    "name": "role",
                                    "type": "text"
                                },
                                {
                                    "name": "content",
                                    "type": "text"
                                }
                            ],
                            "type": "collection"
                        },
                        "type": "array",
                        "label": "Messages"
                    }
                ]
            }
        },
        {
            "id": 5,
            "module": "app#vrymdor-ai-node:runAction",
            "version": 1,
            "parameters": {},
            "mapper": {
                "path": "v1/messages",
                "type": "llm",
                "input": "{{3.json}}",
                "dryRun": false,
                "upstream": "anthropic"
            },
            "metadata": {
                "designer": {
                    "x": 900,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "33d310da182bb62a"
                },
                "restore": {
                    "expect": {
                        "type": {
                            "mode": "chose",
                            "label": "Call a model"
                        },
                        "dryRun": {
                            "mode": "chose"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "app#vrymdor-ai-node2"
                            },
                            "label": "Your Vrymdor AI Node connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:app#vrymdor-ai-node2",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "type",
                        "type": "select",
                        "label": "Action",
                        "required": true,
                        "validate": {
                            "enum": [
                                "sanitize",
                                "tool",
                                "llm",
                                "webhook"
                            ]
                        }
                    },
                    {
                        "name": "input",
                        "type": "any",
                        "label": "Input",
                        "required": true
                    },
                    {
                        "name": "upstream",
                        "type": "text",
                        "label": "Upstream",
                        "required": true
                    },
                    {
                        "name": "path",
                        "type": "text",
                        "label": "API path",
                        "required": true
                    },
                    {
                        "name": "dryRun",
                        "type": "boolean",
                        "label": "Check only (dry run)"
                    }
                ]
            }
        },
        {
            "id": 6,
            "module": "json:ParseJSON",
            "version": 1,
            "parameters": {
                "type": 588255
            },
            "mapper": {
                "json": "{{first(map(5.output.content; \"text\"; \"type\"; \"text\"))}}"
            },
            "metadata": {
                "designer": {
                    "x": 1200,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "e69aaf7d1d739586"
                },
                "restore": {
                    "parameters": {
                        "type": {
                            "label": "Lead answer"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "type": "udt",
                        "label": "Data structure"
                    }
                ],
                "expect": [
                    {
                        "name": "json",
                        "type": "text",
                        "label": "JSON string",
                        "required": true
                    }
                ],
                "interface": [
                    {
                        "help": "",
                        "name": "request_type",
                        "type": "text",
                        "label": "Request type"
                    },
                    {
                        "help": "",
                        "name": "line",
                        "type": "text",
                        "label": "Line"
                    },
                    {
                        "help": "",
                        "name": "summary",
                        "type": "text",
                        "label": "Summary"
                    },
                    {
                        "help": "",
                        "name": "next_step",
                        "type": "text",
                        "label": "Next step"
                    }
                ]
            }
        },
        {
            "id": 7,
            "module": "microsoft-excel:addAWorksheetRow",
            "version": 2,
            "parameters": {},
            "mapper": {
                "row": {
                    "0": "{{now}}",
                    "1": "{{1.name}}",
                    "2": "{{1.email}}",
                    "3": "{{1.phone}}",
                    "4": "{{6.request_type}}",
                    "5": "{{6.line}}",
                    "6": "{{6.summary}}",
                    "7": "{{6.next_step}}",
                    "8": "{{2.output}}"
                },
                "select": "list",
                "selectB": "my",
                "workbook": "/Documents/Make demos.xlsx",
                "valueType": "values",
                "worksheet": "Leads"
            },
            "metadata": {
                "designer": {
                    "x": 1500,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "933eefb7c04956c4"
                },
                "restore": {
                    "expect": {
                        "select": {
                            "label": "Select from the list"
                        },
                        "selectB": {
                            "label": "My Drive"
                        },
                        "valueType": {
                            "mode": "chose",
                            "label": "Values"
                        },
                        "worksheet": {
                            "mode": "chose",
                            "label": "Leads"
                        }
                    },
                    "parameters": {
                        "__IMTCONN__": {
                            "data": {
                                "scoped": "true",
                                "connection": "azure"
                            },
                            "label": "Your Microsoft 365 connection"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "__IMTCONN__",
                        "type": "account:azure",
                        "label": "Connection",
                        "required": true
                    }
                ],
                "expect": [
                    {
                        "name": "select",
                        "type": "select",
                        "label": "Select a method",
                        "required": true,
                        "validate": {
                            "enum": [
                                "map",
                                "list"
                            ]
                        }
                    },
                    {
                        "name": "selectB",
                        "type": "select",
                        "label": "Choose your OneDrive location",
                        "required": true,
                        "validate": {
                            "enum": [
                                "my",
                                "site",
                                "group"
                            ]
                        }
                    },
                    {
                        "name": "workbook",
                        "type": "file",
                        "label": "Workbook",
                        "required": true
                    },
                    {
                        "name": "worksheet",
                        "type": "select",
                        "label": "Worksheet name",
                        "required": true
                    },
                    {
                        "name": "valueType",
                        "type": "select",
                        "label": "Type of values being entered",
                        "required": true,
                        "validate": {
                            "enum": [
                                "formulas",
                                "formulasLocal",
                                "values"
                            ]
                        }
                    },
                    {
                        "name": "row",
                        "spec": [
                            {
                                "name": "0",
                                "type": "text",
                                "label": "(A): Time"
                            },
                            {
                                "name": "1",
                                "type": "text",
                                "label": "(B): Name"
                            },
                            {
                                "name": "2",
                                "type": "text",
                                "label": "(C): Email"
                            },
                            {
                                "name": "3",
                                "type": "text",
                                "label": "(D): Phone"
                            },
                            {
                                "name": "4",
                                "type": "text",
                                "label": "(E): Request type"
                            },
                            {
                                "name": "5",
                                "type": "text",
                                "label": "(F): Line"
                            },
                            {
                                "name": "6",
                                "type": "text",
                                "label": "(G): Summary"
                            },
                            {
                                "name": "7",
                                "type": "text",
                                "label": "(H): Next step"
                            },
                            {
                                "name": "8",
                                "type": "text",
                                "label": "(I): What the AI saw"
                            }
                        ],
                        "type": "collection",
                        "label": "Row"
                    }
                ],
                "interface": [
                    {
                        "name": "id",
                        "type": "text",
                        "label": "Row ID"
                    },
                    {
                        "name": "row",
                        "spec": [
                            {
                                "name": "a",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(A): Time"
                            },
                            {
                                "name": "b",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(B): Name"
                            },
                            {
                                "name": "c",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(C): Email"
                            },
                            {
                                "name": "d",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(D): Phone"
                            },
                            {
                                "name": "e",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(E): Request type"
                            },
                            {
                                "name": "f",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(F): Line"
                            },
                            {
                                "name": "g",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(G): Summary"
                            },
                            {
                                "name": "h",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(H): Next step"
                            },
                            {
                                "name": "i",
                                "spec": [
                                    {
                                        "name": "formula",
                                        "type": "text",
                                        "label": "Formula"
                                    },
                                    {
                                        "name": "formulaLocal",
                                        "type": "text",
                                        "label": "Formula Local"
                                    },
                                    {
                                        "name": "numberFormat",
                                        "type": "text",
                                        "label": "Number Format"
                                    },
                                    {
                                        "name": "text",
                                        "type": "text",
                                        "label": "Text"
                                    },
                                    {
                                        "name": "value",
                                        "type": "text",
                                        "label": "Value"
                                    },
                                    {
                                        "name": "valueType",
                                        "type": "text",
                                        "label": "Value Type"
                                    }
                                ],
                                "type": "collection",
                                "label": "(I): What the AI saw"
                            }
                        ],
                        "type": "collection",
                        "label": "Row"
                    }
                ]
            }
        }
    ],
    "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": "us2.make.com",
        "notes": []
    }
}
