Templates / Generate AI Responses with Perplexity Sonar Models (Reusable Module)

Generate AI Responses with Perplexity Sonar Models (Reusable Module)

Ready for 3.0

by Aleksey Panov · 493 views · created 2025-06-16 · Engineering, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (3)

What it does

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 1. Set up your credentials in n8n under HTTP Bearer or Header Auth. 2. Add this workflow as a subworkflow using the “Execute Workflow” node. 3. Pass the desired SystemPrompt and UserPrompt as input variables. 4. 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.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.