Create and publish social posts via Telegram, OpenAI, Google Docs and PostWire
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Docs, OpenAI Chat Model and SerpApi (Google Search) and 1 more. It also calls postwire.io over HTTP.
How it runs
Trigger: On Telegram events (message).
- Only text topics (Filter): keeps only the items that match a condition
- Get the brand rules (Google Docs): get
- Write the posts with an AI agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search Google with SerpApi)
- Read the posts (Edit Fields (Set)): sets 5 fields: posts, topic, networks…
- Send the drafts (Telegram): send message
- Ask for approval in Telegram (Telegram): send and wait for a reply (message)
- Approved? (If): checks a condition and branches into true / false
- Publish with PostWire (HTTP Request): calls postwire.io (POST)
- Reply that nothing was published (Telegram): send message
- Every network published? (If): checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: postwire.io
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- SerpApi (Google Search) in Search Google with SerpApi: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| SerpApi (Google Search) Search Google with 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 - Filter
n8n-nodes-base.filter - Google Docs
n8n-nodes-base.googleDocs - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow turns Telegram topic messages into platform-specific drafts for LinkedIn, Facebook, Bluesky, and Mastodon using OpenAI and brand rules from Google Docs, then publishes approved posts via PostWire and logs outcomes to Google…