Web business analysis with Gmail response
This automated flow receives, via a Google form, the URL of a website along with a contact email. Based on the analysis of the provided website, the status of the business is evaluated and a report is drafted.
graph TD
%%{init: {'theme': 'mc','layout': 'elk'}}%%
Webhook-g58p5[Webhook Input]
style Webhook-g58p5 stroke:#a170ff
WebScraper-02khb[Web Scraper]
style WebScraper-02khb stroke:#a170ff
Prompt-1rb8o[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt]
style Prompt-1rb8o stroke:#a170ff
ParseData-noy6u[<div><img alt="logo" src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>URL]
style ParseData-noy6u stroke:#a170ff
GoogleGenerativeAIModel-2im1w[Gemini]
style GoogleGenerativeAIModel-2im1w stroke:#a170ff
GoogleGenerativeAIModel-ix68f[Gemini2]
style GoogleGenerativeAIModel-ix68f stroke:#a170ff
Prompt-nl83t[<div><img alt="logo" src="/_astro/square-terminal.BMOXc-nZ.svg" style="height: 20px !important;width: 20px !important"/></div>Prompt2]
style Prompt-nl83t stroke:#a170ff
ParseData-cmrba[<div><img alt="logo" src="/_astro/braces.Djq0PW4_.svg" style="height: 20px !important;width: 20px !important"/></div>Correo]
style ParseData-cmrba stroke:#a170ff
GmailMesageComponent-k8vvq[<div><img alt="logo" src="/_astro/gmail.CLxyIGOu.svg" style="height: 20px !important;width: 20px !important"/></div>Google Gmail Message]
style GmailMesageComponent-k8vvq stroke:#a170ff
TelegramMessage-4yk18[Telegram Message]
style TelegramMessage-4yk18 stroke:#a170ff
AdvancedAgent-9y2i7[Analista de negocio]
style AdvancedAgent-9y2i7 stroke:#a170ff
AdvancedAgent-r5sr7[Generador de informe]
style AdvancedAgent-r5sr7 stroke:#a170ff
Webhook-g58p5 -.- ParseData-noy6u
linkStyle 0 stroke:#a170ff
ParseData-noy6u -.- Prompt-1rb8o
linkStyle 1 stroke:#a170ff
Webhook-g58p5 -.- ParseData-cmrba
linkStyle 2 stroke:#a170ff
ParseData-cmrba -.- Prompt-nl83t
linkStyle 3 stroke:#a170ff
Prompt-1rb8o -.- AdvancedAgent-9y2i7
linkStyle 4 stroke:#a170ff
WebScraper-02khb -.- AdvancedAgent-9y2i7
linkStyle 5 stroke:#a170ff
GoogleGenerativeAIModel-2im1w -.- AdvancedAgent-9y2i7
linkStyle 6 stroke:#a170ff
AdvancedAgent-9y2i7 -.- Prompt-nl83t
linkStyle 7 stroke:#a170ff
Prompt-nl83t -.- AdvancedAgent-r5sr7
linkStyle 8 stroke:#a170ff
GmailMesageComponent-k8vvq -.- AdvancedAgent-r5sr7
linkStyle 9 stroke:#a170ff
TelegramMessage-4yk18 -.- AdvancedAgent-r5sr7
linkStyle 10 stroke:#a170ff
GoogleGenerativeAIModel-ix68f -.- AdvancedAgent-r5sr7
linkStyle 11 stroke:#a170ff
Web Business Analysis with Gmail Response
🧩 Overview
The workflow automates the collection of a website URL and a contact email from a Google Form, analyzes the site to assess business health, and automatically sends a tailored email and a Telegram notification to the relevant parties. The process is fully AI‑driven, requiring no manual intervention after the form submission.
⚙️ Main Features
- Receives form data through a secure webhook.
- Parses the submitted URL and email address.
- Generates a custom prompt for a web‑scraping agent.
- Scrapes the site, extracts key business information, and produces an analytical report.
- Builds a personalized email template incorporating the analysis.
- Sends the email via Gmail and posts a confirmation message via Telegram.
- Uses advanced agents that manage tool calls, memory, and iterative reasoning.
🔄 Workflow Steps
| Component Name | Role in the Workflow | Key Inputs | Key Outputs |
|---|---|---|---|
| Webhook Input | Accepts the HTTP payload from the Google Form and forwards the data for processing. | HTTP JSON payload containing formData (website URL) and email. |
Structured Data object with the extracted fields. |
| Parse Data (Website) | Extracts the website URL from the payload. | Data object from the webhook. | Message containing the URL. |
| Parse Data (Email) | Extracts the contact e‑mail address from the payload. | Data object from the webhook. | Message containing the e‑mail. |
| Prompt (Web) | Builds the prompt that instructs the analyst agent to scrape the site. | URL message. | Prompt message for the analyst agent. |
| Analista de negocio (Advanced Agent) | Performs web scraping, analyzes the site, and generates a JSON report of business status. | Prompt message. | Analysis report message. |
| Prompt (Email) | Constructs the prompt that will generate the final email text, including business insights and contact details. | Analysis report message, URL message, e‑mail message. | Prompt message for the copywriter agent. |
| Generador de informe (Advanced Agent) | Produces the final email content, sends it via Gmail, and posts a Telegram notification. | Prompt message. | Email data and Telegram confirmation message. |
🧠 Notes
- Webhook expectations – The incoming JSON must contain
formDatawith a field named Dirección_web (website URL) and a top‑level field email. - Security – All external tool integrations (Gmail, Telegram, web scraper, Gemini) require valid credentials stored in the platform’s credential store.
- Web Scraper – The tool receives the URL to scrape and returns a Markdown‑formatted report. It is used only by the analyst agent.
- Gemini LLM – Both agents use the Gemini 2.5‑flash model. The first agent relies on the web‑scraping tool; the second focuses on natural‑language generation for email and Telegram messages.
- Agent memory – Memory is disabled by default; enabling it allows the agents to retain context across multiple requests.
- Tool limits – No explicit tool‑call limits are configured, but the platform’s rate‑limits apply.
- Telegram notification – The second agent includes a Telegram message that confirms the email has been sent, using the recipient’s e‑mail address and business name.
- Error handling – If the web scraper or Gemini model fails, the fallback models are not configured, so the workflow will terminate and an error is logged.
- Compliance – The workflow does not store sensitive personal data beyond the duration of the request, aligning with typical data‑protection best practices.