Tools
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
Generate completions using Perplexity AI chat models
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
systemPrompt | string | No | System prompt to guide the model behavior |
content | string | Yes | The user message content to send to the model |
model | string | Yes | Model to use for chat completions (e.g., sonar, mistral) |
max_tokens | number | No | Maximum number of tokens to generate |
temperature | number | No | Sampling temperature between 0 and 1 |
apiKey | string | Yes | Perplexity API key |
Output
| Parameter | Type | Description |
|---|---|---|
content | string | Generated text content |
model | string | Model used for generation |
usage | object | Token usage information |
perplexity_search
Get ranked search results from Perplexity's continuously refreshed index with advanced filtering and customization options
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | A search query or array of queries (max 5 for multi-query search) |
max_results | number | No | Maximum number of search results to return (1-20, default: 10) |
search_domain_filter | array | No | List of domains/URLs to limit search results to (max 20) |
max_tokens_per_page | number | No | Maximum number of tokens retrieved from each webpage (default: 1024) |
country | string | No | Country code to filter search results (e.g., US, GB, DE) |
search_recency_filter | string | No | Filter results by recency: hour, day, week, month, or year |
search_after_date | string | No | Include only content published after this date (format: MM/DD/YYYY) |
search_before_date | string | No | Include only content published before this date (format: MM/DD/YYYY) |
apiKey | string | Yes | Perplexity API key |
Output
| Parameter | Type | Description |
|---|---|---|
results | array | Array of search results |
Notes
- Category:
tools - Type:
perplexity