Connect Google Calendar to your Wiro AI agent
Check availability and book, move or cancel events in a Google Calendar.
Overview
What Google Calendar does for your agent
Acts as a Google Cloud service account on the one calendar you share with it and name by its Calendar ID. The agent finds open slots of your default length inside your opening hours, lists and reads events, and books, moves, cancels or deletes them, with repeat rules and reminders where needed. Google does not let a service account invite guests, so attendees are added in Google Calendar itself and stay on the event when the agent changes it.
Use cases
What your Wiro agent can do with Google Calendar
- 01
Offer open slots and book the appointment
When a customer asks for a time, the agent reads the calendar's busy times, offers open slots of your default length within your opening hours, and books the one they pick as an event with their name, phone number and service in the description. Opening hours default to weekdays from 9:00 to 18:00, and you can give it others.
- 02
Move or cancel a booking on request
A customer writes that Thursday no longer works. The agent finds their event, offers the next free slots and moves it, or cancels it if they ask, then confirms the new time in the conversation. For an event with guests you added in Google Calendar, it can send them an update email.
- 03
Today's agenda every morning
Each morning at 7:30, a Scheduled Task lists the day's events in Chat with times, locations and the notes in each description, plus the open gaps where a walk-in or a call still fits.
- 04
Block time off and repeating hours
Ask the agent to block every Friday afternoon for admin work or mark a holiday week as closed. It creates the events, with a repeat rule where needed, so the free slot search and any booking the agent makes treat that time as taken.
- 05
A weekly look at how full the calendar was
On Monday mornings, a Scheduled Task tallies the previous week's appointments, grouped by the service named in each title, adds up the hours that stayed free inside opening hours, and posts both in Chat so you can decide where to add or cut availability.
How it works
How Google Calendar works with Wiro
- 01
Connect Google Calendar
Deploy an agent, open its Connectors tab, choose Google Calendar and paste what the Connect dialog asks for.
- 02
Choose what each action may do
Set each Google Calendar action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for Google Calendar work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to Google Calendar.
- Where its data goes
www.googleapis.comoauth2.googleapis.com - How it signs inPaste a key. It is stored encrypted and never shown again.
Find 45 minutes on Thursday afternoon for a color consultation with Jonah Reyes and book the first free slot.
Thursday afternoon is mostly booked, with three 45-minute slots still free: 13:00, 14:15 and 16:30. You approved the first one, and it is now on the calendar as Color consultation, Jonah Reyes, Thursday 13:00 to 13:45, with the calendar's usual reminders. 14:15 and 16:30 stay open.
What it can do
Actions your Wiro agent can take in Google Calendar
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 5 actions
Looks things up in Google Calendar and changes nothing.
Get the Google Calendar calendar
Returns the connected calendar: its ID, name, description and time zone, with the connection's time zone and default slot length.
Chat AllowScheduled Tasks Allow
Find free Google Calendar slots
Finds open appointment slots on the connected calendar: it reads the busy times (free/busy) between start and end.
Chat AllowScheduled Tasks Allow
List Google Calendar events
Lists the events on the connected calendar.
Chat AllowScheduled Tasks Allow
Get a Google Calendar event
Returns one event of the connected calendar by its id: title, times, description, location, guests and their answers, reminders, status and link.
Chat AllowScheduled Tasks Allow
Read other Google Calendar data
Reads what the actions above do not cover, straight from the Google Calendar API.
Chat AllowScheduled Tasks Allow
Create and send 1 action
Creates or sends something new in Google Calendar, such as a post, a message or an email.
Create a Google Calendar event
Creates an event on the connected calendar, such as a booked appointment: title, start and end, description, location, reminders, repeat rules, color and private tags.
Chat AskScheduled Tasks Allow
Change and delete 3 actions
Changes or deletes what is already in Google Calendar.
Update a Google Calendar event
Changes an event of the connected calendar.
Chat AskScheduled Tasks Allow
Delete a Google Calendar event
Deletes an event from the connected calendar.
Chat AskScheduled Tasks Allow
Make other Google Calendar changes
Sends any other change straight to the Google Calendar API.
Chat AskScheduled Tasks Allow
How to connect
Connect Google Calendar to Wiro
Open the agent's Connectors tab, choose Google Calendar and paste what it asks for. Values are stored encrypted and never shown again.
What the Connect dialog asks for
| Field | About |
|---|---|
| Service Account JSONRequired |
|
| Calendar IDRequired | Which calendar the agent reads and writes events on.
Find the ID in Google Calendar → ⚙️ Settings → pick the calendar → scroll to Integrate calendar → Calendar ID. |
| TimezoneOptional | IANA timezone identifier, used by the agent for slot suggestions, reminders and event creation. Examples: Full list: IANA tz database. |
| Default slot length (minutes)Optional | Default appointment length in minutes, used when the agent offers callers available time slots. Common values: |
Troubleshooting
Troubleshooting Google Calendar
What to check when Google Calendar stops working for your agent.
- An invalid or expired key If Google Calendar refuses the key, for example after it was deleted or expired, the agent's Google Calendar actions fail. Create a new key in Google Calendar, then open the agent's Connectors tab, choose Google Calendar and paste it in place of the old one.
- Limits set by Google Calendar Google Calendar limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Google Calendar plan.
For developers
Connect Google Calendar from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "google-calendar" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "google-calendar", "title": "Google Calendar", "category": "productivity", "authtype": "fields", "credentialfields": [ { "name": "serviceaccountjson", "label": "Service Account JSON", "required": true, "secret": true, "format": "json" }, { "name": "calendarid", "label": "Calendar ID", "required": true, "secret": true, "format": "password" }, { "name": "timezone", "label": "Timezone", "required": false, "secret": false, "format": "text" }, { "name": "slotdurationminutes", "label": "Default slot length (minutes)", "required": false, "secret": false, "format": "text" } ], "tools": [ { "name": "get_calendar", "readonly": true }, { "name": "find_free_slots", "readonly": true } ] } ] } - 02
Connect with the values
Send what the person typed in your form. A value you leave out keeps what the connection holds; an empty one clears it.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "google-calendar", "values": { "serviceaccountjson": "{ ...the whole JSON file... }", "calendarid": "YOUR_SECRET", "timezone": "YOUR_TIMEZONE", "slotdurationminutes": "YOUR_SLOTDURATIONMINUTES" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 03
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "google-calendar", "title": "Google Calendar", "authtype": "fields", "status": "connected", "accounts": {}, "savedvariables": [ "calendarid", "serviceaccountjson", "slotdurationminutes", "timezone" ], "lasterror": null } ] } - 04
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "google-calendar" }Response { "result": true, "errors": [], "removed": true, "revoked": false, "restart": "scheduled" }
Questions
Google Calendar and Wiro FAQ
What can a Google Calendar AI agent do with this connector?
It reads the connected calendar, finds free appointment slots inside your opening hours, lists and reads events, and creates, moves, updates, cancels or deletes them, including repeating events, reminders and colors. It works on the one calendar whose ID you enter. Google does not let a service account invite guests, so guests are added in Google Calendar itself, and they stay on the event when the agent changes it.
How do I connect Google Calendar to an AI agent?
In Google Cloud Console, create a service account, add a JSON key for it and enable the Google Calendar API in the same project. In Google Calendar, share the calendar with the service account's email and choose Make changes to events. Then upload the JSON file on your agent's Connectors tab, enter the Calendar ID, and add your time zone and default slot length if you like. Asking for Google Calendar in Chat starts the same setup.
Google says service account key creation is disabled. What now?
Google Cloud organizations created on or after May 3, 2024 block service account keys by default. An organization policy administrator can allow keys for the project you use by changing the Disable service account key creation policy for that project. Projects outside an organization, made with a personal Google account, do not have this policy.
Does the agent book or cancel events without asking?
In Chat, creating, changing and deleting events wait for approval by default, while reading the calendar does not. If the agent books for customers, set event creation to Allow so it can confirm a slot while they wait. Scheduled Tasks carry out those actions on their own until an action is set to Ask or Block, and Chat and Scheduled Tasks each keep their own setting for every action.
Where is my service account key stored?
The JSON key is encrypted, cannot be viewed after upload, and is never passed to the AI model. The service account reaches only calendars shared with it, and the connector uses the one Calendar ID you entered. To take access back, delete the key in Google Cloud Console or remove the service account from the calendar's sharing settings, then disconnect on the Connectors tab.
What does Google Calendar access cost, and are there limits?
Connectors add nothing to the price of an agent plan. Google applies its Calendar API usage limits to your Cloud project, and the standard tier every project starts on has no charge. A free slot search covers up to 62 days at a time, and if Google reports a usage limit, waiting a minute is usually enough.
Is there a Google Calendar MCP server to set up?
No. The agent itself calls the Google Calendar API, signed in as your service account, so nothing needs installing. You can automate Google Calendar work with Scheduled Tasks, such as a morning agenda or a weekly count of booked hours.
Access
Revoke Google Calendar access
In Google Cloud console, open IAM & Admin → Service accounts, open the service account and delete the key under Keys (or disable or delete the service account). To take back one calendar, remove the service account under Share with specific people or groups in that calendar's settings. Then disconnect it here.
Related connectors
More productivity connectors for your Wiro agent
Put Google Calendar to work with Wiro
Deploy an agent and connect Google Calendar from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.