> 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.14/configure-cortex-xsoar/playbooks/develop-your-playbook/task-4.-add-inline-documentation.md).

# Task 4. Add inline documentation

When creating playbooks, it is a best practice to document your logic so others can follow your process. Inline playbook documentation makes this easy by displaying section header and task details directly within the playbook editor. This improves efficiency by clarifying the intent of each step and ensures workflows are understandable for anyone following the playbook. Playbook creators can attach specific guidance exactly where it is needed, such as adding warnings to individual tasks or summarizing grouped actions in section headers, making it easier to adopt and customize workflows.

How to access inline playbook documentation

1. Open the playbook you want to edit or review in the playbook editor. If the playbook is locked, duplicate or detach it to enable editing.
2. Click the **Info mode** toggle to set inline documentation view mode to one of the following.
   * None: Hides all inline documentation. Choose this for a clean, distraction-free view of the workflow blocks.
   * Headers: Displays only the documentation for Section Headers. This provides a high-level overview of the different phases of your playbook.
   * All tasks: Displays documentation for every task. This provides deeper insights into the specific logic and warnings for each step.
3. To edit header or task documentation, click the header or task you want to edit. Add details either directly in the editor or from the description in the header or task **Details** tab.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>You cannot add documentation to the top Playbooks Triggered task.</p></div>

![inline-playbook-documentation.png](/files/t5dKM6EdmreXlUihSRpY)


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-8-on-prem/8.14/configure-cortex-xsoar/playbooks/develop-your-playbook/task-4.-add-inline-documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
