Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Perplexity

connector.perplexity · ai

Web-grounded answers from the Perplexity Agent API and ranked web results from the Search API.

Vendor API documentation: https://docs.perplexity.ai

Authentication

MethodCredential kindAuth kindFieldsTest request
API keyperplexity/api_keybearertoken (secret)yes

Actions

Node type connector.perplexity. Choose a resource and an operation; each operation has its own parameters.

Agent response

Research answers that search the web and cite their sources.

OperationIDEffectPaginatedCassette tests
Ask a questionagent.askwrites3
Get a responseagent.getreads1
Cancel a background responseagent.cancelwrites1

Ask a question

Operation agent.ask. Sends a prompt to the Agent API and returns the answer with its sources.

NameTypeDefaultRequiredShown whenDescription
inputstringyesPrompt. The question or task for the agent.
effortoptions"fast"Preset that trades speed for depth of research. One of fast, low, medium, high, xhigh.
modelstringModel override. Run a specific model instead of an effort preset. Leave empty to use the preset.
instructionsstringSystem guidance applied to the whole response.
searchcollectionWeb search.
search.domain_filterstringDomains. Comma-separated domains to search. Prefix a domain with - to exclude it.
search.recencyoptionsPublished within. One of hour, day, week, month, year.
search.after_datestringPublished after (MM/DD/YYYY).
search.before_datestringPublished before (MM/DD/YYYY).
search.max_resultsnumber1 to 50.
search.countrystringUser country (ISO code).
include_imagesbooleanfalseInclude image results.
optionscollection
options.max_output_tokensnumber
options.temperaturenumber0 to 2. Ignored by some models.
options.top_pnumberTop P.
options.language_preferencestringResponse language (ISO 639-1).
options.previous_response_idstringContinue from response ID.
options.json_schemajsonStructured output schema. JSON Schema the answer must follow.
options.backgroundbooleanfalseRun in background. Return immediately with a queued response; fetch the result later with Get a response.
simplifybooleantrueSimplify output. Return only the answer text, sources and usage.

Get a response

Operation agent.get. Fetches a response by ID, for example one started in the background.

NameTypeDefaultRequiredShown whenDescription
response_idstringyesResponse ID.
simplifybooleantrueSimplify output.

Cancel a background response

Operation agent.cancel.

NameTypeDefaultRequiredShown whenDescription
response_idstringyesResponse ID.

Chat

Message-list chat interface kept for workflows built against the retired Sonar chat completions API.

OperationIDEffectPaginatedCassette tests
Send chat messageschat.completewrites1

Send chat messages

Operation chat.complete. Sends a list of messages and returns the answer. Sonar model names are translated to Agent API effort presets (sonar and sonar-pro to fast, sonar-reasoning-pro to low, sonar-deep-research to high).

NameTypeDefaultRequiredShown whenDescription
modeloptions"sonar"One of sonar, sonar-pro, sonar-reasoning, sonar-reasoning-pro, sonar-deep-research.
messagesfixed_collectionyes
messages.roleoptions"user"One of system, user, assistant.
messages.contentstringyes
optionscollection
options.max_tokensnumber
options.temperaturenumber
options.top_pnumberTop P.
options.search_domain_filterstringDomains. Comma-separated domains; prefix with - to exclude.
options.search_recency_filteroptionsPublished within. One of hour, day, week, month, year.
options.return_imagesbooleanfalse
simplifybooleantrueSimplify output. Return the answer text and sources only.

Ranked web results without an LLM answer.

OperationIDEffectPaginatedCassette tests
Search the websearch.queryreads2

Search the web

Operation search.query.

NameTypeDefaultRequiredShown whenDescription
querystringyesUp to 5 queries can be sent as a comma-separated list when Multiple queries is on.
multiple_queriesbooleanfalseSplit the query on commas and run each one.
max_resultsnumber101 to 20 (up to 50 for people search).
search_typeoptions"web"One of web, fast, people.
filterscollection
filters.countrystringCountry (ISO 3166-1 alpha-2).
filters.languagesstringLanguages (comma-separated ISO 639-1).
filters.domainsstringComma-separated; prefix with - to exclude.
filters.recencyoptionsPublished within. One of hour, day, week, month, year.
filters.after_datestringPublished after (MM/DD/YYYY).
filters.before_datestringPublished before (MM/DD/YYYY).
filters.updated_afterstringUpdated after (MM/DD/YYYY).
filters.updated_beforestringUpdated before (MM/DD/YYYY).
filters.snapshot_as_ofdatetimeSnapshot as of (RFC 3339).

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.perplexity>=1 <2unverified

Provenance

Written from the vendor’s documentation: