> 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/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-standard-outposts/create-a-standard-outpost.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Create a standard outpost

Instructions for creating a standard outpost while onboarding your CSP.

{% hint style="info" %}
**License type:** This feature is included with a Cortex XDR license that has the Cloud Posture Security or Cloud Runtime Security add-on.
{% endhint %}

Create a standard outpost to deploy an outpost using infrastructure that Cortex XDR creates for a fast, consistent deployment with minimal manual configuration.

## Step 1. Plan and prepare

Review the [fundamentals and prerequisites](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/outpost-fundamentals-and-planning.md#outpost-planning) before starting.

{% hint style="info" %}
**Notes:**

* Before you create your outpost, verify that your internet connection is active. An active internet connection is necessary for the notification to be sent to Cortex XDR to create the new outpost.
* (Azure) Due to limitations in Terraform, the Azure subscription name cannot contain blanks. Take this into account before onboarding.
  {% endhint %}

## Step 2. Define the outpost with the outpost creation wizard

Start the outpost creation wizard:

1. In Cortex XDR, navigate to **Settings → Data Sources & Integrations → Outposts**.
2. Click **New Outpost**.

{% hint style="info" %}
**Tip**: Alternatively, while onboarding your Cortex XDR with the cloud service provider (CSP) onboarding wizard, the wizard prompts you to choose a scan mode: **Cloud Scan** or **Scan With Outpost**. When choosing **Scan With Outpost**, you have the opportunity to create your outpost. To start the cloud service provider (CSP) onboarding wizard, navigate to **Settings → Data Sources & Integrations → Add New**.
{% endhint %}

Perform the steps according to your CSP.

<details>

<summary>AWS</summary>

1. Choose **AWS**.
2. If you are using a FedRAMP-certified (Government) Cortex XDR tenant, you are able to choose between the following environments:
   * **Commercial:** (Default) Standard cloud deployment typically used for private and public sector organizations that do not require isolated government-specific infrastructure.
   * **Government:** AWS GovCloud environments for compatibility with FedRAMP-certified tenants.
3. Enter an **Instance Name** for the outpost. The instance name can be up to 255 characters.
4. (Optional) To limit the outpost to specific regions, toggle **Modify Scope by Regions** on, and then select one or more regions from the **Choose region** list. The outpost resources are deployed only in the selected regions, and only assets in those regions are scanned. When the toggle is off, all regions are included.
5. (Optional) Define tags and tag values to be added to any new resource created by Cortex XDR in the cloud environment. The `managed_by: paloaltonetworks` tag is defined by default and cannot be edited or removed.
6. Click **Next**. Cortex XDR generates the outpost template.
7. Choose how to deploy the template.

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>Important:</strong> Choose your IaC tool carefully before you click an option. When you edit the outpost later, you can only download a template for the same IaC tool that you chose when you created it. For an outpost created with CloudFormation, either with <strong>Execute in AWS</strong> or <strong>Download CloudFormation</strong>, you can only download a CloudFormation template. For an outpost created with <strong>Download Terraform</strong>, you can only download a Terraform template.</p></div>

   * **Automated:** (Recommended) Click **Execute in AWS** to open the AWS CloudFormation console with the pre-populated template. Before you click, verify that you are logged in to the AWS account that is dedicated to the outpost.
   * **Generate Template:** Click **Download CloudFormation** to download the CloudFormation template file, or click **Download Terraform** to download the Terraform template archive.
8. After you start the deployment or download the template, click **Close**.

</details>

<details>

<summary>Azure</summary>

When creating an outpost for a specific Azure subscription, the outpost account must be in the same Azure organization as the monitored subscriptions.

{% hint style="warning" %}
**Important:** If you want to deploy a Cortex XDR Azure outpost using your own pre-created Entra ID app registration, follow the instructions for [Bring your own Azure app registration (BYOA)](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-custom-outposts/bring-your-own-azure-app-registration-byoa.md). This type of outpost is designed for organizations with strict governance policies that require control over Entra ID tenant-level resources.
{% endhint %}

1. Choose **Azure.**
2. If you are using a FedRAMP-certified (Government) Cortex XDR tenant, you are able to choose between the following environments:
   * **Commercial:** (Default) Standard cloud deployment typically used for private and public sector organizations that do not require isolated government-specific infrastructure.
   * **Government:** Microsoft Azure Government environments for compatibility with FedRAMP-certified tenants.
3. Enter an **Instance Name** for the outpost, and the **Tenant ID** of the Azure tenant in which you want to establish the outpost. The tenant ID must be a valid Microsoft Entra ID tenant ID. If the format is not valid, the wizard shows **Invalid tenant ID format**.\\

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>Note:</strong> Due to limitations in Terraform, the Azure subscription name cannot contain blanks.</p></div>
4. (Optional) To limit the outpost to specific regions, toggle **Modify Scope by Regions** on, and then select one or more regions from the **Choose region** list. The outpost resources are deployed only in the selected regions, and only assets in those regions are scanned. When the toggle is off, all regions are included.
5. (Optional) Define tags and tag values to be added to any new resource created by Cortex XDR in the cloud environment. The `managed_by: paloaltonetworks` tag is defined by default and cannot be edited or removed. The tags field is available only after you enter a valid tenant ID.
6. If you are deploying the outpost with your own pre-created Entra ID app registration, click **Show advanced settings**, and then configure the following settings. Before you begin, complete the [prerequisites](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-custom-outposts/bring-your-own-azure-app-registration-byoa/prerequisites-for-bringing-your-own-app-registration.md) and [create the Azure app registration](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-custom-outposts/bring-your-own-azure-app-registration-byoa/create-the-azure-app-registration.md).
   1. Toggle **Bring Your Own App Registration** on, and enter the following required IDs. Both values must be valid UUIDs.
      * **Application (Client) ID:** The Application (Client) ID of your Azure app registration. This is the `customer_app_client_id` value that the helper shell script returns, or the value on the app registration's **Overview** page in the Azure portal.
      * **Service Principal Object ID:** The Object ID of the service principal associated with your Azure app registration. This is the `customer_sp_object_id` value that the helper shell script returns, or the **Object ID** on the enterprise application's **Properties** page. Do not confuse it with the Application (Client) ID. Both are UUIDs, and they are not interchangeable.
   2. (Optional) To supply your own pre-created managed identities instead of having Cortex XDR create them automatically, toggle **Bring Your Own Scanner Managed Identities** on, and enter the Azure Resource Manager (ARM) resource ID of each of the following user-assigned managed identities (UAMIs). All the fields are required when this toggle is on. Each identity must be distinct and must be in the same subscription and tenant as the outpost. Keep the identities in a resource group that you own, outside the outpost resource group, so that they are not deleted if the outpost is removed.
      * **Agentless Disk Scanner Resource ID:** The identity that the agentless disk scanning (ADS) workload uses to snapshot and scan VM disks for vulnerabilities and malware. Supplying your own identity lets you control exactly which disks Cortex XDR can read for disk scanning. This is the `customer_uami_agentless_id` value that the helper shell script returns.
      * **DSPM Scanner Resource ID:** The identity that the DSPM scanner VM uses to scan data stores, such as Storage, SQL, and Cosmos DB, for sensitive data exposure. This is the identity that reads your data for classification, so supplying your own identity lets you limit and audit which data stores Cortex XDR can access. This is the `customer_uami_dspm_id` value.
      * **Registry Scanner Resource ID:** The identity that the registry scanner VM uses to pull and scan container images stored in Azure Container Registry. Supplying your own identity lets you grant pull access only to the registries that you want Cortex XDR to scan. This is the `customer_uami_registry_id` value.
      * **Serverless Scanner Resource ID:** The identity that the serverless scanner VM uses to scan Azure Function Apps and other serverless code for vulnerabilities. Supplying your own identity lets you control which function apps Cortex XDR can read. This is the `customer_uami_serverless_id` value.
      * **Egress Proxy Resource ID:** The identity attached to the egress proxy VM. Scanner VMs route their outbound traffic, to Cortex XDR and to external services, through this proxy. Supplying your own identity keeps the outpost's single outbound path under an identity that your organization governs. This is the `customer_uami_proxy_id` value.
7. Click **Next**. Cortex XDR generates the outpost template.
8. Click **Download Terraform** to download the Terraform template file, and then click **Close**.

</details>

<details>

<summary>GCP</summary>

1. Choose **GCP**.
2. If you are using a FedRAMP-certified (Government) Cortex XDR tenant, you are able to choose between the following environments:
   * **Commercial:** (Default) Standard cloud deployment typically used for private and public sector organizations that do not require isolated government-specific infrastructure.
   * **Government:** GCP Assured Workloads for compatibility with FedRAMP-certified tenants.
3. Enter an **Instance Name** for the outpost, and the **Project ID** of the GCP project.
4. (Optional) To limit the outpost to specific regions, toggle **Modify Scope by Regions** on, and then select one or more regions from the **Choose region** list. The outpost resources are deployed only in the selected regions, and only assets in those regions are scanned. When the toggle is off, all regions are included.
5. (Optional) Define tags and tag values to be added to any new resource created by Cortex XDR in the cloud environment. The `managed_by: paloaltonetworks` label is defined by default and cannot be edited or removed. GCP labels must use lowercase letters. Each key and value can be up to 63 characters, and you can add up to 64 labels.
6. Click **Next**. Cortex XDR generates the outpost template.
7. Click **Download Terraform** to download the Terraform template file, and then click **Close**.

</details>

## Step 3. **Execute the template in the CSP to deploy the outpost**

In the previous step, you chose how to deploy the outpost template in the outpost creation wizard.

Now, deploy the template in your CSP by performing the following.

{% hint style="info" %}
**Note:** This step includes instructions for third-party CSP consoles and tools, which the CSP might change. For the most up-to-date and accurate instructions, see your CSP's documentation.
{% endhint %}

<details>

<summary>AWS: CloudFormation, automated (Execute in AWS)</summary>

1. **Check prerequisites:** Before you begin, ensure you have:
   * A browser session that is logged in to the AWS Management Console with the AWS account that is dedicated to the outpost.
   * Permission to create a CloudFormation stack, StackSets, and their resources in the outpost account. The template creates IAM roles, customer-managed IAM policies, policy attachments, and instance profiles, each of which requires IAM administration permission. Grant one of the following:
     * The AdministratorAccess managed policy, or
     * The IAMFullAccess managed policy (or a custom policy granting the `iam:Role`, `iam:Policy`, and `iam:InstanceProfile` actions) together with permission to create the other required resources (CloudFormation, EC2, VPC, S3, SQS, KMS, and SSM Parameter Store).
2. In the outpost creation wizard, click **Execute in AWS**. The AWS CloudFormation console opens the **Quick create stack** page with the template and its parameters pre-populated.

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>Important:</strong> The link is valid for a limited time. Complete the following steps without delay.</p></div>
3. Under **Provide a stack name**, enter a **Stack name**. The stack name can include letters (A-Z and a-z), numbers (0-9), and hyphens.
4. Review the stack parameters. Cortex XDR pre-populates the parameter values from the outpost creation wizard. Do not change them, with the following exceptions:
   * (Optional) You can change the **Resource name prefix**.
   * If the `AWSServiceRoleForEC2Spot` or `AWSServiceRoleForRedshift` service-linked role already exists in the account, set **Create service-linked roles (set to false if they already exist)** to `false`.
5. Under **Capabilities**, select **I acknowledge that AWS CloudFormation might create IAM resources with custom names**, and click **Create stack**.
6. Return to Cortex XDR. The **Create AWS Outpost** dialog shows the status **Connecting**. Click **Close**.
7. To check the progress of the deployment, in the AWS CloudFormation console, open the **Stacks** list. Wait until the stack status is **CREATE\_COMPLETE**.

The template is deployed, and your outpost is created in **Connected** status. To view the outpost and its status, see [View and manage outposts](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/view-and-manage-outposts.md).

</details>

<details>

<summary>AWS: CloudFormation, manual (Download CloudFormation)</summary>

1. **Check prerequisites:** Before you begin, ensure you have:
   * Access to the AWS Management Console for the AWS account that is dedicated to the outpost.
   * The same permissions as for the automated CloudFormation deployment.
   * A CloudFormation template file that you downloaded within the last 7 days. The template contains a registration link that expires 7 days after download. If the link expires, the outpost cannot register with Cortex XDR, and you need to download a new template.
2. In the AWS Management Console, open **CloudFormation** and click **Create stack → With new resources (standard)**.
3. Select **Upload a template file**, choose the CloudFormation template file that you downloaded, and click **Next**.
4. Enter a stack name, and review the stack parameters. The downloaded template contains the parameter values from the outpost creation wizard. Do not change them, with the following exceptions, and then click **Next**:
   * (Optional) You can change the **Resource name prefix**.
   * If the `AWSServiceRoleForEC2Spot` or `AWSServiceRoleForRedshift` service-linked role already exists in the account, set **Create service-linked roles (set to false if they already exist)** to `false`.
5. On the **Configure stack options** page, click **Next**.
6. Select **I acknowledge that AWS CloudFormation might create IAM resources with custom names**, and click **Submit**.
7. Wait until the stack status is **CREATE\_COMPLETE**.

The template is deployed, and your outpost is created in **Connected** status. To view the outpost and its status, see [View and manage outposts](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/view-and-manage-outposts.md).

</details>

<details>

<summary>AWS: Terraform (Download Terraform)</summary>

1. **Check prerequisites:** Before you begin, ensure you have:
   * An AWS account.
   * Permission to create a stack and its resources in AWS on the designated outpost account. The onboarding script also creates IAM roles, customer-managed IAM policies, policy attachments, and instance profiles, which requires IAM administration permission. Grant one of the following:
     * The AdministratorAccess managed policy, or
     * The IAMFullAccess managed policy (or a custom policy granting the `iam:Role`, `iam:Policy`, and `iam:InstanceProfile` actions) together with permission to create the other required resources (EC2, VPC, S3, SQS, KMS, and SSM Parameter Store).
   * Installed Terraform on your local machine. You can download Terraform from the official [Terraform website](https://www.terraform.io/downloads.html) and follow the installation instructions for your operating system.
   * Installed the AWS CLI tool and configured your profile with the `aws configure sso` wizard.
2. Open your local terminal (such as Command Prompt, PowerShell, or Terminal).
3. Log in to your AWS account using the AWS CLI:

   ```
   aws sso login --profile <my-profile>
   ```

   `<my-profile>` is the profile you configured with the `aws configure sso` wizard.
4. Create a directory on your local machine to store and run the Terraform code. If you are creating more than one outpost, you need a separate directory for each one:

   ```
   mkdir -p ~/terraform/aws-outpost-1
   ```
5. Navigate to the directory you created and extract the Terraform files.

   ```
   cd ~/terraform/aws-outpost-1
   tar -xzvf <your_template>.tar.gz
   ```
6. Initialize Terraform in your project directory:

   ```
   terraform init
   ```
7. Apply your Terraform configuration using the downloaded parameter file. When prompted, enter the subscription ID:

   ```
   terraform apply --var-file=template_params.tfvars
   ```
8. When prompted, review the actions Terraform will perform and approve them by entering **yes**.

The template is deployed, and your outpost is created in **Connected** status. To view the outpost and its status, see [View and manage outposts](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/view-and-manage-outposts.md).

</details>

<details>

<summary>Azure</summary>

{% hint style="info" %}
**Note:** If you deploy the outpost with your own pre-created Entra ID app registration, follow the same steps. The Terraform runner identity must be an owner of your app registration. For details, see [Bring your own Azure app registration (BYOA)](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-custom-outposts/bring-your-own-azure-app-registration-byoa.md).
{% endhint %}

1. **Check prerequisites:** Before you begin, ensure you have:
   * An active Azure subscription.
   * Installed the Azure CLI tool.
   * Permission to deploy a custom template and create its resources in Microsoft Azure on the designated outpost subscription scope. The onboarding script also creates custom role definitions and role assignments, which requires permission to manage access (Azure RBAC). Assign one of the following at the subscription scope:

     * The Owner role, or
     * The Contributor role together with the User Access Administrator role (for strict least-privilege, also add the Role Definition Administrator role).

     In Microsoft Entra ID, you also need the Cloud Application Administrator or Application Administrator privileged role.
   * Installed Terraform 1.9.4 or above on your local machine. You can download Terraform from the official [Terraform website](https://www.terraform.io/downloads.html) and follow the installation instructions for your operating system.
   * A static egress IP assigned to the machine running this Terraform. This is used to configure the Azure Storage IP whitelist (Recommended). Without this, future runs of this Terraform may fail on Azure storage configurations.
2. Open your local terminal (such as Command Prompt, PowerShell, or Terminal).
3. Log in to your Azure account using the Azure CLI:

   ```
   az login
   ```
4. If prompted, select the subscription\_id of the designated subscription, or run:

   ```
   az account set --subscription <subscription_id>
   ```

   Where `<subscription_id>` is the subscription ID of the designated subscription.
5. Create a directory on your local machine to store and run the Terraform code. If you are creating more than one outpost, you need a separate directory for each one:

   ```
   mkdir -p ~/terraform/azure-outpost-1
   ```
6. Navigate to the directory you created and extract the Terraform files.

   ```
   cd ~/terraform/azure-outpost-1
   tar -xzvf <your_template>.tar.gz
   ```
7. Initialize Terraform in your project directory:

   ```
   terraform init
   ```
8. Apply your Terraform configuration using the downloaded parameter file. When prompted, enter the subscription ID:

   ```
   terraform apply --var-file=template_params.tfvars
   ```
9. When prompted for `var.input_ip_whitelist`, you can leave it empty to enable access from any public IP to the storage accounts. We recommend you to limit access to selected IPs. To limit access, enter a comma-separated list of public IP addresses, including your local machine's egress IP (to enable the completion of the Terraform run). For example: `8.8.8.8, 8.8.4.4`
10. Review the actions Terraform will perform and approve them by entering **yes**.
11. Back up the Terraform state using one of the following methods, so that Terraform can upgrade or destroy the resources that it created for the outpost:
    * Create copies of the `terraform.tfstate` and `terraform.tfstate.backup` files. When you need to upgrade or destroy the outpost resources, move the copies to the working folder.
    * Use a backend block in your Terraform configuration to save the state. For more information, see [Backend block configuration overview](https://developer.hashicorp.com/terraform/language/backend).

The template is deployed, and your outpost is created in **Connected** status. To view the outpost and its status, see [View and manage outposts](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/view-and-manage-outposts.md).

</details>

<details>

<summary>GCP</summary>

1. **Check prerequisites:** Before you begin, ensure you have:
   * A GCP account.
   * Permission to create the required resources in your Google Cloud project. The onboarding script also creates custom IAM roles and project IAM policy bindings, which requires IAM administration permission. Grant one of the following at the project level:
     * The Owner (`roles/owner`) role, or
     * The Role Administrator (`roles/iam.roleAdmin`) and Project IAM Admin (`roles/resourcemanager.projectIamAdmin`) roles, together with the Editor (roles/editor) role (or the individual service admin roles for Compute, Storage, Pub/Sub, and Secret Manager).
   * Installed Terraform on your local machine. You can download Terraform from the official [Terraform website](https://www.terraform.io/downloads.html) and follow the installation instructions for your operating system.
   * Installed the GCP gcloud CLI tool.
2. Open your local terminal (such as Command Prompt, PowerShell, or Terminal).
3. Log in to your GCP account using the gcloud CLI:

   ```
   gcloud auth login
   ```
4. Create a directory on your local machine to store and run the Terraform code. If you are creating more than one outpost, you need a separate directory for each one:

   ```
   mkdir -p ~/terraform/gcp-outpost-1
   ```
5. Navigate to the directory you created and extract the Terraform files.

   ```
   cd ~/terraform/gcp-outpost-1
   tar -xzvf <your_template>.tar.gz
   ```
6. Initialize Terraform in your project directory:

   ```
   terraform init
   ```
7. Apply your Terraform configuration using the downloaded parameter file. When prompted, enter the project ID:

   ```
   terraform apply --var-file=template_params.tfvars
   ```
8. When prompted, review the actions Terraform will perform and approve them by entering **yes**.

The template is deployed, and your outpost is created in **Connected** status. To view the outpost and its status, see [View and manage outposts](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/view-and-manage-outposts.md).

</details>

## Step 4. Verify the outpost

After the template deployment completes:

* **(Azure) Check FICs**: In the Azure portal, go to your **App Registration → Certificates & secrets → Federated credentials**. You should see federated identity credentials created by Cortex XDR.
* **Check Cortex XDR**: The outpost appears in **Connected** status on the **All Outposts** page at **Settings → Data Sources & Integrations → Outposts**.

The necessary permissions are granted and a notification is sent to Cortex XDR with the execution details.

## What's next?

Start (or continue) CSP onboarding. Run the onboarding wizard to generate an authentication template for [AWS](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/amazon-web-services-cloud-onboarding/onboard-amazon-web-services.md), [GCP](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/google-cloud-platform-cloud-onboarding/onboard-google-cloud-platform.md), or [Azure](https://cortex-docs.paloaltonetworks.com/cortex-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/microsoft-azure-cloud-onboarding/onboard-microsoft-azure.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-xdr/configure-cortex-xdr/cortex-xdr-data-sources/cloud-service-provider-csp-onboarding/outpost-onboarding/working-with-standard-outposts/create-a-standard-outpost.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.
