agentusecasesAll 965 use cases
Life Admin & Home

Turn chat messages into Google Calendar events

An n8n calendar agent takes a chat message, extracts event title, location and times, and creates a Google Calendar entry.

Done withn8n

What they did
The tutorial builds an n8n workflow with a chat trigger, an AI Agent node on an OpenAI chat model, and a Google Calendar node. The prompt tells the agent to resolve relative dates against the current time and default to 60 minutes. The agent calls a Date & Time tool to produce Unix timestamps, then returns structured JSON. Those fields are mapped into a calendar event.
How it went
The article says the workflow creates events, and the Google Calendar node returns an htmlLink to the new event. It shows no test results, accuracy figures or failure cases.
Worth knowing
Setup uses n8n's free OpenAI credits, a Google OAuth2 sign-in, and a free n8n cloud trial or self-hosting. A public chat URL lets others book events on your calendar.

Try it yourself with n8n

Build me an n8n workflow that takes a chat message like 'Dinner with [person] at [place] on [day] at [time]' and extracts the event title, location, start and end times. Have it create an event in my [Google Calendar name] and reply in the chat with the details. If the time or date is missing or ambiguous, have it ask me before creating anything, and stop once a test message produces a correct event.

Read the original ↗

Source: freecodecamp.org · Undated

Five of these in your inbox every morning

The best things people got an AI agent to do, each with the prompt to try it.

More like this