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.