Automate LinkedIn Content with AI Research
The outcome: After this challenge, you'll turn a list of topic ideas into researched, ready-to-post LinkedIn drafts automatically.
Why this matters: Consistent LinkedIn posting builds professional authority. This workflow combines web research with AI writing to create well-informed content from your topic ideas.
How it works: You add topics to a Google Sheet (your input queue). The workflow picks up "To Do" topics, researches them via Tavily (real-time web search), passes the research to an AI agent that drafts your post, and saves the result back to the sheet. You can also use an n8n Form node instead of Google Sheets if you prefer.
What you'll learn:
- Google Sheets as a workflow database - read and update rows
- Tavily API - real-time web research (not stale AI training data)
- AI Agents with system prompts - consistent, styled output
Your Task
- 1Copy the exercise below
- 2Paste into your n8n editor (Ctrl+V)
- 3Solve it — use hints if you get stuck
- 4Check the solution when done
Build a LinkedIn content automation workflow:
- Add a Manual Trigger to start the workflow
- Add a Google Sheets node to read the next topic (filter for Status = "To Do")
- Add an HTTP Request node to call the Tavily API:
- URL:
https://api.tavily.com/search - Method: POST
- Add your API key in the Authorization header
- Send a JSON body with the search query based on the topic
- URL:
- Add an AI Agent node with a system prompt for writing LinkedIn posts
- Add another Google Sheets node to update the row with:
- Status: "Created"
- Content: the AI-generated post
Setup required:
- Create a Google Sheet with columns: Topic, Status, Content
- Add some topics with Status "To Do"
Test it: Run the workflow and check that the first "To Do" topic gets researched, drafted, and updated to "Created".
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.