Use this specialized n8n workflow to leverage the power of Perplexity AI within your automation projects. Configure system prompts, user questions, and restrict searches to specific domains using a custom n8n node.
Download this n8n workflow template and start using it instantly.
While many LLMs provide robust natural language generation, Perplexity AI excels at providing grounded, cited answers based on real-time web searches. This n8n workflow is designed to streamline that integration. Instead of manually querying the API, this n8n template allows you to pre-define the AI's persona (systemprompt), the specific question (userprompt), and critically, a list of trusted domains (domains) the AI must restrict its search to.
This setup ensures your resulting content is highly relevant and grounded, making this n8n workflow essential for content research, competitive analysis, or automated fact-checking tasks. It demonstrates how easily powerful external services can be managed within an n8n environment using the HTTP Request n8n node.
This powerful n8n workflow follows a linear path, starting with a test trigger and concluding with structured output:
systemprompt), the query itself (userprompt), and the comma-separated domains (domains) to restrict the AI's search.To deploy this n8n template and run your first Perplexity query, follow these steps:
Bearer YOURAPIKEY (e.g., Bearer pplx-e4...).user_prompt and target domains (e.g., 'wikipedia.org, techcrunch.com'). When clicking ‘Test workflow’ (Manual Trigger n8n trigger):
Function: Starts the n8n workflow on command, essential for development and initial testing of this n8n template.
Set Params (Set n8n node):
Function: Defines the three crucial variables for the AI request: systemprompt, userprompt, and the domains array. This is the main point of configuration for the user.
Perplexity Request (HTTP Request n8n node):
Function: Executes the core AI operation. Sends a complex JSON payload specifying the 'sonar' model, the prompts, and the critical searchdomainfilter based on the input from the previous n8n node.
Key Configuration: Uses 'POST' method to https://api.perplexity.ai/chat/completions. Requires HTTP Header Authentication for the Perplexity API key.
Clean Output (Set n8n node):
* Function: Parses and formats the AI response, extracting the final message content into an output variable and the source URLs into a citations array. This cleans up the raw JSON output from the previous n8n node, making the data ready for further automation steps in your n8n workflow.
Use this powerful n8n workflow template to query your MySQL database using plain English via an AI Agent powered by OpenAI. This n8n workflow integrates multiple n8n node types for advanced data access.

Automate natural language queries for Monday.com tasks using this powerful n8n workflow. Integrate GPT-4o to analyze real-time board data instantly, eliminating manual searches.

Use this sophisticated n8n workflow to sync Google Sheets data to PostgreSQL, then query the database naturally using a Gemini AI Agent. Leverage powerful n8n templates for RAG.

Use this powerful n8n workflow to query PostgreSQL databases using natural language commands powered by a Groq AI agent. Simplify data access with these advanced n8n templates.

🎉 Do you want to master AI automation, so you can save time and build cool stuff? I’ve created a welcoming Skool community for non-technical yet resourceful learners.







































