{
  "tool_id": "marketing_budget_allocator",
  "slug": "marketing-budget-allocator",
  "path": "/marketing-budget-allocator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aibizhub.io/marketing-budget-allocator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aibizhub.io/engines/marketing-budget-allocator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aibizhub.io/methodology/marketing-budget-allocator/",
  "sample_input": {
    "tool": "marketing_budget_allocator",
    "total_budget": 10000,
    "channels": [
      {
        "name": "Google Ads",
        "allocation_percent": 50,
        "expected_roas": 4
      },
      {
        "name": "Content + SEO",
        "allocation_percent": 30,
        "expected_roas": 3
      },
      {
        "name": "Partnerships",
        "allocation_percent": 20,
        "expected_roas": 5
      }
    ]
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "total_budget": {
        "type": "number"
      },
      "channels": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "allocation_percent": {
              "type": "number"
            },
            "expected_roas": {
              "type": "number"
            }
          },
          "required": [
            "name",
            "allocation_percent"
          ]
        }
      }
    },
    "required": [
      "tool",
      "total_budget",
      "channels"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "channels": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "allocationPercent": {
              "type": "integer"
            },
            "budgetAmount": {
              "type": "integer"
            },
            "expectedRevenue": {
              "type": "integer"
            }
          }
        }
      },
      "totalAllocated": {
        "type": "integer"
      },
      "totalExpectedRevenue": {
        "type": "integer"
      },
      "blendedRoas": {
        "type": "number"
      }
    }
  }
}
