> ## 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.

# Call Plays from Python or HTTP | Human guide

> Have your agent build a Python or backend caller without managing the calling code yourself.

```deepline-prompt theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Build a Python caller for [Play] using the maintained example. Show its input, saved run state and recovery test before running it.
```

The agent adapts the [maintained Python caller](https://deepline.com/docs/downloads/sdk-v2/http-python/run_prebuilt.py.txt) for a notebook, scheduler or backend. It invokes a saved or prebuilt Play over HTTP; custom Plays are authored in TypeScript.

Describe the application, execution environment, Play to call, and result destination. Keep credentials server-side.

> [!TIP]
>
> The example saves launch intent before submitting work and the returned run ID before polling. Test recovery separately from starting work. The caller must report completed, failed, cancelled, and uncertain outcomes distinctly. A timeout preserves the run identity rather than starting a replacement or duplicating provider work.

## Related guides

* [Recover a tool request](https://deepline.com/docs/human/sdk-v2/tool-execution-recovery.md)
* [Integrate a Play into your app](https://deepline.com/docs/human/sdk-v2/production-integration.md)
* [Call Plays](https://deepline.com/docs/human/sdk-v2/calling-plays.md)
* [Runtime API Reference](https://deepline.com/docs/sdk-v2/api-reference.md)

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

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


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