Harsh ChhajerAI and Design Engineer

Perplexity - Prompt Guide

Learn to write effective prompts for the Agent API.

Screenshot of the docs.perplexity.ai homepage

Understand Agent API Prompts

You will learn how to write effective prompts specifically for the Agent API. This guide explains how prompts influence tool selection, search query generation, and final responses.

Use Instructions Parameter

Use the instructions parameter to set the role, tone, formatting, and grounding rules for your agent. These instructions apply on every turn of the agent loop, regardless of the user's question.

Optimize Input Parameter

The input parameter holds the actual question and seeds the first search query. Specificity here directly improves retrieval, helping you get more accurate and relevant results.

Curated by · Added

Something wrong or out of date? Report an issue with this page

Be the first to know
about every new tool.