Cancelar reuniones y reprogramar
Esta automatización cancela reuniones de tu calendario por el periodo indicado. Automáticamente envía un email formal a todos los participantes para notificarles y proponer una reagendación.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
ChatInput-pe90x[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Input]
style ChatInput-pe90x stroke:#a170ff
ChatOutput-yqlkv[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-yqlkv stroke:#a170ff
googlecalendarcomponent-z17kk[Delete Meetings]
style googlecalendarcomponent-z17kk stroke:#a170ff
GmailMesageComponent-6bkp5[<div><img src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div>Google Gmail Message]
style GmailMesageComponent-6bkp5 stroke:#a170ff
googlecalendarcomponent-row0d[Get Meetings]
style googlecalendarcomponent-row0d stroke:#a170ff
GoogleGenerativeAIModel-gedou[Gemini]
style GoogleGenerativeAIModel-gedou stroke:#a170ff
AdvancedAgent-tb9b3[Agent2]
style AdvancedAgent-tb9b3 stroke:#a170ff
ChatInput-pe90x -.- AdvancedAgent-tb9b3
linkStyle 0 stroke:#a170ff
AdvancedAgent-tb9b3 -.- ChatOutput-yqlkv
linkStyle 1 stroke:#a170ff
googlecalendarcomponent-z17kk -.- AdvancedAgent-tb9b3
linkStyle 2 stroke:#a170ff
GmailMesageComponent-6bkp5 -.- AdvancedAgent-tb9b3
linkStyle 3 stroke:#a170ff
googlecalendarcomponent-row0d -.- AdvancedAgent-tb9b3
linkStyle 4 stroke:#a170ff
GoogleGenerativeAIModel-gedou -.- AdvancedAgent-tb9b3
linkStyle 5 stroke:#a170ff
Cancelar reuniones y reprogramar
🧩 Overview
This workflow automates the process of canceling and rescheduling meetings. It acts as a virtual executive assistant that interprets a user's natural language request for a time period, retrieves all scheduled meetings within that window, and systematically cancels them. For each meeting, it sends a formal email notification to all participants and removes the event from the calendar, streamlining a typically manual and time-consuming administrative task.
⚙️ Main Features
- Interprets flexible, natural language time periods (e.g., "tomorrow," "next Friday from 9 to 12") to define a concrete date range.
- Retrieves a list of scheduled meetings from a connected Google Calendar for the specified period.
- Automatically sends a formal, templated email notification to all meeting participants for each canceled event.
- Deletes the corresponding calendar event after successful email notification.
- Provides a final confirmation message upon completion of the entire process.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Captures the user's initial request specifying the time period for cancellations. | User's text message | User's message |
| Agent | The core logic unit. It interprets the time period, orchestrates the sequence of actions (get, notify, delete), and decides which tools to use. | User's message, System prompt, Language Model, Available Tools | Final response message |
| Gemini (Google Generative AI Model) | Provides the language model intelligence for the Agent, enabling it to understand the request, follow instructions, and make decisions. | Model configuration | Language Model instance for the Agent |
| Get Meetings (Google Calendar) | A tool used by the Agent to fetch all calendar events within the interpreted time range. | Calendar selection, Start date, End date | List of meeting data |
| Google Gmail Message | A tool used by the Agent to send formal cancellation emails to all participants of a meeting. | Recipient emails, Email subject, Email body | Email send confirmation |
| Delete Meetings (Google Calendar) | A tool used by the Agent to remove a meeting event from the calendar after the notification email is sent. | Event ID, Calendar selection | Deletion confirmation |
| Chat Output | Displays the Agent's final confirmation message to the user. | Agent's response message | Formatted chat message |
🧠 Notes
- The workflow requires valid Google Calendar and Gmail API credentials to function.
- The Agent's behavior is strictly defined by a detailed system prompt that enforces a sequential process: first retrieve meetings, then for each meeting send an email, and finally delete the event.
- The system prompt instructs the Agent to interpret vague time references (e.g., "tomorrow") as the full day from 00:00 to 23:59.
- The email template used for notifications is formal and includes a request for participants to propose new availability.
- The final output is a simple "Proceso completado." (Process completed) message.