Calendar hallucinations

I need and is returning wrong times for some of my appointments. Not all of them in a day, just two or three of them seem to be off by a few hours, which makes it unusable.

No error message just incorrect appointment. Start times and end times.

{
“nodes”: [
{
“parameters”: {
“promptType”: “define”,
“text”: “={{ $json.query }}”,
“options”: {
“systemMessage”: “=You are a calendar assistant. You have access to multiple tools to take any action within calendar. Here is the current date/time: {{ $now }}\n\nBefore making an appointment, chweck the list of calendar events and do not offer any conflicting times. Confirm the details with the user before creating the event. Double check the availability of the calendar to make sure there are no over bookings\n\nCreate Event:\nIf an end date isn’t specified for the event, assume it will be 60 minutes long. Use this tool if there is no attendee specified.\n\nCreate Event with Attendee:\nIf an end date isn’t specified for the event, assume it will be 60 minutes long. Use this tool WHEN AN ATTENDEE IS SPECIFIED.\n\nGet Events:\nUse this tool to get events from a certain day and summarize them. \n\nUpdate Events:\nUse this tool when you have a specific appointment to update.”
}
},
“id”: “95b67471-3783-48b8-bb86-35923954ff38”,
“name”: “Calendar Agent”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 1.6,
“position”: [
-760,
140
],
“onError”: “continueErrorOutput”
}
],
“connections”: {
“Calendar Agent”: {
“main”: [
,

]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “d50ae9164ab3b3fbd3a4986b8409f1d4cf3572c019e3a46f2953720743860f6a”
}
}

Share the output returned by the last node

Here’s your schedule for February 28, 2025:\n\n1. Gabe’s going nuts\n - Time: 9:00 AM - 10:00 AM (EST)\n\n2. Caps and chores\n - Time: 8:00 AM - 10:00 AM (EST)\n\n3. CONVENTIONS\n - Time: 10:00 AM - 12:00 PM (EST)\n\nLet me know if there’s anything else I can assist you with!

Information on your n8n setup

1.78.1

  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via n8n cloud,
  • Operating system:
  • Mac OS

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:

umm, i think its all there!

What do you mean by “wrong times”. The AI Agent does not understand the time given by the user?

Or is it the Agent skipping the step to check the existing calendar, as I see there is at least one double booking.

The prompt may need more work to be much more explicit in the steps to take and the detail of the tools.

Are you able to check the execution logs to check where it is going wrong or not acting as expected?

Thanks for the quick reply! You could check in the output in the screenshot that one of the appointments is being reported at a different time. Yeah, I’ve edited the prompt a little bit from the YouTube one I got, but I suppose if that’s the issue I’m wondering if there’s a good prompt for a calendar to avoid double bookings and making sure that the times are actually accurate?

Not the final result of the Workflow. I mean the Workflow Execution logs.

So you can see the logs of what the AI calls are doing. From that it should be much more helpful to see the process of the LLM logs and what it is thinking and doing.

But for the prompt I would suggest adding more detail. e.g. To create an event you need to first have all the events on the current calendar. Using the current calendar events, work out the soonest time available to book the event etc.

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