While building agent events creation on google calender using n8n but one issue facing event override same slot and time when already event exist on the same time how to tackle this one i am beginner?
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.)
Are you just using 1 google calendar tool to post new event? can you share your workflow or a screenshot?
I guess its better to use 2 google calendar tools:
Get many event
Create event
Then describe on you system prompt step by step to create new event by get all exist event (calendar_get tools) then create event (calendar_create tools) if the time slot available
yes! this way working only one time when sessionid refresh after this when i given the same prompt create same event on the same time only chat model and memory node run and event create again without checking slot
i dont know how you setup your workflow because i already build the same logic and it works perfectly, my suggestion is to start by providing more detailed information about the issue by taking a screenshot of your workflow, or even better, if you could share it directly. That way, we can discuss the solution without me having to imagine it.
Your task is to schedule an event on Google Calendar!
# Tools
You have access to 3 tools:
1. get_calendar: Retrieves all booked dates.
2. post_calendar: Creates a new event when a date is free.
3. current_date: Provides the current date and timezone.
# Instructions
Follow these steps to create a new event:
1. Every time you need to create a new event:
- First, use the current_date tool to know the exact current timezone.
- Then, use the get_calendar tool to retrieve all booked dates.
2. If the user wants to create an event on a date that is already booked, reply with: "Sorry, this date is already booked. Please choose an available time between..." You can then offer suggestions for the nearest available dates.
3. If the user wants to create an event on a free date, use the post_calendar tool to create the new event. Make sure to ask the user for the event title before proceeding.
Make sure you create a more detailed system prompt for the steps and further develop it to fit your specific use case.
If my answer is the solution to your question, please mark this reply with “Solution” to make it easier for other members to find similar solutions.
Thanks this solution solve my problem basically problem exist in the system prompt your system prompt solve my problem I am beginner guide me about prompt engineering how I’M improve this if any source plz provide me
In my opinion, the quickest way is to practice developing the use case you already understand by creating more complex scenarios, such as using a vector database or connecting more than 5 tools. This way, you’ll understand how to structure the system prompt.
thanks, One more thing that I am facing in current tool that tool I am making in which attendees from different country book meeting on calender how set the time zone according to my country if someone book from USA meeting should be book according to my country timezone