Query Perplexity AI in n8n Workflows

n8n AI Dev Ops Productivity

Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.

This workflow illustrates how to use Perplexity AI in your n8n workflow.

Perplexity is a free AI-powered answer engine that provides accurate, trusted, and real-time answers to any question.

Credentials Setup

1. Go to the Perplexity dashboard, purchase some credits, and create an API Key.

2. In the Perplexity Request node, use Generic Credentials, Header Auth.

- For the name, use the value "Authorization".

- For the value "Bearer pplx-e4...59ea" (Your Perplexity API Key).

AI ModelSonar Pro is the current top model used by Perplexity. If you want to use a different one, check the model cards on their documentation.

Tools used: Perplexity AI

Download the workflow template (JSON)

Original tutorial

Want this running in your business? KOBA42 builds and operates automations like this one.