OpenAI functions correctly, but Google Gemini does not. It fails to return any data, regardless of the configuration.
It appears others are encountering a similar issue. You can see the discussion here: see
The primary challenge seems to be parsing the response from Gemini. In this scenario, the goal was to obtain a JSON formatted result, but Gemini returned it with extraneous symbols and text. For more details, please refer to the topic. If you can provide JavaScript code to parse the Gemini response, similar to this example, I can then record all JSON data into Google Sheets with proper mapping.
If my reply solves your problem, please remember to mark it as a solution.
I have found the SOLUTION!
I have found the SOLUTION!
After struggling with this issue, I finally figured it out! When you add a tool (like Google Docs) to your AI agent in callin.io, the Google Gemini Chat Model requires at least one dynamic parameter to function properly. That means you need to define an input field using the $fromAI()
function so that Gemini can dynamically generate values during execution.
But here’s the catch—tool naming matters a lot! If your tool’s name has spaces or special characters, Gemini won’t recognize it properly. It treats the tool as a function, and function names need to follow strict rules.
Hello, I'm encountering the same problem. Could you please clarify what you mean by “chatInput”?