# Basic agent

Example of the simplest OrchaJS text chat agent with configuration and instructions.

Source: https://orcha.sh/docs/tutorial/basic-agent
Markdown: https://orcha.sh/docs/tutorial/basic-agent.mdx

<CodeExplorer {...basicAgentExample} className="tutorial-code-explorer" />

## The simplest text chat agent

The project above is an example of the simplest text chat agent you can build
with Orcha. It has a model configuration, instructions, one registry entry,
and ordinary application code that runs it.

It can answer order-support questions from its instructions, but it cannot
look up real order data yet. Its instructions therefore prevent it from
inventing order details. The next tutorials add skills, actions, client
actions, and subagents to this same project.

Select any file in the editor to inspect the complete example.

## Understand each file

<TutorialFileReference files={basicAgentFiles} />

Next: [add a skill](/docs/tutorial/skills).
