Generate AI Twitter posts with web research using GPT, Tavily and image generation
UnknownWhat this workflow does
This AI workflow has 9 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model, Gmail and Tavily (community). It also calls api.openai.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Twitter Content (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Search in Tavily)
- Twitter Image Prompt (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- gpt-image- (HTTP Request): calls api.openai.com (POST)
- Convert to File: converts data to a file (to binary)
- Send a message (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Tavily templates (46) · Other Tavily + Gmail templates (29)
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @tavily/n8n-nodes-tavily is verified or supports 3.0 (used in Search in Tavily).
Nodes used (7)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile - Tavily Tool
@tavily/n8n-nodes-tavily.tavilyTool
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 🤖 AI-Powered Twitter Content Generator Transform topic ideas into ready to post Twitter drafts (text + image) using fresh web data and AI agents 🎯 What does…