> 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-xdr/detect-investigate-and-respond-to-threats/threat-management/extended-threat-intelligence/using-xti-in-playbooks.md).

# Using XTI in playbooks

Automate XTI indicator triage, enrichment, and response with supported playbook commands and scripts.

Extended Threat Intelligence (XTI) provides built-in commands and scripts to automate triage, enrichment, and response for threat intel use cases.

## XTI playbook commands/scripts&#x20;

The following built-in commands and scripts can be used to investigate XTI indicators and threat objects.&#x20;

The supported commands and scripts are:&#x20;

<table data-header-hidden><thead><tr><th width="170.10546875">Category</th><th width="259.58984375">Command/Script</th><th width="90.1796875">Type</th><th width="265.19140625">Description</th></tr></thead><tbody><tr><td><strong>Category</strong></td><td><strong>Command/Script</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Commands</strong></td><td><br></td><td><br></td><td><br></td></tr><tr><td>Indicator Lifecycle</td><td><p><em>createNewIndicator</em></p><p><br></p></td><td>Write</td><td><p>Create an indicator (IP, domain, file hash, or URL).</p><p>Note: The createNewIndicator command is only supported with types IP|Domain|File|URL.</p></td></tr><tr><td>Indicator Lifecycle</td><td><em>setIndicator</em> </td><td>Write</td><td>Update an indicator (IP, domain, file hash, or URL).</td></tr><tr><td><strong>Scripts</strong></td><td><br></td><td><br></td><td><br></td></tr><tr><td>Threat Object</td><td><em>CortexXTIGetThreatActors</em></td><td>Read</td><td>List and describe threat actors.</td></tr><tr><td>Threat Object</td><td><em>CortexXTIGetMalwareFamilies</em></td><td>Read</td><td>List and describe malware families.</td></tr><tr><td>Threat Object</td><td><em>CortexXTIGetReports</em></td><td>Read</td><td>List and describe threat intel reports.</td></tr><tr><td>Behavioral Threat Analysis (BTA)</td><td><em>CortexXTIGetBTAContext</em></td><td>Read</td><td>Show Behavioral Threat Analysis (BTA) context.</td></tr></tbody></table>

\
For more information on specific scripts, see the in-product Script Helper available from **Investigation & Response → Automation → Scripts → Script Helper**.<br>

**Related links**

For general information about playbooks, see [Playbooks](/cortex-xdr/detect-investigate-and-respond-to-threats/investigate-and-respond-to-cases/automation/playbooks.md).

<br>


---

# 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-xdr/detect-investigate-and-respond-to-threats/threat-management/extended-threat-intelligence/using-xti-in-playbooks.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.
