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

# Perplexity connector

> Let the agent search the web and get cited answers through your Perplexity API key while it generates.

The Perplexity connector lets the agent search the web and get cited answers. Use it to bring current facts, sources and research into what it builds.

![The Connect Polymet to Perplexity dialog with the API key field and the Save key button](https://mintcdn.com/polymet/TfIzLh80_L4bW9xQ/images/docs/connectors/perplexity-api-key.png?fit=max\&auto=format\&n=TfIzLh80_L4bW9xQ\&q=85\&s=45e5abbacd6dee06f703870d751c4687)

## What the agent can do

* Search the web
* Ask a question and get an answer with its sources
* Reason through a harder question step by step

Perplexity's long-running research mode is not available through the connector.

## What it costs

Searches spend your Perplexity API credits. They are billed by Perplexity, not by Polymet.

## Connect

Perplexity connects with an API key.

1. Create a key on [Perplexity's API keys page](https://console.perplexity.ai/project/keys).
2. In Polymet, click **Agent connectors** in the generation input.
3. Find **Perplexity** and click **Connect**.
4. Paste the key into **API key** and click **Save key**.

The card then shows the key's last four characters.

## Try it

```text theme={null}
Use Perplexity to find the current EU rules on cookie banners, then build
a banner that follows them and link the sources in a comment.
```

```text theme={null}
Research the three most common pricing models for B2B analytics tools
and write the comparison section of our pricing page from what you find.
```

## Related

* [Agent connectors](https://docs.polymet.ai/connectors/agent-connectors.md) — approving calls, accept-all, turning a connector off, disconnecting


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