Audit websites from Telegram with GPT-4o-mini and log results to Google Sheets
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: On Telegram events (message).
- Set config (Edit Fields (Set)): sets 4 fields: sheetId, sheetName, senderName…
- Find a URL in the message (Code): runs custom JavaScript code
- Was a URL sent? (If): checks a condition and branches into true / false
- Fetch the website (HTTP Request): calls an HTTP API
- Reply with help (Telegram): uses Telegram
- Strip the HTML down to text (Code): runs custom JavaScript code
- Write the audit (AI Agent): runs an AI agent, with model: Chat model; output parser: Output Parser - Audit fields
- Format the reply (Code): runs custom JavaScript code
- Log the audit (Google Sheets): append
- Reply with the audit (Telegram): uses Telegram
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Write the audit (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Write the audit (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow turns a Telegram bot into a website audit assistant: it extracts a URL from incoming Telegram messages, scrapes the page, uses OpenAI (gpt-4o-mini) to generate a structured audit, logs the results to Google Sheets, and replies…