Chatear con el calendario & Gmail
El objetivo es automatizar la gestión de eventos y tareas en Google Calendar y Gmail. Permite a los usuarios interactuar de forma conversacional con estas aplicaciones, simplificando la programación y consulta.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
ChatInput-eoj7g[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Input]
style ChatInput-eoj7g stroke:#a170ff
ChatOutput-vmzfb[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-vmzfb stroke:#a170ff
GmailMesageComponent-h9m4p[<div><img src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div>Obtener Correos]
style GmailMesageComponent-h9m4p stroke:#a170ff
GoogleGenerativeAIModel-5k5zx[Gemini]
style GoogleGenerativeAIModel-5k5zx stroke:#a170ff
googlecalendarcomponent-b2avz[Obtener Eventos]
style googlecalendarcomponent-b2avz stroke:#a170ff
AdvancedAgent-r83dk[Agent]
style AdvancedAgent-r83dk stroke:#a170ff
ChatInput-eoj7g -.- AdvancedAgent-r83dk
linkStyle 0 stroke:#a170ff
AdvancedAgent-r83dk -.- ChatOutput-vmzfb
linkStyle 1 stroke:#a170ff
googlecalendarcomponent-b2avz -.- AdvancedAgent-r83dk
linkStyle 2 stroke:#a170ff
GmailMesageComponent-h9m4p -.- AdvancedAgent-r83dk
linkStyle 3 stroke:#a170ff
GoogleGenerativeAIModel-5k5zx -.- AdvancedAgent-r83dk
linkStyle 4 stroke:#a170ff
Chatear con el calendario & Gmail
🧩 Overview
This workflow functions as an intelligent personal assistant that automates interactions with Google Calendar and Gmail. It allows users to manage their schedule and email through natural language conversations, enabling them to query events, schedule meetings, and read emails without manual navigation. The system processes user requests, determines the necessary actions, and uses specialized tools to execute tasks, providing a seamless and automated interface for productivity management.
⚙️ Main Features
- Processes natural language user queries to understand requests related to calendar events and emails.
- Coordinates actions using an intelligent agent that decides when to interact with Google Calendar or Gmail.
- Retrieves and displays calendar events based on user-specified date ranges or criteria.
- Fetches and reads email content from a connected Gmail account to answer user inquiries.
- Delivers clear, conversational responses back to the user, confirming actions or presenting requested information.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Captures the user's initial query or command. | User's text input (e.g., a question about events or emails). | User Message for processing. |
| Agent | Acts as the central coordinator; interprets the user's intent and decides which tools to use. | User Message, System Prompt, Language Model, Available Tools. | Processed response or action command. |
| Google Generative AI Model | Provides the core language understanding and reasoning capability for the agent. | Model configuration and credentials. | Language Model for the agent's decision-making. |
| Google Calendar Component | Serves as a tool to interact with the user's Google Calendar (e.g., to get events). | Tool configuration (set to "Get" events). | Tool interface for the agent. |
| Gmail Message Component | Serves as a tool to interact with the user's Gmail (e.g., to read messages). | Tool configuration (set to "Get Message"). | Tool interface for the agent. |
| Chat Output | Presents the agent's final response or the results of the executed action to the user. | Agent's response message. | Formatted message displayed to the user. |
🧠 Notes
- The workflow requires valid Google API credentials for Calendar, Gmail, and the Gemini language model to authenticate and function.
- The agent is configured with a specific system prompt that instructs it on its role and the strict ISO 8601 date format required for all calendar interactions.
- The agent uses a checkpointer for memory, enabling stateful conversations across interactions.
- The current configuration of the Google Calendar and Gmail components is set to "Get" operations, meaning the workflow is primarily for querying information rather than creating or modifying items.