Google Calendar Node: Persistent “Bad request” with AI Agent (Self-Hosted/Docker) due to possible field corruption
Environment
n8n Version: 1.109.2 (or whatever is shown in your settings)
Running n8n via: Docker (Self-Hosted)
Node in Question: Google Calendar (Create Event)
Problem Description
I am experiencing a persistent ERROR: Bad request - please check your parameters when using the Google Calendar node as a Tool for the AI Agent, despite all parameters being visibly correct and the Google Credential being successfully re-authorized.
The issue appears to be a bug in how the node handles the Calendar ID field, potentially corrupting the JSON payload sent to Google.
Steps to Reproduce (Minimal Workflow)
Create a workflow with an AI Agent connected to a Google Calendar node (Operation: Create Event).
In the Google Calendar node, set the Calendar field to By ID and input the primary email address ([email protected]).
Set Start and End to Defined automatically by the model (or using the Expression {{ $json.start }}).
Execute the workflow by asking the AI Agent to book a simple event (e.g., “Book a meeting for 1pm”).
Observed Behavior (The Bug)
Error Message: The Google Calendar node consistently returns ERROR: Bad request - please check your parameters.
Field Inconsistency/Corruption: The Calendar ID input field seems corrupted. Even when manually set to By ID (Fixed mode), the field’s label will often switch to display “From list” next to the email address. This suggests the node is sending the Calendar ID as an Array (a list) to the Google API instead of a simple String, which causes the “Bad request” error.
No Fixes Worked: The error persists even after:
Deleting and recreating the Google Calendar credential.
Deleting and recreating the entire Google Calendar node.
Explicitly forcing a valid Summary/Title.
Adding the Timezone field (set to Fixed: UTC) to satisfy Google’s API requirement.
Expected Behavior
The workflow should successfully create the event on the specified calendar using the input from the AI Agent. The Calendar ID field should correctly remain set to “By ID” when a single email address is entered.
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: