# Find broken module references in a Make.com blueprint

**Use case:** 

Validate a Make.com blueprint before you import or hand it over: mappings that point at a module that no longer exists, filters that can never pass, duplicate module ids, routers with a single route, orphaned modules, and the warnings Make's own designer left in the file - read across the whole scenario in one run.

## Input

```json
{
  "blueprintJson": {
    "name": "Example - order intake",
    "flow": [
      {
        "id": 1,
        "module": "gateway:CustomWebHook",
        "version": 1,
        "parameters": {
          "hook": 118273,
          "maxResults": 1
        },
        "mapper": {},
        "metadata": {
          "designer": {
            "x": 0,
            "y": 0,
            "name": "New order received"
          },
          "parameters": [
            {
              "name": "hook",
              "type": "hook:gateway-webhook",
              "label": "Webhook",
              "required": true
            },
            {
              "name": "maxResults",
              "type": "number",
              "label": "Maximum number of results"
            }
          ]
        }
      },
      {
        "id": 2,
        "module": "http:ActionSendData",
        "version": 3,
        "parameters": {
          "handleErrors": false,
          "useNewZLibDeCompress": true
        },
        "mapper": {
          "url": "https://api.crm.internal/v1/orders",
          "serializeUrl": false,
          "method": "post",
          "headers": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer sk-proj-Qm7xT2vLp9RaW4cKz8Yh3NdE6sBu1JfG0oXiVwHtMy5ZcA"
            }
          ],
          "qs": [],
          "bodyType": "raw",
          "parseResponse": true,
          "authUser": "",
          "authPass": "",
          "timeout": "",
          "shareCookies": false,
          "ca": "",
          "rejectUnauthorized": false,
          "followRedirect": true,
          "useQuerystring": false,
          "gzip": true,
          "useMtls": false,
          "contentType": "application/json",
          "data": "{{1.body}}",
          "followAllRedirects": false
        },
        "metadata": {
          "designer": {
            "x": 300,
            "y": 0
          },
          "parameters": [
            {
              "name": "handleErrors",
              "type": "boolean",
              "label": "Evaluate all states as errors (except for 2xx and 3xx )",
              "required": true
            },
            {
              "name": "useNewZLibDeCompress",
              "type": "hidden"
            }
          ],
          "expect": [
            {
              "name": "url",
              "type": "url",
              "label": "URL",
              "required": true
            },
            {
              "name": "method",
              "type": "select",
              "label": "Method"
            },
            {
              "name": "headers",
              "type": "array",
              "label": "Headers"
            },
            {
              "name": "qs",
              "type": "array",
              "label": "Query String"
            },
            {
              "name": "rejectUnauthorized",
              "type": "boolean",
              "label": "Reject connections that are using unverified (self-signed) certificates",
              "required": true
            },
            {
              "name": "timeout",
              "type": "uinteger",
              "label": "Timeout"
            },
            {
              "name": "data",
              "type": "buffer",
              "label": "Request content"
            }
          ]
        }
      },
      {
        "id": 3,
        "module": "builtin:BasicFeeder",
        "version": 1,
        "parameters": {},
        "mapper": {
          "array": "{{2.data.items}}"
        },
        "metadata": {
          "designer": {
            "x": 600,
            "y": 0
          },
          "expect": [
            {
              "name": "array",
              "type": "array",
              "label": "Array",
              "mode": "edit"
            }
          ]
        }
      },
      {
        "id": 4,
        "module": "google-sheets:addRow",
        "version": 2,
        "parameters": {
          "__IMTCONN__": 1001
        },
        "mapper": {
          "mode": "select",
          "insertDataOption": "INSERT_ROWS",
          "valueInputOption": "USER_ENTERED",
          "spreadsheetId": "",
          "sheetId": "Orders",
          "includesHeaders": true,
          "values": {
            "0": "{{3.sku}}",
            "1": "{{3.quantity}}",
            "2": "{{1.customer.email}}"
          }
        },
        "onerror": [
          {
            "id": 9,
            "module": "builtin:Break",
            "version": 1,
            "parameters": {
              "retry": true,
              "count": 3,
              "interval": 15
            },
            "mapper": {},
            "metadata": {
              "designer": {
                "x": 900,
                "y": 300
              }
            }
          }
        ],
        "metadata": {
          "designer": {
            "x": 900,
            "y": 0
          },
          "parameters": [
            {
              "name": "__IMTCONN__",
              "type": "account:google",
              "label": "Connection",
              "required": true
            }
          ],
          "expect": [
            {
              "name": "spreadsheetId",
              "type": "select",
              "label": "Spreadsheet ID"
            },
            {
              "name": "sheetId",
              "type": "select",
              "label": "Sheet Name"
            },
            {
              "name": "values",
              "type": "collection",
              "label": "Values"
            }
          ]
        }
      },
      {
        "id": 5,
        "module": "slack:CreateMessage",
        "version": 4,
        "parameters": {
          "__IMTCONN__": 1002
        },
        "mapper": {
          "channel": "orders",
          "text": "New order from {{42.customer_name}}: {{3.sku}} x {{3.quantity}}",
          "parse": false
        },
        "metadata": {
          "designer": {
            "x": 1200,
            "y": 0
          },
          "parameters": [
            {
              "name": "__IMTCONN__",
              "type": "account:slack",
              "label": "Connection",
              "required": true
            }
          ],
          "expect": [
            {
              "name": "channel",
              "type": "text",
              "label": "Channel"
            },
            {
              "name": "text",
              "type": "text",
              "label": "Text"
            }
          ]
        }
      },
      {
        "id": 6,
        "module": "builtin:BasicRouter",
        "version": 1,
        "parameters": {},
        "mapper": null,
        "metadata": {
          "designer": {
            "x": 1500,
            "y": 0
          }
        },
        "routes": [
          {
            "flow": [
              {
                "id": 7,
                "module": "google-email:ActionSendEmail",
                "version": 7,
                "parameters": {
                  "account": 1003,
                  "saveAsDraft": false
                },
                "filter": {
                  "name": "Has email",
                  "conditions": [
                    [
                      {
                        "a": "{{1.customer.email}}",
                        "o": "exist"
                      }
                    ]
                  ]
                },
                "mapper": {
                  "to": [
                    "{{1.customer.email}}"
                  ],
                  "subject": "Order confirmed",
                  "contentType": "text",
                  "text": "Thanks for your order of {{3.sku}}."
                },
                "metadata": {
                  "designer": {
                    "x": 1800,
                    "y": 0
                  },
                  "parameters": [
                    {
                      "name": "account",
                      "type": "account:google-restricted",
                      "label": "Connection",
                      "required": true
                    },
                    {
                      "name": "saveAsDraft",
                      "type": "boolean",
                      "label": "Save as draft"
                    }
                  ],
                  "expect": [
                    {
                      "name": "to",
                      "type": "array",
                      "label": "To"
                    },
                    {
                      "name": "subject",
                      "type": "text",
                      "label": "Subject"
                    }
                  ]
                }
              }
            ]
          }
        ]
      }
    ],
    "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"
    }
  },
  "blueprintUrls": [],
  "makeZone": "eu1",
  "teamIds": [],
  "scenarioIds": [],
  "activeOnly": false,
  "ruleSet": "correctness",
  "minSeverity": "low",
  "ignoreRules": [],
  "costPer1kOperations": 1.8,
  "includeReport": false
}
```

