Bad request - please check your parameters ([GoogleGenerativeAI Error]:

Information on your n8n setup

  • n8n version: 1.74.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Chrome
  • Operating system: Windows 11

I am facing an issue with the AI Agent, where I am integrating a Gemini chat model + AI agent + memory buffer + Google Calendar.
When I connect the Google Calendar node, it throws the following error:

Issues:

Bad request - please check your parameters ([GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash-exp:streamGenerateContent?alt=sse: [400 Bad Request] * GenerateContentRequest.tools[0].function_declarations[0].name: Invalid function name. Must start with a letter or an underscore. Must be alphameric (a-z, A-Z, 0-9), underscores (_), dots (.) or dashes (-), with a maximum length of 64. )
Execution Error.

Without connecting the Google Calendar node, it works normally.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.