Lector de correo
Este flujo es utilizado para formatear los mensajes de Gmail siguiendo una plantilla
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
GmailMesageComponent-bmwjc[<div><img src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div>Google Gmail Message]
style GmailMesageComponent-bmwjc stroke:#a170ff
ParseData-xilwf[<div><img src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>Parse Data]
style ParseData-xilwf stroke:#a170ff
Prompt-w8v41[<div><img src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt]
style Prompt-w8v41 stroke:#a170ff
TextOutput-tafyq[<div><img src="/_astro/type.Dy26vmDy.svg" style="height: 20px !important;width: 20px !important"/></div>Text Output]
style TextOutput-tafyq stroke:#a170ff
GmailMesageComponent-bmwjc -.- ParseData-xilwf
linkStyle 0 stroke:#a170ff
ParseData-xilwf -.- Prompt-w8v41
linkStyle 1 stroke:#a170ff
Prompt-w8v41 -.- TextOutput-tafyq
linkStyle 2 stroke:#a170ff
Lector de correo (Email Reader)
🧩 Overview
This workflow automates the process of retrieving, parsing, and formatting email content from a Gmail account. It connects to Gmail to fetch messages, extracts and structures the relevant text data, and then formats it according to a customizable template for clear presentation or further processing. It is designed to streamline the handling of email data within an automated pipeline.
⚙️ Main Features
- Fetches email messages directly from a connected Gmail account.
- Parses and converts raw email data into structured, plain text.
- Dynamically formats the extracted email content using a customizable prompt template.
- Displays the final formatted output for review or use in subsequent steps.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Google Gmail Message | Serves as the data source, retrieving email messages from a connected Gmail account. | Gmail account credentials and query parameters (e.g., number of emails, search filters). | Raw email data including sender, subject, body, and metadata. |
| Parse Data | Processes the raw email data, extracting and structuring the key textual content into a standardized format. | Raw email data from the Gmail component. | Structured plain text representation of the email content. |
| Prompt | Constructs a final, formatted prompt by inserting the parsed email text into a predefined template. | The structured email text from the Parse Data component. | A complete, templated prompt ready for display or analysis. |
| Text Output | Renders the final formatted prompt as a readable text output within the interface. | The completed prompt from the Prompt component. | Displayed text for user review. |
🧠 Notes
- The workflow requires valid Google Gmail API credentials to authenticate and fetch emails.
- The initial email retrieval can be configured with filters such as a search query or a limit on the number of messages.
- The final output format is entirely dependent on the template defined within the Prompt component.
- This workflow focuses on reading and formatting email content and does not include actions for sending or replying to messages.