🎬 Send daily LinkedIn post drafts with Tavily, Groq Llama 3.3 and Gmail

⚡ 275 views · 🎬 Content Creation & Video

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Quick overview

This workflow runs daily at 8 AM to rotate through a topic list, research it with Tavily web search, generate a LinkedIn post and image prompt with Groq (Llama 3.3 70B), create a Pollinations.ai image URL, and email you the post with the image attached via Gmail.

How it works

  1. Runs every day at 8:00 AM on a schedule.
  2. Selects today’s topic from a rotating list based on the day of the year.
  3. Searches the web with Tavily to fetch up-to-date results for the selected topic.
  4. Uses a Groq-hosted Llama model to write a LinkedIn post and a matching image prompt grounded in the Tavily results.
  5. Builds a Pollinations.ai image generation URL from the image prompt and downloads the generated image file.
  6. Emails the post text with the image attached via Gmail, and sends a text-only fallback email if image generation or download fails.

Setup

  1. Add a Groq API credential to the Groq Chat Model node.
  2. Create a Tavily API key and configure HTTP Header Auth with Authorization: Bearer <YOUR_TAVILY_KEY> for the Tavily Search request.
  3. Connect a Gmail OAuth2 credential and update the recipient email address in both Gmail send steps.
  4. Edit the topic list in the topic-selection code step if you want different rotating themes.

Requirements

Customization

Additional info

This workflow emails you a draft for manual review before posting — it does not post to LinkedIn automatically. If image generation fails, a text-only fallback email is sent instead so you never miss the post text.

🔗 Nodes Used

HTTP Request, Gmail, Schedule Trigger, AI Agent, Groq Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup