⚒️ Generate AI Responses with Perplexity Sonar Models (Reusable Module)

433 views · ⚒️ Engineering

Description

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

Models supported

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

🔗 Nodes Used

HTTP Request, Execute Workflow Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup