Library / AI Agents & Assistants
AI Agents & Assistants
Create and publish social posts via Telegram, OpenAI, Google Docs and PostWire
When something happens in a connected app, it runs an AI agent with OpenAI / ChatGPT using SerpAPI, Google Docs, Google Sheets, Telegram.
What it does
## An AI content factory that follows your brand rules Send a topic to your Telegram bot and get a post for LinkedIn, Facebook, Bluesky and Mastodon. An OpenAI agent writes them from the brand rules you keep in a Google Doc, and PostWire publishes them after you approve. ### How it works 1. New topic in Telegram takes any text message sent to your bot (commands are skipped). 2. Get the brand rules reads your Google Doc: voice, audience, words to avoid, examples. 3. Write the posts with an AI agent follows those rules, searches Google with SerpApi when it needs fresh facts, and returns one post per network. 4. Send the drafts shows them in your Telegram chat and Ask for approval in Telegram waits for Approve or Decline. 5. On Approve, Publish with PostWire posts each network with its own text. Google Sheets logs the result, and the bot replies with the links or the exact fix for each network that refused. ### Setup 1. Create a free account at postwire.io, connect your networks and copy your API key. In n8n add a Header Auth credential (name Authorization, value Bearer pw_live_…) and select it in Publish with PostWire. 2. Write your brand rules in a Google Doc and paste its URL in Get the brand rules. 3. Add an OpenAI credential to the chat model and a SerpApi key to the search tool (the free plan is enough). 4. Create a bot with @BotFather and select its credential in the trigger and the five Telegram nodes. 5. Create a sheet with the columns date, topic, status, links and note, and pick it in both Sheets nodes. ### Customize Edit the networks in Read the posts, or swap the chat model.
The steps
- New topic in Telegram
- Only text topics
- Get the brand rules
- Write the posts with an AI agent
- OpenAI Chat Model
- Search Google with SerpApi
- Read the posts
- Send the drafts
- Ask for approval in Telegram
- Approved?
- Publish with PostWire
- Every network published?
- Log the posts
- Log the failure
17 steps in total.
Similar automations
Social Media PublishingPublish daily Google Trends posts to social media with Perplexity and PostWire15 stepsSocial Media PublishingDraft and email-approve social posts from Google Sheets with PostWire and Gmail16 stepsImage, Video & AudioGenerate and post faceless vertical Shorts with OpenAI Sora 2 and PostWire13 stepsSocial Media PublishingTurn YouTube videos into LinkedIn and Bluesky posts with Gemini and PostWire15 steps