Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Plan and publish LinkedIn posts from Google Sheets with OpenRouter and Telegram

On a schedule, it handles email with OpenAI / ChatGPT and OpenRouter using SMTP Email, Google Sheets, Telegram, Upload-Post.

What it does

## 09-05-11 linkedin post planner with ai drafts and approval ### How it works - A daily schedule reads the post calendar sheet and gates rows to Approved, dated today, and not yet Published, so re-runs never double post. - The approval side lane sends rows marked pending_review to a manager on Telegram for a quick approve or reject edit in the sheet. - Each approved row runs through the loop: load the brand guide, draft the post with a primary OpenRouter model plus a structured fallback, parse the output, generate an image, host it, and publish to LinkedIn. - If publishing fails, the row is flagged as Error in the sheet and the admin is alerted on Telegram. Hard workflow errors are emailed to the alert inbox. - After the loop, a Telegram digest reports how many posts went out that day. ### Setup - Point the calendar and brand guide nodes at your own Google Sheet with columns: id, Date Scheduled, Date Created, Topic, Content, Image, Status. - Set Status to Approved and Date Scheduled to dd/MM/yyyy on rows you want published today. - Connect credentials for Google Sheets, OpenRouter, OpenAI, imgbb, upload-post, Telegram, and SMTP email. - Set the environment variables ADMIN_TELEGRAM_CHAT_ID and MANAGER_TELEGRAM_CHAT_ID used by the alert nodes. ### Customization - Adjust the cron expression to change the publish hour, or swap the fallback model inside the Draft Post Copy chain.

The steps

  1. Daily Publish Schedule
  2. Post Calendar
  3. Ready to Publish
  4. Approved and Due Today?
  5. Process Post
  6. Pending Approval Today?
  7. Request Approval on Telegram
  8. Load Brand Guide
  9. Draft Post Copy
  10. OpenRouter Primary
  11. Fallback Model
  12. Post Structure
  13. Generate Post Image
  14. Upload Post Image

24 steps in total.

Similar automations