Blocks
Perplexity
Use Perplexity AI chat models
Generate completions using Perplexity AI models with real-time knowledge and search capabilities. Create responses, answer questions, and generate content with customizable parameters.
Toolsperplexity
Block Preview
Perplexity
Use Perplexity AI chat models
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the perplexity block with monitoring enabled in production.
Inputs (UI)
System Prompt
long-inputPlaceholder: Optional system prompt to guide the model behavior...
Layout: full
User Prompt
long-inputPlaceholder: Enter your prompt here...
Layout: full
Model
dropdownLayout: half
Options: Sonar, Mistral, Claude-3-Opus, Claude-3-Sonnet
Temperature
sliderLayout: half
Max Tokens
short-inputPlaceholder: Maximum number of tokens
Layout: half
API Key
short-inputPlaceholder: Enter your Perplexity API key
Layout: full
Inputs (API)
prompt
stringRequired
system
stringOptional
model
stringRequired
max_tokens
stringOptional
temperature
stringOptional
apiKey
stringRequired
Outputs
Primary response type:
{
"content": "string",
"model": "string",
"usage": "json"
}Tool Access
perplexity_chat