The instructions (also called the “prompt”) tell your Agent who it is, what it should do, and what it should avoid. A well-crafted prompt is the difference between an Agent that delivers consistent, high-quality results and one that produces unpredictable outputs.Documentation Index
Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
Use this file to discover all available pages before exploring further.
The three components
Every Agent prompt consists of three sections:1. Role / Purpose
Defines who the Agent is and what it’s trying to achieve. This sets the primary context for the LLM. Example:2. Behavior
Outlines how the Agent should work—the steps it takes, actions it uses, and the format of its output. This directly guides the Agent’s planning phase. Example:Action selection tip: Give each action a specific name and clear description.
The Agent uses these to decide which action to call and when.
3. Avoidances
Establishes what the Agent must NOT do. These guardrails prevent undesired actions and ensure compliance. Example:Best practices
| Practice | Why it matters |
|---|---|
| Be specific | Vague instructions lead to inconsistent results. Say “assign a score of 1-10” instead of “rate the lead” |
| Define output format | Specify exactly what the Agent should return (JSON, bullet points, a score, etc.) |
| List actions by name | Reference the exact action names so the Agent knows what’s available |
| Handle edge cases | Tell the Agent what to do when data is missing or an action fails |
| Test iteratively | Run test queries and refine the prompt based on actual outputs |

