Perplexity
Use Perplexity AI for chat and search
Integrate Perplexity into the workflow. Can generate completions using Perplexity AI chat models or perform web searches with advanced filtering.
| Parameter | Type | Required | Description |
|---|
systemPrompt | string | No | No description |
content | string | Yes | No description |
model | string | Yes | Model to use for chat completions (e.g., "sonar", "sonar-pro", "sonar-reasoning") |
max_tokens | number | No | No description |
temperature | number | No | Sampling temperature between 0 and 1 (e.g., 0.0 for deterministic, 0.7 for creative) |
apiKey | string | Yes | No description |
pricing | custom | No | No description |
metadata | string | No | No description |
rateLimit | string | No | No description |
| Parameter | Type | Description |
|---|
content | string | Generated text content |
model | string | Model used for generation |
usage | object | Token usage information |
↳ prompt_tokens | number | Number of tokens in the prompt |
↳ completion_tokens | number | Number of tokens in the completion |
↳ total_tokens | number | Total number of tokens used |
Get ranked search results from Perplexity
| Parameter | Type | Required | Description |
|---|
query | string | Yes | No description |
max_results | number | No | No description |
search_domain_filter | array | No | List of domains/URLs to limit search results to (e.g., ["github.com", "stackoverflow.com"], max 20) |
max_tokens_per_page | number | No | No description |
country | string | No | No description |
search_recency_filter | string | No | Filter results by recency (e.g., "hour", "day", "week", "month", "year") |
search_after_date | string | No | No description |
search_before_date | string | No | No description |
apiKey | string | Yes | No description |
pricing | per_request | No | No description |
rateLimit | string | No | No description |
| Parameter | Type | Description |
|---|
results | array | Array of search results |
↳ title | string | Title of the search result |
↳ url | string | URL of the search result |
↳ snippet | string | Brief excerpt or summary of the content |
↳ date | string | Date the page was crawled and added to Perplexity's index |
↳ last_updated | string | Date the page was last updated in Perplexity's index |