Generate company due diligence PDFs with Google Gemini, SEC EDGAR, Serper and Gmail
Quick Overview This workflow starts from an n8n form submission and compiles due diligence research from SEC EDGAR, Google News RSS, the target website’s HTTP headers, and Serpe...
Quick Overview
This workflow starts from an n8n form submission and compiles due diligence research from SEC EDGAR, Google News RSS, the target website’s HTTP headers, and Serper (for Glassdoor and LinkedIn). It uses Google Gemini to produce a structured report, renders a tech score chart with QuickChart, converts HTML to PDF, and emails it via Gmail.
How it works
- Triggers when a user submits the n8n form with a company name and domain.
- Fetches research in parallel from SEC EDGAR (10-K search), Google News RSS, the company website’s response headers, and Serper-powered Google searches for Glassdoor and LinkedIn snippets.
- Consolidates the collected sources into a single JSON payload with normalized fields (filings, news, headers, and search snippets).
- Uses a Google Gemini-powered AI agent to generate a due diligence report in Markdown and returns structured JSON including a numeric tech maturity score.
- Generates a gauge chart image for the tech maturity score using QuickChart and prepares it for embedding.
- Builds an HTML report that includes the AI-generated content and chart, converts it to a PDF via pdfendpoint, downloads the PDF, and emails it as an attachment using Gmail.
Setup
- Add Google Gemini (Google PaLM) API credentials for the AI agent’s chat model.
- Add a Serper API key and replace the hard-coded X-API-KEY header values used in the Glassdoor and LinkedIn search requests.
- Add a pdfendpoint API key and replace the hard-coded Authorization bearer token, or point the workflow to your preferred HTML-to-PDF service.
- Connect Gmail OAuth2 credentials and update the recipient address and attachment mapping in the Gmail email step.
- Review the form fields (company name and domain) and adjust the SEC/News/search queries if you want different filings, regions, or result limits.
production deployment
Need this workflow deployed or tailored for your business?
I customize n8n pipelines, build proprietary API nodes, and connect production databases with sub-100ms reliability.
creator
iamvaar
Top 50 Verified Creator
AI Automation Engineer building production-grade n8n systems, custom nodes, and LLM pipelines.
n8n.io/creators/iamvaarspecs
related automations
More workflows from iamvaar
Track daily LLM brand visibility with Gemini, Groq, OpenRouter, Sheets and Slack
Quick overview Youtube Video: https://youtu.be/BOodBD6HWSU?si=yEenUFBdYOq1RVj This workflow runs daily at 7AM to generate buyer-style prompts with Google Gemini, query Groq, Ope...
Analyze YouTube comments and generate video ideas with Gemini and Telegram
Quick overview Youtube Video: https://youtu.be/YtHfQONV4A4 This workflow accepts a YouTube video URL via Telegram, pulls the video metadata and top 100 comments using the YouTub...
Route weather-based delivery holds with Open-Meteo, Gemini, Postgres, and ServiceNow
Quick overview Demo Video: https://youtu.be/ccEy0J-LKY
Want this workflow running in your stack?
Book a free 30-minute session. I'll inspect your current infrastructure, review required API credentials, and map out the deployment.