Query Perplexity AI from your n8n workflows

Go to Workflow
21,101 views
Built by Emmanuel Bernard - n8n Expert Lausanne Emmanuel Bernard - n8n Expert Lausanne
Created on June 05, 2026

Description

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

https://www.perplexity.ai/settings/api

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

For the name, use the value "Authorization"
And for the value "Bearer pplx-e4...59ea" (Your Perplexity Api Key)

AI Model
Sonar Pro is the current top model used by perplexity.
If you want to use a different one, check this page:

https://docs.perplexity.ai/guides/model-cards

Nodes Used (1)

HTTP Request
n8n-nodes-base.httpRequest