I am try to run a flow that go in a Custom AI Agents (Gemini) and ask specific instruction to return a valid JSON without any other text. I even try to remove the characters that my module output are returning me.
I try everything that i could, but can’t find a solution. I also have try to add instruction everywhere in my Agent and the formula to manually remove it but nothing work.
These are markdown wrappers that agent is adding, you can specifically ask it not to do this in message/thread, something like: “your entire response/output is going to consist of a single JSON object {}, DO NOT wrap it in JSON markdown markers”
You could also consider calling Gemini agent through API, it will not have the convenience of Make.com agents but might give you additional tool options to force output format (I know openAI assistants have this, I’m not sure for Gemini)
You can also remove markdown wrappers manually, also see previous post: