Templates / Create and publish social posts via Telegram, OpenAI, Google Docs and PostWire

Create and publish social posts via Telegram, OpenAI, Google Docs and PostWire

Needs changes

by PostWire ✓ · 16 views · created 2026-10-06 · Social Media, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: SerpApi (Google Search). 1 breaking item(s) found. Static check, last run 2026-10-19.

What 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).

  1. Only text topics (Filter): keeps only the items that match a condition
  2. Get the brand rules (Google Docs): get
  3. Write the posts with an AI agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search Google with SerpApi)
  4. Read the posts (Edit Fields (Set)): sets 5 fields: posts, topic, networks…
  5. Send the drafts (Telegram): send message
  6. Ask for approval in Telegram (Telegram): send and wait for a reply (message)
  7. Approved? (If): checks a condition and branches into true / false
  8. Publish with PostWire (HTTP Request): calls postwire.io (POST)
  9. Reply that nothing was published (Telegram): send message
  10. 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

TelegramGoogle DocsOpenAI Chat ModelSerpApi (Google Search)Google Sheets

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.0Replace 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)

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…

Excerpt from PostWire's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.