Audit websites from Telegram with GPT-4o-mini and log results to Google Sheets
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What 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
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.
| 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…