Create social media content from Telegram with AI
Needs changesWhat this workflow does
This AI workflow has 12 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, OpenAI Chat Model and SerpApi (Google Search). It also calls router.huggingface.co over HTTP.
How it runs
Trigger: On Telegram events (message).
- Voice or Text? (Switch): routes items into 3 branches
- Fetch Voice Message (Telegram): work with file
- Prepare for LLM (Edit Fields (Set)): sets or maps fields
- Transcribe Voice to Text (OpenAI): translate (audio)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (SerpAPI); output parser: Structured Output Parser
- Generate Image (HTTP Request): calls router.huggingface.co (POST)
- Extract from File: extracts data from a file (binary to propery)
- Prepare Final Output (Edit Fields (Set)): sets 2 fields: content, image
Services it uses
HTTP calls to: router.huggingface.co
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| SerpApi (Google Search) SerpAPI | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (11)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest
From the author
Description: Create Social Media Content from Telegram with AI This n8n workflow empowers you to effortlessly generate social media content and captivating image prompts, all powered by AI. Simply send a topic request through Telegram (as a voice or text…