What is your goal?
I’m building an AI Agent (Central Order Desk) that uses a Make Code (Python) module as a tool. The agent should pass values like qty, unitPrice, leadTime, etc. to the Code module, which then runs fixed calculations (net/gross totals, delivery date checks) and returns the results.
My question: How do you properly pass AI Agent inputs to Make Code variables? Is there a specific configuration or workaround that makes the agent’s JSON payload accessible via input.get(“variableName”)?
What is the problem & what have you tried?
The Make Code module requires at least one input variable. Each variable has a Name and a Value field. The problem: when used as an AI Agent tool, the Value fields don’t offer a “Let AI Agent decide” option – unlike other modules (e.g. SeaTable’s SQL Query field).
What I’ve tried:
- 7 variables with empty Values → Code receives None for all variables → int(None) crashes
- Typed “Let AI Agent decide” as text in the Value fields → Code tries int(“Let AI Agent decide”) → crashes
- Deleted all variables → Module requires at least one variable
Error messages or input/output bundles
The agent correctly sends the JSON payload (visible in the tool call logs):
{
“qty”: 5,
“unitPrice”: 138,
“wishDate”: “”,
“leadTime”: 21,
“bestandIst”: 0,
“reservedQty”: 10,
“plannedBatches”: [{“PlannedDate”: “2026-03-28”, “BatchSize”: 50, “Status”: “In Production”}]
}
But the Code module never receives these values in the input object.
Error messages or input/output bundles
{
“type”: “SandboxCodeExecutionError”,
“message”: “Code execution failed: invalid literal for int() with base 10: ‘Let AI Agent decide’”
}
and when Values are empty:
{
“result”: {
“error”: true,
“message”: “qty und unitPrice muessen groesser 0 sein. Erhaltene Werte: qty=None, unitPrice=None”
}
}


