What is your goal?
- I receive a Mindee response (module 29) containing a transactions array:
29.data.inference.result.fields.transactions - I set a variable (Tools → Set variable) called transactions_json using:
toJSON(29.data.inference.result.fields.transactions) - I pass that into my OpenAI request content inside messages.
What is the problem & what have you tried?
As soon as I map the Make variable into the JSON request body, the OpenAI request fails with “invalid JSON”.
Request content currently looks like this in Make (simplified):
{
“model”: “gpt-4.1-mini”,
“temperature”: 0,
“response_format”: { “type”: “json_object” },
“messages”: [
{ “role”: “system”, “content”: “…” },
{ “role”: “user”, “content”: “…” },
{ “role”: “user”, “content”: “TRANSACTIONS_JSON:\n<Make mapped variable: 48.transactions_json>” }
]
}
What’s the correct way in Make to embed a mapped JSON string / array into an HTTP Raw JSON body so the final payload remains valid JSON?
Do I need to:
escape quotes/newlines differently?
use a different module (HTTP v2 / OpenAI module)?
build the body with Create JSON / Compose a JSON first rather than Raw?
or use parseJSON() + send it as an actual array (not a string)?
If helpful, I can paste the exact “Input” payload Make shows under the module run.
Error messages or input/output bundles
Screenshot 2026-01-24 at 21.38.48





