{
  "name": "Datavej: property brief for an address",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Request"
        },
        "restore": {
          "parameters": {
            "hook": {
              "label": "Datavej request"
            }
          }
        },
        "parameters": [
          {
            "name": "hook",
            "type": "hook:gateway-webhook",
            "label": "Webhook",
            "required": true
          },
          {
            "name": "maxResults",
            "type": "number",
            "label": "Maximum number of results"
          }
        ]
      }
    },
    {
      "id": 2,
      "module": "ai-local-agent:RunLocalAIAgent",
      "version": 0,
      "parameters": {},
      "mapper": {
        "systemPrompt": "You write a short property brief for a Danish address using only Datavej's tools. Start with address_search; if exact_match is false, ask which address the user means and stop. Then call building_info, property_valuation, planning_rules, protected_areas and soil_contamination with the address_id. Write the brief in the user's language with these headings: Address, Buildings (BBR), Public valuation, Planning, Protected areas, Soil contamination, Sources. Quote figures as the registers give them, pass on data_notes and caveats, call any land-tax figure an estimate by Datavej, and end with the source attribution lines the tools return.",
        "message": "Write a property brief for this Danish address: {{1.address}}",
        "modelConfig": {
          "recursionLimit": 30,
          "iterationsFromHistoryCount": 0
        },
        "outputType": "text"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Datavej agent"
        },
        "restore": {
          "parameters": {
            "makeConnectionId": {
              "label": "Choose your AI provider connection"
            }
          }
        },
        "parameters": [
          {
            "name": "makeConnectionId",
            "type": "account:ai-provider,openai-gpt-3,anthropic-claude,gemini-ai-q9zyjp",
            "label": "Connection",
            "required": true
          }
        ]
      },
      "tools": [
        {
          "name": "Datavej",
          "description": "Danish public data from Datavej (datavej.dk). Call the selected tools by name.",
          "flow": [
            {
              "id": 3,
              "module": "mcp-client:McpToolsForAgent",
              "version": 1,
              "parameters": {},
              "mapper": {
                "tools": [
                  "address_search",
                  "building_info",
                  "property_valuation",
                  "planning_rules",
                  "protected_areas",
                  "soil_contamination"
                ]
              },
              "metadata": {
                "designer": {
                  "x": 300,
                  "y": 250
                },
                "restore": {
                  "parameters": {
                    "account": {
                      "label": "Datavej (https://datavej.dk/mcp)",
                      "data": {
                        "scoped": "true",
                        "connection": "mcp"
                      }
                    }
                  }
                },
                "parameters": [
                  {
                    "name": "account",
                    "type": "account:mcp",
                    "label": "Connection",
                    "required": true
                  }
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "id": 4,
      "module": "gateway:WebhookRespond",
      "version": 1,
      "parameters": {},
      "mapper": {
        "status": "200",
        "body": "{{2.response}}",
        "headers": [
          {
            "key": "Content-Type",
            "value": "text/plain; charset=utf-8"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "Reply"
        }
      }
    }
  ],
  "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": "eu1.make.com",
    "notes": []
  }
}
