{
    "name": "Demo 1: Missed call text back",
    "flow": [
        {
            "id": 1,
            "module": "gateway:CustomWebHook",
            "version": 1,
            "parameters": {
                "maxResults": 1
            },
            "mapper": {},
            "metadata": {
                "designer": {
                    "x": 0,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "2ea4a31d7f5a70a2"
                },
                "restore": {
                    "parameters": {
                        "hook": {
                            "data": {
                                "editable": "true"
                            },
                            "label": "Missed calls"
                        }
                    }
                },
                "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.voicemail}}"
            },
            "metadata": {
                "designer": {
                    "x": 300,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "a69d8d316e7200a3"
                },
                "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 help a small insurance agency follow up on missed phone calls. You get the transcript of a voicemail. Private details in it have already been replaced with placeholders such as [REDACTED:PHONE] or [REDACTED:SSN]; never guess or invent what they hide. Reply with JSON only, no other text, in exactly this shape: {\"reason\": \"a few words on why they called\", \"urgency\": \"urgent\" or \"today\" or \"normal\", \"summary\": \"one sentence for the staff member who calls back\", \"text_back\": \"a short, friendly text message to the caller, under 300 characters, that says the agency got their message and when to expect a call back\"}. Use \"urgent\" only for an accident, a loss happening now, or a safety problem. The text_back must not include any private detail, placeholder, price or promise of coverage. Write in US English. Do not use em dashes, en dashes or double hyphens.",
                "messages": [
                    {
                        "role": "user",
                        "content": "{{2.output}}"
                    }
                ],
                "max_tokens": "2000",
                "output_config": {
                    "effort": "low"
                }
            },
            "metadata": {
                "designer": {
                    "x": 600,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "45b9033e07d3db60"
                },
                "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": 587689
            },
            "mapper": {
                "json": "{{first(map(5.output.content; \"text\"; \"type\"; \"text\"))}}"
            },
            "metadata": {
                "designer": {
                    "x": 1200,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "877a5039afefe65d"
                },
                "restore": {
                    "parameters": {
                        "type": {
                            "label": "Missed call answer"
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "type": "udt",
                        "label": "Data structure"
                    }
                ],
                "expect": [
                    {
                        "name": "json",
                        "type": "text",
                        "label": "JSON string",
                        "required": true
                    }
                ],
                "interface": [
                    {
                        "help": "",
                        "name": "reason",
                        "type": "text",
                        "label": "Reason"
                    },
                    {
                        "help": "",
                        "name": "urgency",
                        "type": "text",
                        "label": "Urgency"
                    },
                    {
                        "help": "",
                        "name": "summary",
                        "type": "text",
                        "label": "Summary"
                    },
                    {
                        "help": "",
                        "name": "text_back",
                        "type": "text",
                        "label": "Text back"
                    }
                ]
            }
        },
        {
            "id": 7,
            "module": "microsoft-excel:addAWorksheetRow",
            "version": 2,
            "parameters": {},
            "mapper": {
                "row": {
                    "0": "{{1.called_at}}",
                    "1": "{{1.caller_name}}",
                    "2": "{{1.caller_phone}}",
                    "3": "{{6.urgency}}",
                    "4": "{{6.reason}}",
                    "5": "{{6.summary}}",
                    "6": "{{6.text_back}}",
                    "7": "{{2.output}}",
                    "8": "Waiting for staff approval"
                },
                "select": "list",
                "selectB": "my",
                "workbook": "/Documents/Make demos.xlsx",
                "valueType": "values",
                "worksheet": "Missed calls"
            },
            "metadata": {
                "designer": {
                    "x": 1500,
                    "y": 0
                },
                "setupValidation": {
                    "result": {
                        "valid": true,
                        "fields": []
                    },
                    "version": 1,
                    "configuration": "140476983e3460d7"
                },
                "restore": {
                    "expect": {
                        "select": {
                            "label": "Select from the list"
                        },
                        "selectB": {
                            "label": "My Drive"
                        },
                        "valueType": {
                            "mode": "chose",
                            "label": "Values"
                        },
                        "worksheet": {
                            "mode": "chose",
                            "label": "Missed calls"
                        }
                    },
                    "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): Caller"
                            },
                            {
                                "name": "2",
                                "type": "text",
                                "label": "(C): Phone"
                            },
                            {
                                "name": "3",
                                "type": "text",
                                "label": "(D): Urgency"
                            },
                            {
                                "name": "4",
                                "type": "text",
                                "label": "(E): Reason"
                            },
                            {
                                "name": "5",
                                "type": "text",
                                "label": "(F): Summary"
                            },
                            {
                                "name": "6",
                                "type": "text",
                                "label": "(G): Text back draft"
                            },
                            {
                                "name": "7",
                                "type": "text",
                                "label": "(H): What the AI saw"
                            },
                            {
                                "name": "8",
                                "type": "text",
                                "label": "(I): Status"
                            }
                        ],
                        "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): Caller"
                            },
                            {
                                "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): Phone"
                            },
                            {
                                "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): Urgency"
                            },
                            {
                                "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): Reason"
                            },
                            {
                                "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): Summary"
                            },
                            {
                                "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): Text back draft"
                            },
                            {
                                "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): What the AI saw"
                            },
                            {
                                "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): Status"
                            }
                        ],
                        "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": []
    }
}
