Asistente de Google Calendar y Gmail
Un asistente tipo secretario que gestiona tus eventos, te brinda información de tu correo y envía correos. Además, se ejecuta periódicamente, proporcionando un resumen diario de los eventos programados para el día a través de tu correo.
+2
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
GoogleGenerativeAIModel-tknjq[Gemini]
style GoogleGenerativeAIModel-tknjq stroke:#a170ff
ChatInput-rkd4u[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Input]
style ChatInput-rkd4u stroke:#a170ff
ChatOutput-zcb0e[<div><img src="/_astro/messages-square.BaSDmT6g.svg" style="height: 20px !important;width: 20px !important"/></div>Chat Output]
style ChatOutput-zcb0e stroke:#a170ff
GmailMesageComponent-v67l4[<div><img src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div>Optener mensage]
style GmailMesageComponent-v67l4 stroke:#a170ff
googlecalendarcomponent-851vc[Optener Eventos]
style googlecalendarcomponent-851vc stroke:#a170ff
googlecalendarcomponent-alti6[Crear Eventos]
style googlecalendarcomponent-alti6 stroke:#a170ff
googlecalendarcomponent-5ngix[Eliminar Eventos]
style googlecalendarcomponent-5ngix stroke:#a170ff
GmailMesageComponent-wtkw1[<div><img src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div> Enviar message]
style GmailMesageComponent-wtkw1 stroke:#a170ff
Prompt-jyrhr[<div><img src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt simple]
style Prompt-jyrhr stroke:#a170ff
Prompt-1zh7i[<div><img src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>System Prompt ]
style Prompt-1zh7i stroke:#a170ff
TextInput-1i8g7[<div><img src="/_astro/type.Dy26vmDy.svg" style="height: 20px !important;width: 20px !important"/></div>correo de usuario]
style TextInput-1i8g7 stroke:#a170ff
AdvancedAgent-43uv9[Agent2]
style AdvancedAgent-43uv9 stroke:#a170ff
ChatInput-rkd4u -.- Prompt-jyrhr
linkStyle 0 stroke:#a170ff
TextInput-1i8g7 -.- Prompt-1zh7i
linkStyle 1 stroke:#a170ff
Prompt-jyrhr -.- AdvancedAgent-43uv9
linkStyle 2 stroke:#a170ff
Prompt-1zh7i -.- AdvancedAgent-43uv9
linkStyle 3 stroke:#a170ff
AdvancedAgent-43uv9 -.- ChatOutput-zcb0e
linkStyle 4 stroke:#a170ff
GmailMesageComponent-v67l4 -.- AdvancedAgent-43uv9
linkStyle 5 stroke:#a170ff
GmailMesageComponent-wtkw1 -.- AdvancedAgent-43uv9
linkStyle 6 stroke:#a170ff
googlecalendarcomponent-851vc -.- AdvancedAgent-43uv9
linkStyle 7 stroke:#a170ff
googlecalendarcomponent-alti6 -.- AdvancedAgent-43uv9
linkStyle 8 stroke:#a170ff
googlecalendarcomponent-5ngix -.- AdvancedAgent-43uv9
linkStyle 9 stroke:#a170ff
GoogleGenerativeAIModel-tknjq -.- AdvancedAgent-43uv9
linkStyle 10 stroke:#a170ff
Asistente de Google Calendar y Gmail
🧩 Overview
This workflow automates the management of a user's email and calendar by acting as an intelligent assistant. It processes user requests to read, summarize, or send emails, as well as to create, retrieve, or delete calendar events. The system is designed to operate in both manual and automatic modes, providing a daily summary of scheduled events via email when no specific user instruction is given.
⚙️ Main Features
- Orchestrates user requests to perform actions on Gmail and Google Calendar.
- Supports automatic execution to fetch today's calendar events and email them to a specified recipient.
- Integrates a language model to understand user intent and select the appropriate tools.
- Provides a conversational interface for manual user interaction.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Captures the initial user request or instruction. | User message text | User Message |
| Text Input | Provides the recipient email address for automatic reports. | Email address | Email Address |
| Prompt (Simple) | Formats the user's message to ensure it is correctly passed to the agent, preventing failures from empty inputs. | User Message | Formatted User Prompt |
| Prompt (System) | Defines the agent's behavior and instructions, including the procedure for automatic execution. | Email Address | System Prompt |
| Google Generative AI Model | Serves as the core language model that powers the agent's reasoning and decision-making. | Model configuration | Language Model |
| Gmail Message Component (Get) | Tool for the agent to retrieve emails from the user's Gmail account. | Tool configuration | Email Data Tool |
| Gmail Message Component (Send) | Tool for the agent to send emails through the user's Gmail account. | Tool configuration | Email Send Tool |
| Google Calendar Component (Get) | Tool for the agent to retrieve events from the user's Google Calendar. | Tool configuration | Calendar Data Tool |
| Google Calendar Component (Create) | Tool for the agent to create new events in the user's Google Calendar. | Tool configuration | Calendar Create Tool |
| Google Calendar Component (Delete) | Tool for the agent to delete events from the user's Google Calendar. | Tool configuration | Calendar Delete Tool |
| Advanced Agent | The central orchestrator that interprets the user's request, selects the appropriate tools, and executes the necessary actions. | Formatted User Prompt, System Prompt, Language Model, Available Tools | Agent Response |
| Chat Output | Displays the agent's final response or confirmation to the user. | Agent Response | Displayed Message |
🧠 Notes
- The workflow requires valid Google API credentials for Gmail and Google Calendar to function.
- In automatic mode, the agent will execute a predefined routine to fetch today's calendar events and email a summary.
- The agent's behavior and instructions for automatic execution are defined within the System Prompt component.
- The language model's configuration (e.g., temperature, token limits) can be adjusted within its component settings.