Generate platform-specific social media posts with ChatGPT, Tavily & G-Sheets
Workflow preview
DISCOUNT 20%
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
Automated Social Media Content Generator with ChatGPT & Tavily Research
This n8n template turns a simple spreadsheet of ideas into ready-to-publish content for LinkedIn, X, and Instagram. It uses Tavily to find recent insights from the web and ChatGPT to craft optimized posts automatically β writing results back to your sheet.
βοΈ Good to know
Triggers automatically when a new row is added to your Google Sheet.
Uses Tavily for intelligent web research based on your topic.
Generates three platform-specific posts (LinkedIn, X, IG) using ChatGPT.
Saves all results back into the same sheet β no manual copying.
Requires API keys for OpenAI, Tavily, and Google Sheets credentials.
π§ How it works Step 1 β Watch the Sheet & Prepare Inputs
A Google Sheets Trigger monitors your content sheet with six columns:
Campaign
Content topic
Target audience
X
IG
The Set Search Fields node structures this data for later steps.
Step 2 β Research with Tavily
The Search Internet node calls Tavilyβs API (insert your key here) to fetch fresh news and articles about the topic.
Split Out unfolds the search results; Aggregate compiles them into a single, clean dataset used by the LLMs.
Step 3 β Generate Platform-Optimized Posts
Each platform uses a dedicated ChatGPT agent:
LinkedIn β long-form, insightful, paragraph breaks, 1β2 emojis, 3β5 hashtags, and a call to action.
X β β€ 280 characters, concise and catchy, 1β3 hashtags, 1β2 emojis.
Instagram β scannable text with CTA, hashtags, and image suggestions for posts/carousels.
Finally, Update Campaign writes the generated posts back into your sheet (LinkedIn, X, and IG columns) using the campaign name as the match key.
π§© How to use
Prepare your Google Sheet
Columns: Campaign, Content topic, Target audience, LinkedIn, X, IG.
Keep the last three empty β theyβll be filled automatically.
Connect credentials
Google Sheets β account owning the document.
Tavily β enter your API key in the Search Internet node.
OpenAI β connect your key in the three generation nodes (LinkedIn, X, IG).
Run
Add a new row to the sheet and watch the workflow automatically research, write, and update the row with finished posts.
π§Ύ Requirements
n8n instance
Google Sheets access
OpenAI API key
Tavily API key
π§± Customizing this workflow
Tone & Voice β Edit system prompts in each GPT node.
Research Depth β Adjust max_results or search_depth in Tavily.
Localization β Modify prompts for language or region.
Formatting β Add post templates, hashtags, or links.
Quality Control β Add moderation or length checks before saving results.
A/B Testing β Duplicate platform nodes to create and compare multiple drafts.
π‘ Tips
Keep topics focused β one clear idea per row.
Use Tavilyβs news topic for the freshest insights.
Test on a few rows to calibrate tone and hashtags before scaling.
β In short: Idea in Google Sheet β Tavily research β ChatGPT writes LinkedIn/X/IG posts β Auto-update in sheet. Plug in your keys, run once, and your content pipeline writes itself.