Hey guys, I've hit a wall. Building a scheduling agent in n8n. I pass a schedule created in Google Sheets that adheres to a specific format our client needs. The agent analyzes the schedule and creates Google Calendar events following guidance in the prompt.
So far, the Agent is doing its job well, passing individual runs (in this case, 5) to the Google Calendar tool node for each event. The trouble comes from the tool node creating 5 individual events reflecting the data of just the first run. So if the agent creates 8 individual events based on the schedule, the Google Calendar Tool creates the first event 8 times.
I've also tried having the agent output a flat array of the events for a downstream Google Calendar node to process, but no matter how much guidance I give it, it always embeds the flat array behind additional nested parameters. So I'd say you just need a node to parse out that embedded array into a flat array, but the Agent doesn't give the exact same names to the parameters each time.
How would you guys approach this?