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.