For AI agents: the complete documentation index is at llms.txt. Remove the trailing slash from a page URL and append .md to read its Markdown version. For the docs home, use index.md.

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

  1. Go to the Perplexity API Console.
  2. Log in or create an account, then create a project if you don't have one.
  3. Open your project's API Keys page.
  4. 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

  1. In Reflex Build, open the Integrations tab and select the Perplexity card.
  2. Click Add connection and paste your API key into PERPLEXITY_API_KEY.
  3. 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.