# Examples (/docs/build/examples)



The generated registry contains one **Order assistant** with a `lookup_order`
tool:

```sh
npm create @nylorun/agent my-agent
cd my-agent
npx nylorun up
npx @nylorun/cli tenant create
npm run dev
```

The [Agents repository examples](https://github.com/nylorun/agents/tree/main/examples/agents)
show instructions, tools, hooks, MCP, sandbox, skills, plugins, subagents, and
media-oriented agents. Copy definitions and capabilities into your own
`agents/` tree; do not copy credentials or generated data.

## Workflow examples [#workflow-examples]

Six runnable examples demonstrate the workflow primitives:

| Example                                                                                    | Pattern                                                     |
| ------------------------------------------------------------------------------------------ | ----------------------------------------------------------- |
| [`chain`](https://github.com/nylorun/agents/tree/main/examples/agents/chain)               | Run nodes in order and pass output through slots.           |
| [`switch`](https://github.com/nylorun/agents/tree/main/examples/agents/switch)             | Choose one branch from input.                               |
| [`parallel`](https://github.com/nylorun/agents/tree/main/examples/agents/parallel)         | Run independent branches concurrently.                      |
| [`map`](https://github.com/nylorun/agents/tree/main/examples/agents/map)                   | Apply a node to every input item.                           |
| [`loop`](https://github.com/nylorun/agents/tree/main/examples/agents/loop)                 | Repeat a body until its condition is satisfied.             |
| [`ship-feature`](https://github.com/nylorun/agents/tree/main/examples/agents/ship-feature) | Combine agents and control-flow nodes in a larger workflow. |

Start a new Studio session after changing a definition. Existing sessions stay
pinned to the manifest with which they started unless an input supplies a turn
manifest.

## Next step [#next-step]

Learn to [add a typed tool](/docs/build/tools), [compose workflows](/docs/build/workflows),
or inspect execution in [Studio](/docs/studio).
