Google Calendar and Gmail Assistant
A secretary-style assistant that manages your events, provides you with information from your email, and sends emails. Additionally, it runs periodically, providing a daily summary of scheduled events for the day via your email.
Google Calendar and Gmail Assistant
🧩 Overview
The workflow automates email and calendar management for a user.
A conversational agent receives the user’s message and email address, then uses the Gemini model to interpret the request, invoke Gmail and Google Calendar tools (send, read, create, delete), and returns a natural‑language response. The system also runs automatically to send a daily summary of scheduled events to the user’s inbox.
⚙️ Main Features
- Conversational interface that accepts natural‑language user requests.
- Dynamic system prompt that injects the user’s email for automated daily reports.
- Gemini language model for intent detection, reasoning, and text generation.
- Integrated Gmail tools to read, send, reply, and manage messages.
- Integrated Google Calendar tools to fetch, create, and delete events.
- Output to the playground chat for immediate user feedback.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Chat Input | Collects the user’s natural‑language request. | Message from the user. | Message containing the user’s text. |
| Text Input | Gathers the user’s email address for daily reporting. | Text containing an email address. | Message with the email address. |
| Prompt simple | Builds the user‑side prompt from the chat input. | Message from Chat Input. | Prompt that forwards the user’s message to the agent. |
| System Prompt | Constructs the system‑side prompt containing the user’s email and instructions for automatic operation. | Message from Text Input. | Prompt that supplies system instructions to the agent. |
| Advanced Agent | Drives the agent logic, invoking Gemini, selecting tools, and formulating a response. | Prompt from Prompt simple, System Prompt from System Prompt, Gemini model, Gmail and Calendar tools. | Message with the agent’s natural‑language response. |
| Chat Output | Presents the agent’s response back to the user. | Message from Advanced Agent. | Visible chat message in the playground. |
Tool components (GmailSend, GmailGet, CalendarGet, CalendarCreate, CalendarDelete) are attached to the Advanced Agent and are invoked automatically as required.
🧠 Notes
- The Gemini model is configured with gemini‑2.5‑flash and a 4096‑token limit.
- Credentials for Gmail and Google Calendar must be supplied; they are required by the corresponding tool components.
- The system prompt includes a clause to send a daily summary of today’s events via email when no user message is provided.
- The agent runs in batch mode if a list of inputs is supplied, but defaults to single‑step processing when a single input is given.
- Structured output and streaming are disabled in this configuration; the agent returns plain text.
- The workflow can be scheduled to run automatically (e.g., daily) to deliver the event summary without manual user initiation.