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

# Create your first agent

> Set up an agent in the ReyGrid console and prepare it for testing.

An agent combines its selected model, instructions, and knowledge. Start with a narrow task so you can judge the answers and improve the setup quickly.

**1. Open Agents**

In the console, select **Agents** and choose the action to create an agent.

**2. Name the agent**

Choose a recognizable name between 3 and 20 characters.

**3. Choose a model**

Select an available model for the responses you need. Choices may depend on your workspace or plan.

**4. Write instructions**

Describe the role, audience, tone, and boundaries. The console requires 5 to 250 characters.

**5. Create and open it**

Save the agent, then open **Knowledge** to add source material. Its detail view also exposes the Playground and settings.

## Write useful instructions

State what the agent should do, what information it should rely on, and how to handle uncertainty. For example:

```text theme={"system"}
You help customers understand our return policy. Answer in clear, friendly language using the available policy information. If the policy does not answer a question, say so and direct the customer to support.
```

Use this as a starting point, then test realistic questions in the [Playground](https://docs.reygrid.com/platform/test-improve.md).

## Next step

Add the material the agent should use in [Knowledge](https://docs.reygrid.com/platform/knowledge.md), then test before connecting production traffic.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.