> 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-xsiam-developer-guide/cortex-xsiam-development-guide/integrations-and-scripts/components.md).

# Components

Integrations and scripts in Cortex XSIAM are stored in YAML files that include all the required information (metadata, code, images, etc.). All these files together are referred to as a Unified YAML file.

To better handle the files in the content repository, Python/Powershell scripts and integrations are stored in a directory structure, where the YAML files only contain the metadata and the code and artifacts live in separate files. This is required for running linting and unit testing of the code.

When an integration or script is exported from Cortex XSIAM using `demisto-sdk download`, the Unified YAML is automatically split into its components. When other components (such as playbooks, alert fields, and layouts) are downloaded, they are exported as is and automatically added to their respective folders.

When an integration or script is imported into Cortex XSIAM using **demisto-sdk upload**, the integration/script directory files are automatically assembled in the Unified YAML file that is uploaded.

Content developers usually work with the directory structure and not the unified file.


---

# 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-xsiam-developer-guide/cortex-xsiam-development-guide/integrations-and-scripts/components.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.
