> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-alongside-zip-installation.md).

# Deploying alongside a ZIP installation

Deploy the AI agent components with Docker Compose alongside a SonarQube Server ZIP installation. This page is for SonarQube Server 2026.5.

Use this page when SonarQube Server runs from the ZIP file on the same machine as Docker. It covers the simplest configuration:

* SonarQube Server listens on port 9000.
* PostgreSQL is your existing database, on the same machine, on port `5432`. The database name is `sonarqube`, the database user is `sonarqube`, and the connection to it uses TLS.
* The containers and SonarQube Server exchange job files through one directory on this machine.
* The connection between SonarQube Server and the containers is plain HTTP, and no TLS proxy is created.

The containers are the Agent Orchestrator, the Hunter Agent runtime, the Remediation Agent runtime, Vortex analysis, and the egress proxy.

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

You have:

* A ZIP installation of SonarQube Server 2026.5 or later, with Java 21 or Java 25. `<sonarqubeHome>` is the directory you unzipped. See [Basic installation](https://docs.sonarsource.com/sonarqube-server/server-installation/from-zip-file/basic-installation.md).
* Enterprise edition or Data Center edition, with a Hunter Agent or Remediation Agent subscription, see [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md#licensing).
* PostgreSQL 15 to 18 on this machine, with a database named `sonarqube` and a user named `sonarqube`. [Installing database](https://docs.sonarsource.com/sonarqube-server/server-installation/installing-the-database.md) creates a database and a user, but its sample user name is not `sonarqube`. Create database `sonarqube` and user `sonarqube` for this page. When the user, the database name, the host, or the port is different, follow [Advanced configuration](#advanced).
* Docker with Docker Compose v2. `docker info` shows which engine answers `docker`. When it reports Docker Desktop, Rancher Desktop, or Colima, use the second command in [Step 4: Generate the bundle](#generate). When it reports a Linux host, use the first command. On a Linux Docker host, `runsc` is installed and registered as a Docker runtime, see [Setting up the sandbox runtime](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/sandbox-runtime.md#on-docker). A machine with more than one Docker engine must run `docker compose` against the same engine you chose here.
* Git, and Python 3.9 or later, so you can run `python3 generate.py`. Check with `python3 --version`. If that command is not found, Python is not installed: in [Step 4: Generate the bundle](#generate), run the `docker run` command instead of `python3 generate.py`. That command runs the generator inside a Python container.
* The JDK that runs SonarQube Server, either as the `java` command on your `PATH`, or as the `java` executable that `SONAR_JAVA_PATH` points to, see [Advanced setup](https://docs.sonarsource.com/sonarqube-server/server-installation/from-zip-file/advanced-setup.md#adjusting-java-exec-path). SonarQube Server does not use `JAVA_HOME`. `command -v java` prints the executable. When `SONAR_JAVA_PATH` is set, `echo "$SONAR_JAVA_PATH"` prints it.
* A bash shell on Linux or macOS for the commands on this page. In `sonar.properties`, write absolute paths. The account that runs SonarQube Server must be able to read those paths. When that account is not the account you use for these commands, replace `$HOME` in the later steps with that account's home directory. On Windows, see [Deploying on Windows](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-on-windows.md#zip).
* Ports 9000, 9091, and 9092 free on this machine. SonarQube Server uses 9000. The Agent Orchestrator uses 9091. Vortex analysis uses 9092. Port 9092 is also the default port of the embedded H2 database.

The `docker-sonarqube` revision you clone in [Step 3: Clone the generator](#clone) ships agent images for your SonarQube Server version. `master` can point at a different agent line than the ZIP you installed.

## Step 1: Prepare the database <a href="#database" id="database"></a>

PostgreSQL serves TLS on port 5432, with a password for user `sonarqube` that you'll pass to the generator. The generator does not create the database, the server certificate, or the CA.

The server certificate's subject alternative names include `localhost` and `host.docker.internal`. `localhost` is the name in `sonar.jdbc.url`. `host.docker.internal` is the name the containers use. A certificate issued only for another hostname fails `sslmode=verify-full`.

Keep the CA certificate that signed the server certificate, as a PEM file. [Step 5: Import the database CA](#database-ca) imports that CA, not the server certificate. The CA's `keyUsage` includes `keyCertSign`.

a. When you do not have that CA yet, create it and the server certificate. This writes the files under `$HOME/.sonarqube/db-tls`. Point PostgreSQL at `server.crt` and `server.key`.

```bash
mkdir -p "$HOME/.sonarqube/db-tls"
openssl genrsa -out "$HOME/.sonarqube/db-tls/ca.key" 4096
openssl req -x509 -new -nodes -key "$HOME/.sonarqube/db-tls/ca.key" -sha256 -days 3650 \
  -out "$HOME/.sonarqube/db-tls/ca.crt" \
  -subj "/CN=SonarQube database CA" \
  -addext "basicConstraints=critical,CA:TRUE" \
  -addext "keyUsage=critical,keyCertSign,cRLSign"
openssl genrsa -out "$HOME/.sonarqube/db-tls/server.key" 2048
chmod 600 "$HOME/.sonarqube/db-tls/ca.key" "$HOME/.sonarqube/db-tls/server.key"
openssl req -new -key "$HOME/.sonarqube/db-tls/server.key" \
  -out "$HOME/.sonarqube/db-tls/server.csr" -subj "/CN=localhost"
cat > "$HOME/.sonarqube/db-tls/server.ext" <<'EOF'
basicConstraints=CA:FALSE
keyUsage=digitalSignature,keyEncipherment
extendedKeyUsage=serverAuth
subjectAltName=DNS:localhost,DNS:host.docker.internal
EOF
openssl x509 -req -in "$HOME/.sonarqube/db-tls/server.csr" \
  -CA "$HOME/.sonarqube/db-tls/ca.crt" -CAkey "$HOME/.sonarqube/db-tls/ca.key" \
  -CAserial "$HOME/.sonarqube/db-tls/ca.srl" -CAcreateserial \
  -out "$HOME/.sonarqube/db-tls/server.crt" -days 825 -sha256 \
  -extfile "$HOME/.sonarqube/db-tls/server.ext"
```

b. Confirm the names and the CA. Replace each path with the PEM file you'll use:

```bash
openssl x509 -in <path to server certificate> -noout -text | grep -A1 "Subject Alternative Name"
openssl x509 -in <path to your database CA PEM> -noout -text | grep -A1 "Key Usage"
```

The first output contains `DNS:localhost` and `DNS:host.docker.internal`. The second output contains `Certificate Sign`.

c. In `postgresql.conf`, turn TLS on, set `ssl_cert_file` and `ssl_key_file` to the server certificate and its key, and make sure `listen_addresses` includes the address Docker uses to reach this machine. A listener on `127.0.0.1` alone accepts SonarQube Server and refuses the containers. A connection to `host.docker.internal` does not come from `127.0.0.1`.

d. In `pg_hba.conf`, give user `sonarqube` TCP access with `hostssl`. Include `127.0.0.1/32` and the Docker source range. That range is often `172.16.0.0/12` or `192.168.0.0/16`.

e. Reload PostgreSQL.

f. Check the connection SonarQube Server will use:

```bash
psql "host=localhost port=5432 dbname=sonarqube user=sonarqube sslmode=verify-full sslrootcert=<path to your database CA PEM>"
```

The session opens on database `sonarqube`. `pg_isready` does not check the certificate unless `PGSSLMODE=verify-full` is set in your environment, so use the `psql` command to confirm the CA.

## Step 2: Create the storage directory <a href="#storage" id="storage"></a>

Create the storage directory and keep the absolute path. You'll paste it into `sonar.properties` later. On Docker Desktop, this directory must sit on a path Docker is allowed to share.

```bash
mkdir -p "$HOME/agentic-storage"
STORAGE="$(cd "$HOME/agentic-storage" && pwd)"
echo "$STORAGE"
```

## Step 3: Clone the generator <a href="#clone" id="clone"></a>

`agentic-compose-generator` is a directory in the `docker-sonarqube` repository. The file `generate.py` is inside that directory. Clone the repository, then enter the directory:

```bash
git clone https://github.com/SonarSource/docker-sonarqube.git
cd docker-sonarqube/agentic-compose-generator
```

Your shell is now in the generator directory. `pwd` ends with `agentic-compose-generator`. The next command runs here.

Open `default-images.json` in this directory. The `tag` of `agent-orchestrator`, `hunter-agent`, `remediation-agent`, and `vortex` is the agent image version. It belongs to the same version line as your ZIP, for example `2026.5` with SonarQube Server `2026.5`. When it does not, check out the revision that matches before you continue, or pass `--image-tag` on the `generate.py` command in the next step. The flag is defined in the generator README.

## Step 4: Generate the bundle <a href="#generate" id="generate"></a>

Stay in `docker-sonarqube/agentic-compose-generator`, the directory you entered in the previous step. `pwd` ends with `agentic-compose-generator`. Replace `<database password>` with the password the database user `sonarqube` accepts. Pass that password itself to `--db-password`. [Step 7: Edit sonar.properties](#properties) explains how to write it in `sonar.properties`.

On a Linux Docker host:

```bash
python3 generate.py \
  --edition none \
  --tls off \
  --db external \
  --db-host host.docker.internal \
  --db-password '<database password>' \
  --storage hostpath \
  --storage-path "$STORAGE" \
  --custom-ca-dir ./custom-ca \
  --out "$PWD/bundle"
```

On Docker Desktop, Rancher Desktop, or Colima, run this command instead. It's the same command with `--sandbox runc` and `--host-gateway off`:

```bash
python3 generate.py \
  --edition none \
  --tls off \
  --db external \
  --db-host host.docker.internal \
  --db-password '<database password>' \
  --storage hostpath \
  --storage-path "$STORAGE" \
  --custom-ca-dir ./custom-ca \
  --sandbox runc \
  --host-gateway off \
  --out "$PWD/bundle"
```

{% hint style="warning" %}
This command runs the agent runtimes without a sandbox: they get no isolation beyond a regular container, and nothing caps how much disk a job uses. Use it for evaluation only, not in production. See [Setting up the sandbox runtime](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/sandbox-runtime.md#without-sandbox).
{% endhint %}

If `python3` is not installed, stay in `docker-sonarqube/agentic-compose-generator` and run this command instead of `python3 generate.py`. It runs the same generator inside a Python container. `--out` is `bundle`, a directory created inside the generator directory:

```bash
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD":/work -w /work python:3.13-slim \
  python generate.py \
  --edition none \
  --tls off \
  --db external \
  --db-host host.docker.internal \
  --db-password '<database password>' \
  --storage hostpath \
  --storage-path "$STORAGE" \
  --custom-ca-dir ./custom-ca \
  --out bundle
```

Add `--sandbox runc` and `--host-gateway off` to that command on Docker Desktop, Rancher Desktop, or Colima. The container only sees the generator directory, so keep `--out` relative to it. `--custom-ca-dir ./custom-ca` is relative to the bundle, which is inside that directory. An absolute path or a `~/` path also works, because Docker Compose resolves it on the host, but the generator cannot see it from the container and warns that the directory does not exist. Ignore that warning when the directory exists on the host.

The generator prints `wrote bundle to` and a path. That path is a new directory named `bundle` inside `docker-sonarqube/agentic-compose-generator`. Stay in `docker-sonarqube/agentic-compose-generator`. Later steps that read `.env` or run `docker compose` say `cd bundle` first.

`bundle` contains `docker-compose.yaml`, `.env`, `README.md`, `ZIP-INSTRUCTIONS.md`, an empty `custom-ca` directory, and a `tls-proxy` directory. This configuration has no `sonarqube-tls-proxy` service. The `tls-proxy` directory is unused. The generator warns that `custom-ca` holds no CA file. Ignore the warning for now: you add the database CA to that directory in the next step.

`--db-host host.docker.internal` is the name the containers use for PostgreSQL. `localhost` is the name SonarQube Server uses. Both names are on the database certificate.

Keep the bundle directory private. `.env` contains the signing secret, and `docker-compose.yaml` contains the database password. The bundle publishes ports 9091 and 9092 on all interfaces. To limit them to this machine, set `ORCHESTRATOR_PUBLISH_PORT=127.0.0.1:9091` and `VORTEX_PUBLISH_PORT=127.0.0.1:9092` in `.env` before you start the bundle.

## Step 5: Import the database CA <a href="#database-ca" id="database-ca"></a>

The database connection stays TLS when `--tls` is `off`. `--tls off` makes the connection between SonarQube Server and the containers plain HTTP.

Copy the JDK truststore only when the file does not exist yet, then import your database CA. Replace `<path to your database CA PEM>` with the PEM file you already have. The certificate's `keyUsage` includes `keyCertSign`.

The truststore has to come from the JDK that runs SonarQube Server: `java` on the PATH, or the executable in `SONAR_JAVA_PATH`.

```bash
if [ -n "${SONAR_JAVA_PATH}" ]; then
  SONAR_JAVA_HOME="$("${SONAR_JAVA_PATH}" -XshowSettings:properties -version 2>&1 | sed -n 's/^[[:space:]]*java.home = //p')"
else
  SONAR_JAVA_HOME="$(java -XshowSettings:properties -version 2>&1 | sed -n 's/^[[:space:]]*java.home = //p')"
fi
echo "$SONAR_JAVA_HOME"
mkdir -p "$HOME/.sonarqube"
if [ ! -e "$HOME/.sonarqube/sonarqube-truststore.jks" ]; then
  cp "$SONAR_JAVA_HOME/lib/security/cacerts" "$HOME/.sonarqube/sonarqube-truststore.jks"
fi
chmod u+w "$HOME/.sonarqube/sonarqube-truststore.jks"
"$SONAR_JAVA_HOME/bin/keytool" -importcert -noprompt -alias database-ca \
  -file <path to your database CA PEM> \
  -keystore "$HOME/.sonarqube/sonarqube-truststore.jks" \
  -storepass changeit
```

Copy the same PEM into the bundle. The file name ends in `.crt` or `.pem`. From the generator directory:

```bash
cp <path to your database CA PEM> bundle/custom-ca/database-ca.crt
```

The Agent Orchestrator reads that file when the containers start.

Print the truststore path and keep the line. You'll paste it into `sonar.properties`:

```bash
echo "$HOME/.sonarqube/sonarqube-truststore.jks"
```

## Step 6: Derive the signing key <a href="#signing" id="signing"></a>

Enter the bundle directory. This is the directory printed after `wrote bundle to`, which is `bundle` under the generator directory:

```bash
cd bundle
pwd
```

`pwd` now ends with `bundle`. Read the Agent Orchestrator image name from this bundle:

```bash
grep -A2 '^  orchestrator:' docker-compose.yaml | grep 'image:'
```

The output is one line, `image: <orchestrator image>`. Use the value after `image:` in the next command. The command reads `AGENTIC_SIGNING_SECRET` from this directory's `.env`, writes it to a file, and derives `agentic-shared.key`:

```bash
mkdir -p "$HOME/.sonarqube/agentic-signing"
AGENTIC_SIGNING_SECRET=$(sed -n 's/^AGENTIC_SIGNING_SECRET=//p' .env)
printf '%s' "$AGENTIC_SIGNING_SECRET" > "$HOME/.sonarqube/agentic-signing/instance-secret"
chmod 600 "$HOME/.sonarqube/agentic-signing/instance-secret"

docker run --rm --user "$(id -u):$(id -g)" \
  -v "$HOME/.sonarqube/agentic-signing":/run/agentic-signing \
  --entrypoint /derive-keys.sh <orchestrator image> \
  --secret-file /run/agentic-signing/instance-secret \
  --label agentic-shared=/run/agentic-signing/agentic-shared.key
```

`docker run` exits when the key is written. It does not start the Agent Orchestrator.

The account that runs SonarQube Server must be able to read `instance-secret` and `agentic-shared.key`. When that account is your user:

```bash
chmod 600 "$HOME/.sonarqube/agentic-signing/instance-secret" "$HOME/.sonarqube/agentic-signing/agentic-shared.key"
```

When SonarQube Server runs as another account, give that account read access to both files.

Print the two paths and keep both lines:

```bash
echo "$HOME/.sonarqube/agentic-signing/instance-secret"
echo "$HOME/.sonarqube/agentic-signing/agentic-shared.key"
```

## Step 7: Edit sonar.properties <a href="#properties" id="properties"></a>

Open `<sonarqubeHome>/conf/sonar.properties`.

Comment out the lines for the embedded H2 database when they're present. See [Basic installation](https://docs.sonarsource.com/sonarqube-server/server-installation/from-zip-file/basic-installation.md).

Set these properties. Replace each `<...>` with the value from the step that printed it. `sonar.jdbc.password` is the password you passed to `--db-password`. In this file, write each backslash in that password as `\\`, and write a character that is not ASCII as `\u` followed by four hex digits. A value copied from a Java properties file still contains the escape spelling. `<storage path>` is the line printed by `echo "$STORAGE"`. The truststore and signing values are absolute paths. A path that starts with `~` is left as those two characters.

```properties
sonar.jdbc.url=jdbc:postgresql://localhost:5432/sonarqube?sslmode=verify-full&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory
sonar.jdbc.username=sonarqube
sonar.jdbc.password=<database password>
sonar.web.javaAdditionalOpts=-Djavax.net.ssl.trustStore=<truststore path> -Djavax.net.ssl.trustStorePassword=changeit
sonar.ce.javaAdditionalOpts=-Djavax.net.ssl.trustStore=<truststore path> -Djavax.net.ssl.trustStorePassword=changeit
sonar.hunteragent.orchestrator.url=http://localhost:9091
sonar.remediationagent.orchestrator.url=http://localhost:9091
sonar.vortex.enabled=true
sonar.vortex.analysis.url=http://localhost:9092
sonar.agentic.storage.type=FILESYSTEM
sonar.agentic.storage.filesystem.base-dir=<storage path>
sonar.agentic.orchestrator.storage.type=FILESYSTEM
sonar.agentic.orchestrator.storage.filesystem.base-dir=<storage path>
sonar.agentic.signing.secretFile=<instance-secret path>
sonar.agentic.orchestrator.signingKeyPath=<agentic-shared.key path>
```

When one of these properties already has a value, replace that value. When `sonar.web.javaAdditionalOpts` or `sonar.ce.javaAdditionalOpts` already has options, append the two `-Djavax.net.ssl.trustStore` flags to those options. When `-Djavax.net.ssl.trustStore` already names a file, import the database CA into that file in [Step 5: Import the database CA](#database-ca) and write that path here.

Leave `sonar.web.port` unset so SonarQube Server listens on port 9000.

## Step 8: Start SonarQube Server <a href="#start-sonarqube" id="start-sonarqube"></a>

Start SonarQube Server, or restart it if it's already running, before the containers. It reads `sonar.properties` only at startup. See [From the ZIP file](https://docs.sonarsource.com/sonarqube-server/server-installation/from-zip-file/starting-stopping-server/from-zip-file.md).

* **Linux:** `<sonarqubeHome>/bin/linux-x86-64/sonar.sh start`
* **macOS:** `<sonarqubeHome>/bin/macosx-universal-64/sonar.sh start`

Wait until the status is UP:

```bash
curl -s http://localhost:9000/api/system/status
```

The response contains `"status":"UP"`. Until then it contains `"status":"STARTING"`. The first startup creates the database schema, so `curl` to port 9000 can fail for several minutes after `sonar.sh start`.

A log line that says a property from [Step 7: Edit sonar.properties](#properties) is not a recognized system property is expected. With `sonar.sh start`, it's written to `logs/nohup.log`. The properties still apply. Leave them in `sonar.properties`.

## Step 9: Start the containers <a href="#start-containers" id="start-containers"></a>

From the bundle directory, which you entered in [Step 6: Derive the signing key](#signing):

```bash
docker compose up -d
docker compose ps -a
```

## Step 10: Verify the deployment <a href="#check" id="check"></a>

* `curl -s http://localhost:9000/api/system/status` returns `"status":"UP"`.
* In the bundle directory, `docker compose ps -a` shows the Agent Orchestrator, the Hunter Agent runtime, the Remediation Agent runtime, Vortex analysis, and the egress proxy as running. `signing-init`, `storage-init`, and `truststore-init` are `Exited` with code 0.
* `docker compose ps -a` has no `sonarqube-tls-proxy` service.

When a check fails, see [Troubleshooting](#troubleshooting).

## Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

When the Agent Orchestrator is `Exited`, run `docker compose logs orchestrator` in the bundle directory:

* `password authentication failed for user "sonarqube"` means the password in this bundle is not the password the database checks, or `sonar.jdbc.password` was not saved as described in [Step 7: Edit sonar.properties](#properties).
* An SSL error, `unknown ca`, or a certificate name mismatch means the CA you imported in [Step 5: Import the database CA](#database-ca) is not the CA that signed the server certificate, or the server certificate is missing `localhost` or `host.docker.internal`. See [Step 1: Prepare the database](#database).
* A message that the host refused the connection means PostgreSQL is listening on `127.0.0.1` only, or `pg_hba.conf` has no `hostssl` rule for the Docker source address.

When Vortex analysis reports `sonarqube-connectivity DOWN` and `Unauthorized`, the Agent Orchestrator URLs or the signing files in [Step 7: Edit sonar.properties](#properties) do not match this bundle, or SonarQube Server was not restarted after you saved `sonar.properties`. The account that runs SonarQube Server must be able to read both signing files.

For other problems, see [Troubleshooting](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/troubleshooting.md).

## Advanced configuration <a href="#advanced" id="advanced"></a>

Steps 1 to 10 cover the simplest configuration. Any other setup is a new run of `generate.py` from the generator directory, [agentic-compose-generator](https://github.com/SonarSource/docker-sonarqube/tree/master/agentic-compose-generator).

Read the [generator README](https://github.com/SonarSource/docker-sonarqube/blob/master/agentic-compose-generator/README.md) before choosing a flag that this page does not use. Every flag is defined there, including its values and its default.

That includes TLS between SonarQube Server and the containers (`--tls on`), which adds the `sonarqube-tls-proxy` directory, NFS or S3 storage, another database host, port, name, or user, fewer components, SonarQube Server on a different machine from Docker, and another edition when SonarQube Server itself runs in the bundle.

Follow `README.md` and `ZIP-INSTRUCTIONS.md` in the bundle that the new command writes. The properties and ports on this page belong to the simplest configuration.

For agent temporary disk sizing and regenerating existing bundles, see [Deploying with a Docker installation](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-with-docker-installation.md#temporary-storage).

## Next step <a href="#next-step" id="next-step"></a>

Register an LLM provider and select a model, see [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md#llm-provider). Then confirm the deployment works, see [Verifying the deployment](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/verifying-the-deployment.md).

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Basic installation](https://docs.sonarsource.com/sonarqube-server/server-installation/from-zip-file/basic-installation.md)
* [Deploying with a Docker installation](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-with-docker-installation.md)
* [Before you start](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/before-you-start.md)
* [Installation overview](https://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/installation-overview.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://docs.sonarsource.com/sonarqube-server/server-installation/ai-agents/deploying-alongside-zip-installation.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.