## Output

```json
{
  "severity": {
    "label": "Severity",
    "format": "string"
  },
  "estimatedMonthlyOpsWasted": {
    "label": "Ops wasted / month",
    "format": "number"
  },
  "estimatedMonthlySavingsUsd": {
    "label": "Savings / month (USD)",
    "format": "number"
  },
  "costConfidence": {
    "label": "Cost confidence",
    "format": "string"
  },
  "rule": {
    "label": "Rule",
    "format": "string"
  },
  "ruleTitle": {
    "label": "Finding",
    "format": "string"
  },
  "category": {
    "label": "Category",
    "format": "string"
  },
  "scenarioName": {
    "label": "Scenario",
    "format": "string"
  },
  "moduleType": {
    "label": "Module",
    "format": "string"
  },
  "moduleId": {
    "label": "Module id",
    "format": "integer"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "remediation": {
    "label": "Remediation",
    "format": "string"
  },
  "evidence": {
    "label": "Evidence",
    "format": "string"
  },
  "parameterPath": {
    "label": "Field",
    "format": "string"
  },
  "opsMultiplier": {
    "label": "Runs per bundle",
    "format": "integer"
  },
  "costMethod": {
    "label": "How it was priced",
    "format": "string"
  },
  "docsUrl": {
    "label": "Docs",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Make.com Scenario Auditor - Linter & Cost Review](https://apify.com/mediocre_interest/make-scenario-auditor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mediocre_interest/make-scenario-auditor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/mediocre_interest/make-scenario-auditor.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
