- Home
- Resources
- Integrations
- Perplexity
Perplexity n8n integrationAutomate Perplexity with n8n.
Need sourced web answers inside a workflow? The Perplexity n8n integration fits in a single node: 5 operations spread across 4 resources, from Sonar chat completions to embeddings and raw web search. Nothing on the Perplexity side starts a run, so the workflow begins elsewhere.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Perplexity n8n integration actually do?
The Perplexity node ships with n8n and exposes 5 operations across 4 resources: Chat, Agent, Search and Embedding. It calls the Perplexity API with your own API key, so a workflow can put a question to a Sonar model, hand a multi-step task to an agent, pull ranked web results, or turn text into vectors. Nothing gets installed, and the same credential works on n8n Cloud and on a self-hosted instance.
Three jobs come up again and again. The first is a morning market brief: a Schedule Trigger fires, chat.complete asks a Sonar model what moved in your category, and the answer lands in Slack with its citations attached. If the brief belongs in an inbox instead, Gmail takes the delivery step.
The second is lead research. A new row shows up, search.search pulls ranked results about the company, and the summary goes back to Google Sheets next to the contact. The third is retrieval: embedding.createEmbedding turns product docs into vectors for a knowledge base, and embedding.createContextualized does the same for long documents where a chunk on its own means very little.
Reach for the HTTP Request node when the API exposes something this node does not. It calls any Perplexity endpoint and reuses the same credential through predefined authentication, so there is no second key to manage.
Two limits are worth knowing before you build. Perplexity has no trigger node in n8n, which means nothing on its side can start a workflow: that job goes to a Schedule Trigger, an n8n Webhook (a URL another service calls when something happens), or the trigger of a tool already in the picture. And a few options depend on the usage tier of the Perplexity API account: Return Images and Return Related Questions need Tier-2, while Search Domain Filter needs Tier-3 and accepts 3 domains at most.
If the open question is the platform rather than the node, the n8n review goes through the criteria. The short version here: the node itself costs nothing on the n8n side, and what gets consumed is consumed against your own Perplexity API key.
How do you connect Perplexity to n8n?
- 01
Generate a Perplexity API key
Sign in to your Perplexity account and create an API key, following the steps in the Perplexity API getting started guide. That key is the only thing this integration asks for: no OAuth screen, no scope to tick, no app to register on the Perplexity side. Copy it before you leave the page and keep it somewhere safe.
- 02
Store the credential in n8n
In n8n, open the Credentials menu and add a new Perplexity credential, the saved connection a node reuses to authenticate itself. It has one field to fill, the Perplexity API key. Once saved, it shows up in the dropdown of every Perplexity node in the instance, and rotating the key later is a change you make in one place.
- 03
Pick a resource and run the node once
Drop a Perplexity node into a workflow, select the credential, then choose the resource (Chat, Agent, Search or Embedding) and its operation. Run the node on its own with a short prompt before wiring anything upstream. The output panel shows the exact shape of the response, which is what you reference further down with an expression such as
{{ $json.field }}.
What can the Perplexity node do?
The Perplexity node exposes 5 operations across 4 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Message a Model | Create Contextualized Embedding | Create Embedding | Create Response | Search |
|---|---|---|---|---|---|
| Agent | ✓ | ||||
| Chat | ✓ | ||||
| Embedding | ✓ | ✓ | |||
| Search | ✓ |
Operations index
Agent
1 operationCreate a response
agent.createResponseWhat you see in n8n
Notes & use cases
The Agent resource hands a whole task to Perplexity rather than a single question: it chains its own steps, searches and uses tools before writing the final response.
Key parameters
- Input: the text prompt the agent starts from, often
{{ $json.field }}carried in by the node before. - Model: the model to run, in
provider/modelform. Leave it empty when a preset already holds the setup. - Preset: the name of a saved configuration. Use a preset or a model, never both.
- Max Steps: caps the agentic steps between 1 and 10, so a long task stays bounded.
Chat
1 operationMessage a model
chat.completeWhat you see in n8n
Notes & use cases
Sends a conversation to a Sonar model and brings back the completion together with the citations behind it.
Key parameters
- Model: one of
sonar,sonar-pro,sonar-reasoning-proandsonar-deep-research. - Messages: each entry carries a Role and its Text; system messages come first, then user and assistant alternate.
- Search Recency Filter: restricts the sources to the last Hour, Day, Week, Month or Year.
Embedding
2 operationsCreate an embedding
embedding.createEmbeddingWhat you see in n8n
Notes & use cases
Converts text into vectors, the numeric form a vector database needs in order to retrieve a passage by meaning instead of by exact word.
Key parameters
- Input Texts: the text to embed, one text per line; every line comes back as its own vector.
- Model:
pplx-embed-v1-0.6borpplx-embed-v1-4b. - Dimensions: shortens the output vector; left at 0 or unset, the full model size is used.
Create a contextualized embedding
embedding.createContextualizedWhat you see in n8n
Notes & use cases
Embeds the chunks of a document while keeping the rest of that document in view, so a paragraph that only says "the same applies here" still carries what it refers to.
Key parameters
- Input Documents: a JSON array of documents, each document being an array of paragraph strings.
- Model:
pplx-embed-context-v1-4b, the single choice on this operation. - Encoding Format: Base64 Int8 or Base64 Binary; float is not supported on this endpoint.
Search
1 operationSearch the web
search.searchWhat you see in n8n
Notes & use cases
Returns ranked web results with their extracted content and no written answer on top, which is what you want when the workflow does the reading.
Key parameters
- Query: the search string, often assembled from an earlier field with an expression.
- Max Results: how many results come back, from 1 to 20.
- Search Domain Filter: narrows the search to a list of domains, 20 at most.
- Country: the ISO 3166-1 alpha-2 country code that localizes the results.
Need help automating Perplexity with n8n?
A person reads every message.

