Automate AI-Powered Comparisons with n8n and Perplexity
detail.loadingPreview
Leverage n8n's workflow automation to query Perplexity's AI for insightful comparisons between services, like n8n and Make. This workflow streamlines the process of gathering and cleaning AI-generated insights for detailed analysis.
About This Workflow
This n8n workflow automates the process of gathering AI-powered insights by integrating with the Perplexity API. It's designed to answer specific user prompts, such as comparing two platforms like n8n and Make. The workflow begins with a manual trigger, allowing users to initiate the process. It then sets up key parameters, including system and user prompts, and specifies relevant domains for the AI search. The core of the workflow is an HTTP Request node that queries the Perplexity API using the "sonar" model, configured with specific parameters for a focused and relevant response. Finally, a 'Clean Output' node processes the API response, extracting the main content and any generated citations, making the AI-generated information readily usable.
Key Features
- Automated AI Queries: Easily send complex questions to Perplexity's AI.
- Customizable Prompts: Define system and user prompts to guide the AI's responses.
- Domain Filtering: Narrow down search results to specific websites.
- Clean Data Output: Extract and format AI-generated content and citations.
- Manual Trigger: Initiate workflows on demand for on-the-fly analysis.
How To Use
- Set Credentials: Obtain an API key from Perplexity.ai and configure it in the 'Perplexity Request' node under Generic Credentials > Header Auth, using 'Authorization' as the name and 'Bearer YOUR_PERPLEXITY_API_KEY' as the value.
- Define Prompts: In the 'Set Params' node, customize the
system_promptanduser_promptvariables to define the AI's persona and your specific query. - Specify Domains: Update the
domainsvariable in the 'Set Params' node with the URLs you want Perplexity to focus on. - Configure Model (Optional): In the 'Perplexity Request' node, you can change the
modelparameter if you wish to use a different Perplexity model. Refer to the Perplexity documentation for available models. - Test Workflow: Click the 'Test workflow' button to execute the automation and receive the AI-generated output in the 'Clean Output' node.
Apps Used
Workflow JSON
{
"id": "32bd0bab-36a8-4821-95e8-f2b84fdd76ca",
"name": "Automate AI-Powered Comparisons with n8n and Perplexity",
"nodes": 22,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 32bd0bab-36a8...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.
Effortless Bug Reporting: Slack Slash Command to Linear Issue
Streamline your bug reporting process by instantly creating Linear issues directly from Slack using a simple slash command. This workflow enhances team collaboration by providing immediate feedback and a structured approach to logging defects, saving valuable time for development and QA teams.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.