# Perplexity Search

> Tool author @Dify.

{% hint style="warning" %}
"Tools" has been fully upgraded to the "Plugins". For more details, please refer to [Install and Use Plugins](https://docs.dify.ai/plugins/quick-start/install-plugins). The content below has been archived.
{% endhint %}

Perplexity is an AI-based search engine that can understand complex queries and provide accurate, relevant real-time answers. Here are the steps to configure and use the Perplexity Search tool in Dify.

## 1. Apply for Perplexity API Key

Please apply for an API Key at [Perplexity](https://www.perplexity.ai/settings/api), and ensure that your account has sufficient Credits.

## 2. Fill in the configuration in Dify

In the Dify navigation page, click on `Tools > Perplexity > Go to authorize` to fill in the API Key.

![](https://3866086014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRncMhlfeYTrpujwzDIqw%2Fuploads%2Fgit-blob-a0799f53f5cd1ef810d7cf77121a2cc4e996be9a%2Ftools-perplexity.png?alt=media)

## 3. Using the tool

You can use the Perplexity Search tool in the following application types.

* **Chatflow / Workflow applications**

Both Chatflow and Workflow applications support adding Perplexity tool nodes. Pass the user's input content through variables to the "Query" box in the Perplexity tool node, adjust the built-in parameters of the Perplexity tool as needed, and finally select the output content of the Perplexity tool node in the response box of the "End" node.

![](https://3866086014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRncMhlfeYTrpujwzDIqw%2Fuploads%2Fgit-blob-65ddfbebf44d8ca131bea795e428bd40112c4cd7%2Ftools-chatflow-perplexity.png?alt=media)

* **Agent applications**

Add the `Perplexity Search` tool in the Agent application, then enter relevant commands to invoke this tool.

![](https://3866086014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRncMhlfeYTrpujwzDIqw%2Fuploads%2Fgit-blob-d56fc623b2e029da08d88d1649b0fbd5cc229832%2Ftools-agent-perplexity.png?alt=media)
