Scheduled trigger and Ai agent

im using a scheduled trigger node to trigger an AI agent which simply has to send the daily events from google calendar. When I test the workflow it works perfectly however when activated and schedules to run everyday at 7am I get this error:

“Bad request - please check your parameters
We could not parse the JSON body of your request. (HINT: This likely means you aren’t using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)”

When I use google chat model I get “Bad request - please check your parameters” as well.

when I check the executions tab and debug in editor with no changes run it again it works perfectly. Any assistance why this happens would be great.

Information on your n8n setup

  • n8n version: - 1.78.1
  • Database (default: SQLite): - default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): deployed on railway
  • Operating system: win 11
1 Like

i get the same issue, it normally works


The problem is probably here:

Intead of using the predefined setting, use the $fromAI function

  • Documentation here :point_left:

If my reply solves your problem, please remember to mark it as a solution.

thanks for the suggestion - i will change I back to the from ai function, it was like that before the update came out. I will give it a go

1 Like

Unfortunately there is still the same issue.

Hey @RubenG,

Is the problem in the Google Calendar tool or another tool?

There has been some fixes to the “Call another workflow” tool that were fixed in version 1.80.4

If that’s your case, please try upgrading.

Im not sure which one is causing the issue. I not using the call another workflow tool in this instance only the calendar tool.

I think it might have been a bug fixed with an update. It suddenly started working this morning without any changes. Thanks for the advice.

1 Like

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