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

# Perplexity Web Search

### **Overview:**

The `Perplexity Web Search` block provides a mechanism for leveraging online resources to retrieve relevant responses using real-time information. This is especially beneficial when you require AI-generated answers that are accurate and grounded in the latest data available on the web.

<Note>
  Pro and Enterprise Keyflow accounts can add their own API Keys for unlimited
  block execution and aid with usage management. Navigate to
  [credentials](https://keyflow.space/settings/credentials) page to add your
  Perplexity API key.
</Note>

***

### Inputs & Outputs

| I/O    | Feature    | Type     | Simple Explanation                                                                              |
| ------ | ---------- | -------- | ----------------------------------------------------------------------------------------------- |
| input  | `query`    | string   | The specific search query to obtain relevant web responses.                                     |
| input  | `model`    | selector | Choose from options like `sonar-small-online` and `small-medium-online` for inference purposes. |
| output | `response` | string   | The generated response derived from the provided input query.                                   |

***

### Use Cases

Consider how this block can streamline processes in various contexts:

* **Quick Information Retrieval:** When needing accurate, up-to-date details on trending topics or specific queries, this block efficiently fetches needed information from the web.
* **Real-Time Data Analysis:** Perfect for scenarios where timely statistics or figures are essential, allowing immediate insights based on current online data.
* **Market Research:** When conducting market analysis, utilize this block to gather recent insights from various sources, aiding decision-making.
* **Current Events Monitoring:** Track ongoing developments by fetching live updates about current events directly from reliable online outlets.
* **Answering User Queries:** Enhance user interaction by providing swift responses powered by recent information sourced directly from the web.

In summary, the `Perplexity Web Search` block serves as an invaluable tool for obtaining relevant and real-time information across a multitude of applications including analysis and research activities.
