AACFlow

Perplexity

Use Perplexity AI for chat and search

Usage Instructions

Integrate Perplexity into the workflow. Can generate completions using Perplexity AI chat models or perform web searches with advanced filtering.

Tools

perplexity_chat

Input

ParameterTypeRequiredDescription
systemPromptstringNoNo description
contentstringYesNo description
modelstringYesModel to use for chat completions (e.g., "sonar", "sonar-pro", "sonar-reasoning")
max_tokensnumberNoNo description
temperaturenumberNoSampling temperature between 0 and 1 (e.g., 0.0 for deterministic, 0.7 for creative)
apiKeystringYesNo description
pricingcustomNoNo description
metadatastringNoNo description
rateLimitstringNoNo description

Output

ParameterTypeDescription
contentstringGenerated text content
modelstringModel used for generation
usageobjectToken usage information
prompt_tokensnumberNumber of tokens in the prompt
completion_tokensnumberNumber of tokens in the completion
total_tokensnumberTotal number of tokens used

Get ranked search results from Perplexity

Input

ParameterTypeRequiredDescription
querystringYesNo description
max_resultsnumberNoNo description
search_domain_filterarrayNoList of domains/URLs to limit search results to (e.g., ["github.com", "stackoverflow.com"], max 20)
max_tokens_per_pagenumberNoNo description
countrystringNoNo description
search_recency_filterstringNoFilter results by recency (e.g., "hour", "day", "week", "month", "year")
search_after_datestringNoNo description
search_before_datestringNoNo description
apiKeystringYesNo description
pricingper_requestNoNo description
rateLimitstringNoNo description

Output

ParameterTypeDescription
resultsarrayArray of search results
titlestringTitle of the search result
urlstringURL of the search result
snippetstringBrief excerpt or summary of the content
datestringDate the page was crawled and added to Perplexity's index
last_updatedstringDate the page was last updated in Perplexity's index

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started