Email Automation
Create daily Google Trends image posts for Instagram, TikTok, and Facebook with OpenAI
On a schedule, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, RSS.
What it does
## Turn Google Trends into on-brand image posts Every morning OpenAI picks the one Google Trends search your brand can join, GPT Image makes the visual, and PostWire posts it to Instagram, TikTok (photo mode) and Facebook, each with its own caption. ### How it works 1. Every morning at 8:00 reads the Google Trends RSS feed for your country (free, no key) and Skip trends already used drops any trend seen on a previous day. 2. Pick a trend with OpenAI returns the trend that fits your brand, an image prompt and a caption per network. It skips tragedies, politics and private people; when nothing fits, nothing is posted. 3. Generate the image with GPT Image creates a square image that goes straight to a PostWire upload slot (PNG is converted to JPEG for Instagram and TikTok). 4. Publish with PostWire posts it everywhere. The date and trend are the idempotency key, so a retry never posts twice. 5. Every run is logged in Google Sheets with the post links; when a network refuses, Gmail emails you the fix. ### 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 the three PostWire nodes. 2. Fill in Set your brand and niche: brand, niche, country code (US, GB, DE...) and networks. 3. Add an OpenAI credential (the image is about one cent with gpt-image-1-mini). 4. Create a sheet with the columns date, trend, angle, status, links and note, and pick it in both Sheets nodes. Connect Gmail and put your address in Email me the fix. ### Customize Change the hour in the trigger, or the safety rules in the OpenAI system message.
The steps
- Every morning at 8:00
- Set your brand and niche
- Read Google Trends
- Skip trends already used
- Keep the top 10 trends
- Collect the trends
- Pick a trend with OpenAI
- Read the plan
- On brand?
- Get an upload slot
- Generate the image with GPT Image
- Upload the image
- Get the image link
- Publish with PostWire
18 steps in total.
Similar automations
Email AutomationTurn TikTok trends into Instagram and Facebook posts with Apify, Gemini, and PostWire20 stepsSocial Media PublishingPublish daily Google Trends posts to social media with Perplexity and PostWire15 stepsSocial Media PublishingTurn RSS blog posts into TikTok and Instagram slideshows with Postdom and Slack14 stepsSocial Media PublishingGenerate Instagram Content from Top Trends with OpenAI Images97 steps