> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook.md).

# Develop your playbook

Create or customize playbooks in Cortex XSOAR 8.10 On-prem.

When developing your playbook, you can either customize an existing out-of-the-box playbook from a content pack or create a new playbook from scratch.

Developing a new playbook from scratch enables a tailored solution for your use case, whereas customizing an out-of-the-box playbook can save time, reduce complexity, and be a more efficient way to meet your organization's specific security and incident response needs.

Follow these steps to develop a playbook.

| Task                                                               | Description                                                                                                                                                                                          | See More                                                                                                                                                                |
| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Task 1. Choose from out-of-the-box playbooks or customize your own | Search for an out-of-the-box playbook to use, customize it, or create one based on your needs.                                                                                                       | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-1.-choose-from-out-of-the-box-playbooks-or-customize-your-own.md). |
| Task 2. Configure playbook settings                                | Define playbook metadata, such as the name of the playbook, who can edit and run the playbook, and whether Quiet Mode is turned on.                                                                  | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-2.-configure-playbook-settings.md).                                |
| Task 3. Add tasks                                                  | Build your playbook by adding tasks that enable you to run scripts and sub-playbooks, communicate with end users, set conditions, and store relevant data. Define inputs and outputs for your tasks. | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-3.-add-tasks.md).                                                  |
| Task 4. Add custom playbook features                               | Customize your playbook, including adding scripts, sub-playbooks, filtering and transforming data, extracting indicators, extending context, setting and updating incident fields, and polling.      | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-4.-add-custom-playbook-features.md).                               |
| Task 5. Test and debug the playbook                                | Set breakpoints, conditional breakpoints, skip tasks, and input and output overrides in the playbook debugger.                                                                                       | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-5.-test-and-debug-the-playbook.md).                                |
| Task 6. Manage playbook content                                    | Save versions of your playbook in Cortex XSOAR, or manage your playbook content development and testing using a remote repository.                                                                   | See [topic](/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook/task-6.-manage-playbook-content.md).                                    |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.10/configure-cortex-xsoar/playbooks/develop-your-playbook.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
