Automate AI-Powered Comparisons with Perplexity and n8n
detail.loadingPreview
Streamline your competitive analysis by automating AI-driven comparisons between products or services. This n8n workflow leverages Perplexity AI to gather detailed insights, saving you time and manual research.
About This Workflow
This n8n workflow empowers you to automate in-depth comparisons using the power of Perplexity AI. By triggering a manual workflow, you can initiate a request to Perplexity's sophisticated AI models, specifically designed to analyze and contrast information. The workflow is pre-configured to ask pointed questions, like the differences between n8n and Make, and can be easily adapted to compare any two entities. It intelligently fetches data from specified domains, ensuring the comparison is relevant and focused. The output is then meticulously cleaned, separating the core comparative analysis from any supporting citations, providing you with actionable intelligence for your business or personal research needs.
Key Features
- Automated AI-Driven Comparisons: Leverage Perplexity AI to automatically generate detailed comparisons between any two subjects.
- Customizable Prompts: Easily define system and user prompts to tailor the AI's focus and the type of information you need.
- Domain-Specific Research: Specify relevant websites or domains for Perplexity to draw information from, ensuring focused and accurate results.
- Cleaned and Structured Output: Automatically separates the main comparative content from citations for easy consumption and use.
- Manual Trigger for Control: Initiate comparisons manually, giving you full control over when and what data is generated.
How To Use
- Set Up Perplexity API Credentials:
- Go to your Perplexity dashboard, purchase credits, and generate an API key from https://www.perplexity.ai/settings/api.
- In the n8n workflow, navigate to the 'Perplexity Request' node.
- Select 'Generic Credentials', then 'Header Auth'.
- For 'Name', enter 'Authorization'.
- For 'Value', enter 'Bearer YOUR_PERPLEXITY_API_KEY' (replace YOUR_PERPLEXITY_API_KEY with your actual key).
- Configure Input Parameters:
- In the 'Set Params' node, customize the
system_promptanduser_promptto define the AI's persona and the core question you want answered. - Update the
domainsparameter with the relevant websites for the comparison.
- In the 'Set Params' node, customize the
- Select AI Model (Optional):
- The 'Perplexity Request' node defaults to the 'sonar' model. If you wish to use a different model, consult the Perplexity documentation (https://docs.perplexity.ai/guides/model-cards) and update the
modelfield within the 'Perplexity Request' node's JSON body.
- The 'Perplexity Request' node defaults to the 'sonar' model. If you wish to use a different model, consult the Perplexity documentation (https://docs.perplexity.ai/guides/model-cards) and update the
- Run the Workflow:
- Click the 'Test workflow' button on the manual trigger node ('When clicking ‘Test workflow’') to execute the automation.
- Review Output:
- The 'Clean Output' node will process the Perplexity response, providing the comparison in the
outputfield and any relevantcitations.
- The 'Clean Output' node will process the Perplexity response, providing the comparison in the
Apps Used
Workflow JSON
{
"id": "dbb196dd-46ed-4652-a849-c3dbe55b4270",
"name": "Automate AI-Powered Comparisons with Perplexity and n8n",
"nodes": 27,
"category": "Marketing",
"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: dbb196dd-46ed...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automated AI Motion Illustration Workflow with Midjourney and Kling
Unleash your creativity with this n8n workflow that automates the generation of stunning motion illustrations. It leverages the power of Midjourney for static image creation and Kling AI to transform them into dynamic videos, all managed through the PiAPI. Perfect for content creators, marketers, and social media professionals looking to produce engaging visuals at scale.
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.