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

Go to Workflow
0 views
Built by Vyrazu Labs Vyrazu Labs
Created on June 22, 2026

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

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

Requirements
Groq API key (free tier available)
Tavily API key (free tier — 1,000 searches/month)
Gmail account (OAuth2)

Customization
Edit the topic list inside the "Pick Today's Topic" code node to change what subjects the post rotates through.
Change the Groq model in the "Groq Chat Model" node if you want a different LLM (e.g. a smaller/faster or larger Groq model).
Adjust the schedule trigger if you want a different posting time, or swap the Gmail "send to" address to deliver the draft to someone else for review.

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 (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq
HTTP Request
n8n-nodes-base.httpRequest