
Important: This workflow uses the Autype and SerpAPI Official community nodes and requires a self-hosted n8n instance.
Submit a simple form with your product name, industry, and description. The workflow automatically researches your market via Google Trends and Google Search (SerpAPI), conducts deep analysis with Perplexity AI (via OpenRouter), writes a structured report with Anthropic Claude (via OpenRouter), and renders a professionally styled PDF using Autype Extended Markdown. No manual competitor input required -- everything is discovered automatically.
Who is this for?
Product managers, startup founders, strategists, and consultants who need quick market research reports for investor decks, board meetings, competitive positioning, or strategic planning. Instead of spending hours compiling data from multiple sources, this workflow automates the entire research-to-PDF pipeline from a single form submission.
Concrete example: A SaaS startup preparing for a Series A fundraise needs a market research report on the document automation space. They fill in their product name and industry, describe their product, and submit the form. In under two minutes they get a polished PDF with current market trends, auto-discovered competitor comparisons, SWOT analysis, and strategic recommendations -- ready to attach to their pitch deck.
What this workflow does
When a user submits the form, the workflow sends parallel requests to Google Trends (12-month interest data) and Google Search (competitor discovery) via SerpAPI, and downloads Autype's extended markdown syntax reference. All data is merged and passed to an AI Research Agent powered by Perplexity Sonar Pro (via OpenRouter) for deep market and competitor analysis with real-time web citations. The research output is then handed to an AI Report Writer (Anthropic Claude via OpenRouter) that writes a structured market research report in Autype Extended Markdown. The markdown is rendered to a styled PDF via Autype's Render from Markdown operation, and the final report is saved to Google Drive.
How it works
- Market Research Form -- An n8n Form Trigger collects product name, industry, product description, and report language.
- Google Trends -- SerpAPI Official node fetches 12 months of search interest data for the industry.
- Search Competitors -- SerpAPI Google Search automatically discovers competitors and market leaders.
- Download Markdown Syntax -- Fetches Autype's extended markdown syntax reference so the report writer knows all formatting options.
- Prepare Research Context -- A Code node merges trends data, competitor search results, and syntax reference into a single context.
- AI Research Agent -- An AI Agent with OpenRouter (Perplexity Sonar Pro) conducts deep market research: market overview, competitor profiles, trends, and product positioning.
- Prepare Report Input -- A Code node combines the research output with the markdown syntax reference and form data.
- AI Report Writer -- An AI Agent (Anthropic Claude via OpenRouter) writes the final report in Autype Extended Markdown. The prompt includes a title page template.
- Prepare Render Payload -- A Code node cleans the AI output and sets title/filename.
- Render Report PDF -- Autype renders the extended markdown to a professionally styled PDF with Open Sans font, heading hierarchy (28/22/18pt), automatic page breaks before h1/h2, chart color palette, header with company name and logo, footer with page numbers, and generous spacing.
- Save Report to Drive -- The PDF is uploaded to Google Drive.
Setup
- Install community nodes via Settings > Community Nodes:
n8n-nodes-autype and n8n-nodes-serpapi.
- Create an Autype API credential with your API key from app.autype.com. See API Keys in Settings.
- Create a SerpAPI credential with your API key from serpapi.com (free tier: 250 searches/month).
- Create two OpenRouter API credentials with your key(s) from openrouter.ai. One is used for Perplexity Sonar Pro (research), the other for Anthropic Claude (report writing). You can use the same API key for both.
- Create a Google Drive OAuth2 credential and connect your Google account.
- Import this workflow and assign your credentials to each node.
- Set
YOUR_FOLDER_ID in the "Save Report to Drive" node to your target Google Drive folder.
- Activate the workflow and open the form URL to generate a report.
Note: You need a self-hosted n8n instance to use the Community Nodes.
Requirements
- Self-hosted n8n instance (community nodes are not available on n8n Cloud)
- Autype account with API key (free tier available)
n8n-nodes-autype community node installed
n8n-nodes-serpapi community node installed (verified)
- OpenRouter API key (for Perplexity Sonar Pro and Anthropic Claude models)
- SerpAPI account (free tier: 100 searches/month)
- Google Drive account with OAuth2 credentials (optional, can replace with other output)
How to customize
- Add more data sources: Insert additional HTTP Request or SerpAPI nodes before the merge to pull from Google News, Google Scholar, or other engines.
- Use a different research model: Swap the OpenRouter Perplexity model for any other OpenRouter model (e.g. Gemini) or replace the sub-node entirely.
- Use a different report writer: Swap the Anthropic Claude model for OpenAI, Google Gemini, or any other OpenRouter-compatible model.
- Customize header/footer: Edit the
defaults JSON in the Render Report PDF node to change the company name, logo URL, or footer text.
- Customize title page: Edit the title page template in the AI Report Writer's user prompt to change the logo, layout, or metadata fields.
- Change report structure: Edit the system prompt in the AI Report Writer node to add or remove sections, change the tone, or adjust the word count.
- Customize PDF styling: Edit the
defaults JSON in the Render Report PDF node to change fonts, colors, spacing, and heading styles. See the Autype defaults schema for all options.
- Generate DOCX instead of PDF: Change the output format in the Render Report PDF node from PDF to DOCX.
- Schedule automatic reports: Add a Schedule Trigger alongside the Form Trigger for recurring market monitoring.
- Change output destination: Replace the Google Drive node with Email (SMTP), S3, Slack, or any other n8n output node.
- Add more languages: Edit the dropdown options in the Market Research Form node.