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
- Daily Publish Schedule
- Post Calendar
- Ready to Publish
- Approved and Due Today?
- Process Post
- Pending Approval Today?
- Request Approval on Telegram
- Load Brand Guide
- Draft Post Copy
- OpenRouter Primary
- Fallback Model
- Post Structure
- Generate Post Image
- Upload Post Image
24 steps in total.
Similar automations
Image, Video & AudioGenerate FLUX Kontext Images and Post with Upload-Post18 stepsSocial Media PublishingPost Images to Instagram and TikTok with Upload-Post9 stepsAI Agents & AssistantsScrape lawn care job boards and publish LinkedIn posts with Groq, Gemini, and Google124 stepsSocial Media PublishingPublish LinkedIn text, image, or video posts from a webhook21 steps