> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Perplexity

> Connect Perplexity to Rocket and add AI-powered search with cited, real-time answers to your app.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

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.
</Note>

<Divider />

## What you can do

<CardGroup cols={2}>
  <Card title="Research tool with citations" icon="book-open">
    Let users ask questions and get answers backed by linked sources from across the web.
  </Card>

  <Card title="Fact-checking assistant" icon="circle-check">
    Let users paste a claim and verify it against current web sources.
  </Card>

  <Card title="Competitive analysis tool" icon="chart-bar">
    Research competitors, market trends, or industry news with sourced summaries.
  </Card>

  <Card title="News aggregator" icon="newspaper">
    Aggregate and summarize the latest news on a topic with links to original articles.
  </Card>

  <Card title="Knowledge base Q&A" icon="database">
    Answer user questions using both internal data and live web sources, with full citations.
  </Card>
</CardGroup>

<Divider />

## Before you connect

<Card icon="link" horizontal href="https://docs.perplexity.ai/guides/getting-started#generate-an-api-key" arrow="true">
  **Get your Perplexity API key** from your Perplexity account.
</Card>

<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.
</Warning>

<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.
</Note>

<Divider />

## Connect Perplexity

<Tabs>
  <Tab title="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.

    <Frame caption="Perplexity connection prompt in chat">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-chat-light.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=847f1852fcf7d500f23c655de35bf7c6" alt="Perplexity connection prompt in the Rocket chat panel." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-chat-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-chat-dark.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=fa28c1c7a12c7f8528cc3835e0a2582d" alt="Perplexity connection prompt in the Rocket chat panel." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-chat-dark.webp" />
    </Frame>

    **Option 2: From the Connectors tab**

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

    <Frame caption="Open Connectors from the toolbar">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/2lqYWidv_xVHKfL6/images/build-docs/connectors/shared/connectors-tab-open-light.webp?fit=max&auto=format&n=2lqYWidv_xVHKfL6&q=85&s=7bd785a0e878564054e08328b2aa3d6b" alt="Toolbar dropdown with Connectors option highlighted." className="theme-image light-image" width="2880" height="1624" data-path="images/build-docs/connectors/shared/connectors-tab-open-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/2lqYWidv_xVHKfL6/images/build-docs/connectors/shared/connectors-tab-open-dark.webp?fit=max&auto=format&n=2lqYWidv_xVHKfL6&q=85&s=d047040372d776cb47e4e483de8eeb8d" alt="Toolbar dropdown with Connectors option highlighted." className="theme-image dark-image" width="2880" height="1624" data-path="images/build-docs/connectors/shared/connectors-tab-open-dark.webp" />
    </Frame>

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

    <Frame caption="Perplexity card in the Connectors panel">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-connectors-tab-light.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=55cb6a47403d06954413cdeaa0e3c9a0" alt="Connectors panel showing the Perplexity card with a Connect button." className="theme-image light-image" width="1815" height="522" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-connectors-tab-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-connectors-tab-dark.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=bd7b92e76b91542bb221491075d97fc7" alt="Connectors panel showing the Perplexity card with a Connect button." className="theme-image dark-image" width="1815" height="529" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-connectors-tab-dark.webp" />
    </Frame>

    **After clicking Connect**

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

    <Frame caption="Connect Perplexity popup">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-popup-light.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=92ea6412253c4b85018998e85ab5009e" alt="Connect Perplexity popup with an API key input field." className="theme-image light-image" width="840" height="500" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-popup-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-popup-dark.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=51e14b6dd36cb264c6f65d3d08972a73" alt="Connect Perplexity popup with an API key input field." className="theme-image dark-image" width="840" height="500" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-popup-dark.webp" />
    </Frame>

    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.

    <Frame caption="Edit and Disconnect options on a connected Perplexity card">
      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-disconnect-light.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=c85f95daf12c19a283af3853364e4282" alt="Perplexity card showing Edit and Disconnect buttons." className="theme-image light-image" width="1812" height="526" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-disconnect-light.webp" />

      <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/vpU7U-5j_1cvxMQa/images/build-docs/connectors/perplexity/web-browser/perplexity-disconnect-dark.webp?fit=max&auto=format&n=vpU7U-5j_1cvxMQa&q=85&s=2a47c6d2224262a0cde695cacbdc9be4" alt="Perplexity card showing Edit and Disconnect buttons." className="theme-image dark-image" width="1812" height="526" data-path="images/build-docs/connectors/perplexity/web-browser/perplexity-disconnect-dark.webp" />
    </Frame>
  </Tab>

  <Tab title="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.
  </Tab>
</Tabs>

<Divider />

## 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.`          |

<Divider />

## 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.
