Enable your agents to manage calendar events, schedules, and availability through Google Calendar. Create and update events, manage attendees, check availability, and streamline your scheduling workflows with AI-powered automation.
startTime (string, required): Start time - Accepts Unix timestamp or ISO8601 date formats.
endTime (string, optional): End time - Defaults to one hour after the start time if left blank.
calendar (string, optional): Calendar - Use Connect Portal Workflow Settings to allow users to select which calendar the event will be added to. Defaults to the user’s primary calendar if left blank.
attendees (string, optional): Attendees - Accepts an array of email addresses or email addresses separated by commas.
eventId (string, optional): Event ID - An ID from your application to associate this event with. You can use this ID to sync updates to this event later.
includeMeetLink (boolean, optional): Include Google Meet link? - Automatically creates Google Meet conference link for this event.
Description: Update an existing event in Google Calendar.
Parameters:
eventId (string, required): Event ID - The ID of the event to update.
eventName (string, optional): Event name.
startTime (string, optional): Start time - Accepts Unix timestamp or ISO8601 date formats.
endTime (string, optional): End time - Defaults to one hour after the start time if left blank.
calendar (string, optional): Calendar - Use Connect Portal Workflow Settings to allow users to select which calendar the event will be added to. Defaults to the user’s primary calendar if left blank.
attendees (string, optional): Attendees - Accepts an array of email addresses or email addresses separated by commas.
calendar (string, optional): Calendar - Use Connect Portal Workflow Settings to allow users to select which calendar the event will be added to. Defaults to the user’s primary calendar if left blank.
after (string, optional): After - Filters events that start after the provided date (Unix in milliseconds or ISO timestamp). (example: “2025-04-12T10:00:00Z or 1712908800000”).
before (string, optional): Before - Filters events that end before the provided date (Unix in milliseconds or ISO timestamp). (example: “2025-04-12T10:00:00Z or 1712908800000”).
Description: Get a specific event by ID from Google Calendar.
Parameters:
eventId (string, required): Event ID.
calendar (string, optional): Calendar - Use Connect Portal Workflow Settings to allow users to select which calendar the event will be added to. Defaults to the user’s primary calendar if left blank.
Description: Delete an event from Google Calendar.
Parameters:
eventId (string, required): Event ID - The ID of the calendar event to be deleted.
calendar (string, optional): Calendar - Use Connect Portal Workflow Settings to allow users to select which calendar the event will be added to. Defaults to the user’s primary calendar if left blank.
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseTools# Get enterprise tools (Google Calendar tools will be included)enterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")# Create an agent with Google Calendar capabilitiescalendar_agent = Agent( role="Schedule Manager", goal="Manage calendar events and scheduling efficiently", backstory="An AI assistant specialized in calendar management and scheduling coordination.", tools=[enterprise_tools])# Task to create a meetingcreate_meeting_task = Task( description="Create a team standup meeting for tomorrow at 9 AM with the development team", agent=calendar_agent, expected_output="Meeting created successfully with Google Meet link")# Run the taskcrew = Crew( agents=[calendar_agent], tasks=[create_meeting_task])crew.kickoff()
from crewai_tools import CrewaiEnterpriseTools# Get only specific Google Calendar toolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token", actions_list=["google_calendar_create_event", "google_calendar_list_events", "google_calendar_get_availability"])meeting_coordinator = Agent( role="Meeting Coordinator", goal="Coordinate meetings and check availability", backstory="An AI assistant that focuses on meeting scheduling and availability management.", tools=enterprise_tools)# Task to schedule a meeting with availability checkschedule_meeting = Task( description="Check availability for next week and schedule a project review meeting with stakeholders", agent=meeting_coordinator, expected_output="Meeting scheduled after checking availability of all participants")crew = Crew( agents=[meeting_coordinator], tasks=[schedule_meeting])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")event_manager = Agent( role="Event Manager", goal="Manage and update calendar events efficiently", backstory="An experienced event manager who handles event logistics and updates.", tools=[enterprise_tools])# Task to manage event updatesevent_management = Task( description=""" 1. List all events for this week 2. Update any events that need location changes to include video conference links 3. Send calendar invitations to new team members for recurring meetings """, agent=event_manager, expected_output="Weekly events updated with proper locations and new attendees added")crew = Crew( agents=[event_manager], tasks=[event_management])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")availability_coordinator = Agent( role="Availability Coordinator", goal="Coordinate availability and manage contacts for scheduling", backstory="An AI assistant that specializes in availability management and contact coordination.", tools=[enterprise_tools])# Task to coordinate availabilityavailability_task = Task( description=""" 1. Search for contacts in the engineering department 2. Check availability for all engineers next Friday afternoon 3. Create a team meeting for the first available 2-hour slot 4. Include Google Meet link and send invitations """, agent=availability_coordinator, expected_output="Team meeting scheduled based on availability with all engineers invited")crew = Crew( agents=[availability_coordinator], tasks=[availability_task])crew.kickoff()
from crewai import Agent, Task, Crewfrom crewai_tools import CrewaiEnterpriseToolsenterprise_tools = CrewaiEnterpriseTools( enterprise_token="your_enterprise_token")scheduling_automator = Agent( role="Scheduling Automator", goal="Automate scheduling workflows and calendar management", backstory="An AI assistant that automates complex scheduling scenarios and calendar workflows.", tools=[enterprise_tools])# Complex scheduling automation taskautomation_task = Task( description=""" 1. List all upcoming events for the next two weeks 2. Identify any scheduling conflicts or back-to-back meetings 3. Suggest optimal meeting times by checking availability 4. Create buffer time between meetings where needed 5. Update event descriptions with agenda items and meeting links """, agent=scheduling_automator, expected_output="Calendar optimized with resolved conflicts, buffer times, and updated meeting details")crew = Crew( agents=[scheduling_automator], tasks=[automation_task])crew.kickoff()