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

# Build a Play | Human guide

> Have your agent build a custom Play around a defined result.

```deepline-prompt theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Build a custom Play for [outcome] from [inputs]. Show the checked source and a small pilot plan.
```

The agent returns custom Play source for your result and acceptance rules. It
can compose existing Plays and tools as building blocks.

Connect your agent to the intended org through [Installation](https://deepline.com/docs/use-with-an-agent.md).
Provide example inputs, expected outputs, source identities, and acceptance
rules. State which external writes are permitted. The agent checks the source
before proposing a sample and its expected usage. Keep external writes disabled
for the first sample.

## When the process needs business states

For durable business states and transitions across runs, choose the
[Engine pattern](https://deepline.com/docs/plays/engines.md) and its `/deepline-engine` entry point. Confirm
the state matrix, transition rules, identity, and terminal behavior before
publication; a scheduled Play alone does not make an Engine.

> [!TIP]
>
> * Review actual results and row errors against your acceptance rules. A completed run can still contain unresolved records.
> * Before enabling external writes, confirm the exact acceptance conditions and review the proposed destination changes.
> * Publishing changes what callers of the Play name execute. Check the live version against the approved source.

## Related guides

* [Choose a prebuilt Play](https://deepline.com/docs/human/sdk-v2/prebuilt-plays.md)
* [Use a CSV as Play input](https://deepline.com/docs/human/sdk-v2/batch-csv.md)
* [Schedule or trigger a Play](https://deepline.com/docs/human/sdk-v2/webhooks-and-schedules.md)
* [Engines](https://deepline.com/docs/plays/engines.md)

[Review and operate a workflow](https://deepline.com/docs/human/templates.md#review-and-operate-a-workflow) covers org access, pilots, usage, and approval.

[Agent guide: CLI and SDK instructions →](https://deepline.com/docs/sdk-v2/plays.md)


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