> For the complete documentation index, see [llms.txt](https://raia2.gitbook.io/raia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raia2.gitbook.io/raia/ai-training/partner-training/raia-labs-training/part-1-prompt-engineering.md).

# Part 1: Prompt Engineering

{% embed url="<https://youtu.be/YcddUAWnZvQ?si=UuJf01nArUGBvgHT>" %}

Welcome to the first part of your training: Prompt Engineering. In this section, you will learn the art and science of crafting effective instructions for AI agents. The instructions you write, also known as system prompts, are the single most important factor in determining an agent's behavior, personality, and performance. A well-crafted prompt can mean the difference between an agent that is helpful and accurate, and one that is confused and unreliable.

Welcome to the first part of your training: Prompt Engineering. In this section, you will learn the art and science of crafting effective instructions for AI agents. The instructions you write, also known as system prompts, are the single most important factor in determining an agent's behavior, personality, and performance. A well-crafted prompt can mean the difference between an agent that is helpful and accurate, and one that is confused and unreliable.

This section will cover everything from the basic anatomy of an instruction to advanced techniques for controlling agent behavior. You will learn how to use AI assistants to help you write prompts, how to create effective routing sections to guide agents to the right knowledge sources, and the best practices that we follow at raiaLabs to ensure consistent quality across all our client deployments. By the end of this section, you will be able to create clear, concise, and effective instructions for any type of AI agent.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://raia2.gitbook.io/raia/ai-training/partner-training/raia-labs-training/part-1-prompt-engineering.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
