PERPLEXITY_SEARCH with a required query. The optional model defaults to sonar. Set api_key for your own Perplexity key, or use the Jinba credit option.
Ask Perplexity a question
The Perplexity tool allows you to search the web for information. It is designed to provide quick and accurate answers to your queries by leveraging the power of AI and web search capabilities.Key Features
PERPLEXITY_SEARCH- Search for information on the web using a query string.
- Retrieve relevant results based on your input.
- Get answers to questions, summaries, and more.
Authentication
If you do not have a Perplexity API key, you can still run Perplexity tools by using Jinba API credit. If you’d like to use your own API key, you can obtain one from the official Perplexity website. Note: Treat API keys as sensitive information and never commit them to public repositories.Example: Run Perplexity Search
Inspect the answer and citations
The response includesresult.choices, result.citations, result.model, and result.usage. Read the answer from a choice’s message.content and review its citations before using it downstream. If the call fails, check the key or credit option and model.