Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. New topic in Telegram
  2. Only text topics
  3. Get the brand rules
  4. Write the posts with an AI agent
  5. OpenAI Chat Model
  6. Search Google with SerpApi
  7. Read the posts
  8. Send the drafts
  9. Ask for approval in Telegram
  10. Approved?
  11. Publish with PostWire
  12. Every network published?
  13. Log the posts
  14. Log the failure

17 steps in total.

Similar automations