> For the complete documentation index, see [llms.txt](https://vibemx.gitbook.io/neuronai-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vibemx.gitbook.io/neuronai-studio/getting-started/quickstart-first-agent.md).

# Quickstart: First Agent

Create, test, and export your first AI agent in under five minutes.

## What you will build

A support assistant agent with a system prompt, connected to an LLM provider, tested in the Playground, and exported as a PHP class.

## Prerequisites

* [Installation](/neuronai-studio/getting-started/installation.md) completed
* LLM provider credentials configured in `.env` (for example `OPENAI_KEY`)

## Step 1 — Open Agents

Navigate to **Agents** in the sidebar or visit:

```
/neuronai-studio/agents
```

Click **Create Agent**.

## Step 2 — Configure the agent

| Field        | Example value                                                                                         |
| ------------ | ----------------------------------------------------------------------------------------------------- |
| Name         | Support Assistant                                                                                     |
| Provider     | OpenAI                                                                                                |
| Model        | gpt-4o-mini                                                                                           |
| Instructions | You are a friendly customer support agent. Answer concisely and ask clarifying questions when needed. |

Save the agent.

## Step 3 — Test in the Playground

From the agent list, open **Playground**. Type a message such as:

```
I can't reset my password. What should I do?
```

The response streams token-by-token. If you bind tools later, tool-call events appear inline in the chat panel.

## Step 4 — Export to PHP (optional)

Generate a production-ready Neuron Agent class:

```bash
php artisan neuronai-studio:export agent {id}
```

Replace `{id}` with your agent's database ID. The file is written to `app/Neuron/Agents/` (configurable).

```mermaid
flowchart LR
    Studio[Agent Editor] --> DB[(neuronai_studio_agent_definitions)]
    Playground[Playground] --> Runner[AgentRunner]
    Runner --> Provider[Neuron LLM Provider]
    DB --> Export[AgentExporter]
    Export --> PHP[app/Neuron/Agents/SupportAssistant.php]
```

## Next steps

* [Creating Agents](/neuronai-studio/agents/creating-agents.md) — tool bindings, MCP servers, advanced config
* [Playground & Threads](/neuronai-studio/agents/playground-and-threads.md) — persisted conversation threads
* [Tools](/neuronai-studio/tools/overview.md) — give your agent custom capabilities
* [Export & Production](/neuronai-studio/workflows/export-and-production.md) — deploy exported classes


---

# 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://vibemx.gitbook.io/neuronai-studio/getting-started/quickstart-first-agent.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.
