> ## Documentation Index
> Fetch the complete documentation index at: https://dhiwisepvtltd-5e04e6a4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Perplexity

> Integrate Perplexity into Rocket.new to add AI-powered search that returns real-time answers with cited sources for research and Q&A features.

Connect your Perplexity API key and describe the search feature you need in chat. Rocket handles all the integration code automatically so you can focus on what your features should do.

> [!NOTE]
>
> This connector is only available for **Next.js TypeScript** web build tasks.

## What you can do

> **Research tool with citations**
>
> Let users ask questions and get answers backed by linked sources from across the web.

> **Fact-checking assistant**
>
> Let users paste a claim and verify it against current web sources.

> **Competitive analysis tool**
>
> Research competitors, market trends, or industry news with sourced summaries.

> **News aggregator**
>
> Aggregate and summarize the latest news on a topic with links to original articles.

> **Knowledge base Q\&A**
>
> Answer user questions using both internal data and live web sources, with full citations.

## Before you connect

> **Get your Perplexity API key** from your Perplexity account.
>
> [Open](https://docs.perplexity.ai/guides/getting-started#generate-an-api-key)

> [!WARNING]
>
> Never paste your API key directly into chat. Always use the secure connector flow. If you believe your key has been exposed, rotate it immediately from your Perplexity account.

> [!NOTE]
>
> The API key is scoped to the task you connect it in. Each task stores its own key. Connecting in one task does not affect others.

## Connect Perplexity

**Web Browser**

You can connect from two places. Both open the same popup.

**Option 1: From chat**

Type a prompt that mentions Perplexity, for example `Connect Perplexity and add a search bar that answers user questions with cited sources`. Rocket detects the intent and shows a **Connect** button inline. Click it and the popup opens.

![Perplexity connection prompt in the Rocket chat panel.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-chat-light.webp)

![Perplexity connection prompt in the Rocket chat panel.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-chat-dark.webp)

Perplexity connection prompt in chat

**Option 2: From the Connectors tab**

Click the **`...`** button in the preview toolbar, then select **Connectors**.

Open Connectors from the toolbar

Click the **Perplexity** card, then click **Connect**.

![Connectors panel showing the Perplexity card with a Connect button.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-connectors-tab-light.webp)

![Connectors panel showing the Perplexity card with a Connect button.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-connectors-tab-dark.webp)

Perplexity card in the Connectors panel

**After clicking Connect**

A popup opens. Paste your **API key** and click **Connect**.

![Connect Perplexity popup with an API key input field.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-popup-light.webp)

![Connect Perplexity popup with an API key input field.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-popup-dark.webp)

Connect Perplexity popup

A green dot appears next to Perplexity when the connection is active.

**Update or disconnect**

Go to [**Connectors > Perplexity**](#connect-perplexity). Click **Edit** to update the key or **Disconnect** to remove the integration.

![Perplexity card showing Edit and Disconnect buttons.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-disconnect-light.webp)

![Perplexity card showing Edit and Disconnect buttons.](https://mintlify.s3.us-west-1.amazonaws.com/dhiwisepvtltd-5e04e6a4/images/build/connectors/perplexity/web-browser/perplexity-disconnect-dark.webp)

Edit and Disconnect options on a connected Perplexity card

**Mobile App**

Open the task in the Rocket mobile app. Tap the **More** button in the header, then tap **Connectors**. Tap the **Perplexity** card and enter your API key.

## Example prompts

| Use case | Prompt |
| :- | :- |
| Search bar | `Add a search bar that uses Perplexity to answer user questions with cited sources.` |
| Fact-checker | `Build a fact-checking tool where users paste a claim and get a verified answer with sources.` |
| Research assistant | `Create a research panel where users enter a topic and get a summary with linked references.` |
| News feed | `Build a news aggregator that shows the latest headlines and summaries on a chosen topic.` |
| Competitor tracker | `Add a competitor analysis page where users enter a company name and get recent news and updates.` |
| Product comparison | `Create a product comparison tool that researches specs and pricing from across the web.` |
| Knowledge Q\&A | `Create a Q&A page where users ask questions and get answers sourced from our docs and the web.` |
| Trend monitor | `Build a dashboard that tracks trending topics in a specific industry with source links.` |

## Tips

* **Best for factual, search-based tasks.** For creative writing, code generation, or open-ended conversation, use Anthropic or OpenAI instead.
* **Citation quality varies by topic.** Perplexity pulls from live web results, so niche or very recent topics may have fewer high-quality sources.
* **Rate limits apply.** Monitor usage in your Perplexity dashboard to avoid hitting caps during high traffic.
* **API billing is separate from Rocket.** Perplexity charges based on API usage. See their [pricing page](https://docs.perplexity.ai/guides/pricing).
* **Key is scoped to this task.** Each Rocket task connects to one Perplexity API key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.