Automate sophisticated research using the Perplexity Sonar API with this powerful n8n workflow. Perfect for fetching cited, high-quality data automatically.
Download this n8n workflow template and start using it instantly.
Content Creators & Marketers: Need verified, cited information quickly for articles or blog posts.
Data Analysts: Required to perform rapid, structured searches on recent topics using a reliable research API.
n8n Automation Engineers: Looking for advanced n8n templates integrating cutting-edge AI services like Perplexity.
Researchers & Academics: Want to streamline the initial search phase of their investigations, leveraging the power of an automated n8n node.
Leveraging the power of AI for research is critical in today's fast-paced environment. This highly efficient n8n workflow turns a simple input query into a professional research request submitted directly to the Perplexity Sonar model. Unlike standard LLMs, Perplexity specializes in search and citation, providing high-quality, verifiable answers. This specific n8n template is designed to be called as a sub-workflow, making it a reusable component in larger n8n automation projects. The entire n8n process ensures that you receive clean, relevant, and fully extracted content, transforming your n8n workflow into a high-powered research assistant.
This automation functions as a modular component, starting with an internal n8n trigger.
1. Trigger & Input: The n8n workflow begins with the 'When Executed by Another Workflow' n8n trigger, which allows it to receive input data (specifically, the query field) from a parent n8n workflow or an external API call.
2. Define Variables: The 'Set Prompt Variables' n8n node establishes the context for the AI. It defines a detailed System prompt outlining the AI assistant's helpful persona and captures the input query as the User prompt.
3. API Request: The 'Perplexity Research Content1' n8n node, an HTTP Request n8n node, sends the structured prompt to the Perplexity API (/chat/completions). Key parameters are set to enforce research quality, including using the robust sonar model, setting a low temperature for factual output (0.2), and crucially, setting returncitations: true and restricting the search to recent data (searchrecency_filter: "month"). This is the core action of this n8n template.
message.content, returning the concise research result to the calling n8n workflow.To use this n8n template, follow these steps:
1. Import: Copy the provided n8n workflow JSON and paste it directly into your n8n instance using the 'New' -> 'Import from JSON' option.
2. Perplexity Credentials: You must configure the required credentials for the HTTP Request n8n node ('Perplexity Research Content1').
Click on the Credential field (labeled 'Header Auth account 2').
Select 'Create New Credential' for the 'HTTP Header Auth' type.
* The Perplexity API requires an Authorization header. Set the header name to Authorization and the header value to Bearer YOURPERPLEXITYAPI_KEY.
3. Testing: Since this n8n workflow uses an internal n8n trigger, you can test it manually by clicking 'Execute Workflow' and providing a test input object like {"query": "What were the key updates in n8n version 1.0?"}.
This n8n workflow leverages several key n8n nodes to achieve seamless research automation:
When Executed by Another Workflow (n8n trigger):
Function: Serves as the entry point for this sub-workflow, receiving the research query from a parent n8n process. This specialized n8n trigger makes the template reusable.
Key Configuration: Input Source set to Passthrough to receive all data from the parent execution.
Set Prompt Variables (Set n8n node):
Function: Constructs the necessary System and User message objects required by the Perplexity chat completion API.
Key Configuration: Dynamically pulls the User query using {{ $json.query }}.
Perplexity Research Content1 (HTTP Request n8n node):
Function: The core of the n8n automation, sending the request to api.perplexity.ai.
Key Configuration: Uses the sonar model, sets a low temperature (0.2) for accuracy, specifies maxtokens: 4000, and enables search integrity with returncitations: true and searchrecencyfilter: "month".
Extract API Response (Set n8n node):
Function: Cleans up the response by isolating the relevant text from the nested JSON structure returned by the API, ensuring a clean output from the n8n workflow.
Key Configuration: Extracts the content using the expression ={{ $json.choices[0].message.content }}.
Automate market research directly from Linear issues using this powerful n8n workflow. It uses the Scrapeless n8n node for data extraction and Claude 4 for AI summarization.

Build an AI research assistant using this advanced n8n workflow. It utilizes GPT-4o-mini, LangChain Agents, and Multi-Channel Platform (MCP) tools to dynamically answer complex questions about n8n.

Use this comprehensive n8n workflow to automatically track brand mentions on Reddit via Gmail, classify sentiment and intent using OpenAI, and store actionable insights in a Supabase dashboard.

Automate deep, factual research reports using the free Jina AI DeepSearch service. This advanced n8n workflow template processes complex API streams and formats clean Markdown output, making AI research accessible.

Use this comprehensive n8n workflow template to create an AI-powered restaurant booking assistant on Telegram. The automation handles conversational data gathering, Google Calendar scheduling, and sends rich HTML confirmation emails using OpenAI and core n8n nodes.

Automate high-quality restaurant newsletter creation using a sophisticated n8n workflow featuring AI agents, Mailchimp integration, and a Telegram-based Human-in-the-Loop (HITL) approval system. Explore these powerful n8n templates.









































