Module issue or my mistake?

:bullseye: What is your goal?

Fix issue with End Date - currently ai agent is searching events past set function limit

:thinking: What is the problem & what have you tried?

Can ai agents override the settings (functions) inside the module? I use this function for End Date in Google Calendar Search Events module: {{addDays(now; 7)}} and my agent just went on looking past the 7 day from now limit. ??

Hey, can you check your scenario execution history and see if the AI Agent is running the Google Calendar module more than once? Click into the execution and look at what dates are actually being sent to the API.

If it’s running multiple times, the agent is probably re-executing because it thinks it needs more data based on the user’s request. You’d need to add stricter instructions to the agent telling it to stay within 7 days no matter what.

If it’s only running once, then the events probably START within your 7 day window but END after it. That’s just how the Calendar API works. You can add a filter after the module to block those if you don’t want them.

What are you seeing in the logs when it runs?

Thanks Charles, I think I answered my own question. Yes agent will override a module setting:

The system prompt for the ai agent has instructions to limit bookings to only the next two weeks (14days).

In the Google Calendar Search Events module the End Date function is set to {{addDays(now; 7)}}

When I ask the agent to book for the 28th (10 days from ‘now’) Google Calendar Search Events Scenario executed correctly, only returning dates less than 7 days from ‘now’:

Output the agent saw:
{
“Event_ID”: “_ccr6apj568omacr174qj8chm7dgg”,
“bookingtime”: “28th at 3pm”,
“BusyTimeSlots”: “Start: January 20, 2026 11:30 AM End: January 20, 2026 12:15 PM \n\nStart: January 21, 2026 7:15 AM End: January 21, 2026 8:15 AM \n”
}

Agent’s response: “The requested time slot 28th at 3pm is available for booking.”
So, yes, I suppose the agent looks at this information and just ignores it - this makes sense since it was told it can book 14 days out.