Generate AI Responses with Perplexity Sonar Models (Reusable Module)
Perplexity API Module
This reusable workflow allows you to interact with the Perplexity API using the sonar or sonar-pro models. It is designed to be triggered from other workflows and accepts dynamic prompts via input parameters.
Features
🧱 Modular: Triggered using Execute Workflow from any other workflow 📥 Inputs: SystemPrompt: Set your system-level instruction for the LLM UserPrompt: The main user prompt for the conversation 🧠 Uses Perplexity’s chat/completions endpoint 🔐 Built with API authentication in mind (Bearer token or header auth) 🔁 Easily extendable for any model in the Perplexity suite
Models supported
sonar
sonar-pro
See full model list and capabilities
Usage
Set up your credentials in n8n under HTTP Bearer or Header Auth. Add this workflow as a subworkflow using the “Execute Workflow” node. Pass the desired SystemPrompt and UserPrompt as input variables. Receive the model response in return.
Notes
This template is inactive by default and safe to import. Includes sticky notes with API references and model info.
Related Templates
Restore your workflows from GitHub
This workflow restores all n8n instance workflows from GitHub backups using the n8n API node. It complements the Backup ...
Verify Linkedin Company Page by Domain with Airtop
Automating LinkedIn Company URL Verification Use Case This automation verifies that a given LinkedIn URL actually belo...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments