Perplexity Integration
The Perplexity Integration allows your app to use Perplexity to deliver fast, accurate, retrieval-augmented answers from the web and trusted sources. Once connected, you can use Perplexity to enhance search, summarization, and real-time knowledge in your workflows.
What You Can Do
With Perplexity, your app can:
- Retrieve real-time information from the web to ground model outputs.
- Generate concise summaries and answers with citations.
- Power search experiences, research assistants, and contextual AI features.
- Combine Perplexity with other models for hybrid workflows (e.g., retrieval + reasoning).
- Enable trusted, source-backed outputs for more accurate responses.
Step 1: Obtain a Perplexity API Key
- Go to the Perplexity API Console.
- Log in or create an account, then create a project if you don't have one.
- Open your project's API Keys page.
- Generate a new key and copy it right away; the full key is shown only once.
- Example:
pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Step 2: Configure the Integration in Your App
- In Reflex Build, open the Integrations tab and select the Perplexity card.
- Click Add connection and paste your API key into PERPLEXITY_API_KEY.
- Click Connect to save the connection.
Once connected, your app can use Perplexity for retrieval-augmented AI features across workflows and components.
Step 3: Notes
- Keep your key secure: Do not hardcode your Perplexity API key in public code repositories.
- Use environment-specific keys: Separate dev, staging, and production keys for better control.
- Secure API access: The key allows your app to interact with Perplexity endpoints securely and efficiently.
- Real-time power: Perplexity is ideal for use cases where freshness and factual grounding matter.