Generate internet research PDF reports with GPT-4.1-mini and Gmail
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Check Topic Is Valid (If): checks a condition and branches into true / false
- Create AI Search Queries (OpenAI): uses OpenAI
- Send Missing Topic Message (Respond to Webhook): sends the response back to the webhook caller
- Format Search Queries (Code): runs custom JavaScript code
- Search Articles On Internet (HTTP Request): calls an HTTP API (POST)
- Extract Search Results (Code): runs custom JavaScript code
- Limit: keeps the first few items
- Create Jina Reader URL (Edit Fields (Set)): sets 1 field: readerUrl
- Read Full Article Content (HTTP Request): calls an HTTP API
- Clean Article Text (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTTP Request
n8n-nodes-base.httpRequest - Limit
n8n-nodes-base.limit - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow accepts a research topic via webhook, uses OpenAI to generate search queries and summarize web articles found via Serper/Google Search and Jina Reader, then compiles insights into an HTML report, converts it to PDF, and emails it…