> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/crm-sales/vlocity.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Vlocity (Salesforce Industries)

Vlocity, now Salesforce Industries, adds industry quoting to Salesforce. Manage carts, baskets, products and promotions.

![Vlocity (Salesforce Industries) logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0b971390fdf5a27350cd0e4c58fdf0a0a0d5448e%2Fvlocity.png?alt=media)

|                    |                                                                        |
| ------------------ | ---------------------------------------------------------------------- |
| **Category**       | [CRM and sales](https://docs.fastn.ai/connectors/catalog/crm-sales.md) |
| **Website**        | [salesforce.com](https://salesforce.com)                               |
| **Authentication** | OAuth 2.0                                                              |
| **Slug**           | `vlocity`                                                              |
| **On fastn.ai**    | [Embed Vlocity in your product](https://fastn.ai/integrations/vlocity) |

## Setup

Your customers sign in to Vlocity (Salesforce Industries) through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Vlocity (Salesforce Industries) from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Vlocity (Salesforce Industries)**.
2. Select **Connect** on the Vlocity (Salesforce Industries) card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Vlocity (Salesforce Industries) and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Vlocity (Salesforce Industries)'s actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Items to Cart</td><td><code>addCartItems</code></td><td>Industries CPQ postCartsItems: add one or more products to an existing cart. Enforces product eligibility, quantity constraints and cart state validation, and can trigger pricing, validation and promotion logic. The operation is atomic. Each entry in items is an itemJSON structure carrying at minimum itemId. itemId IS A PricebookEntry Id (01u...), NOT a Product2 Id (01t...) - Vlocity says so verbatim when you get it wrong: "PricebookEntry not found for the given PriceBookEntry Ids." The product must also have a vlocity_cmt__ProductChildItem__c row (created automatically by the package's Product2 trigger, or by the Root Product Child Item batch job); without one the call" Verified end to end on Vlocity CMT 900.442: returns code 150 severity INFO "Successfully added." with the priced line item.</td></tr><tr><td>Add To or Delete From Existing Basket</td><td><code>updateBasketContents</code></td><td>Digital Commerce v3 Basket Operations: add an offer to an existing basket, or delete one from it with deleteBundleNumber. That transport defect is fixed. BLOCKED beyond that on org configuration, same root cause as Create Basket: the shipped VlocityAPIMetadata row for basketOperations carries a NULL APIHandler (only DefaultBasketOperationsRHandler), so Vlocity's router has no handler class and every basket call returns INVOKEMETHOD-405 "Method not found: null". A CME implementation supplies that handler; the managed package does not.</td></tr><tr><td>Apply Price Adjustment to Cart Item</td><td><code>applyCartItemAdjustment</code></td><td>Industries CPQ (Winter '26 Apply Adjustment): apply a manual price adjustment to one cart line item. Verified live on CMT 900.442 that the /v2/cpq/carts/{cartId}/items/{itemId}/pricing path routes. itemId is the CART LINE ITEM Id.</td></tr><tr><td>Apply Promotions to Cart</td><td><code>addCartPromotionItems</code></td><td>Industries CPQ postCartsPromoItems: apply one or more promotions to a cart, adding the promotion's items as cart line items. Each entry in items carries the promotion Id (itemId) plus any configuration the promotion requires.</td></tr><tr><td>Checkout Cart</td><td><code>checkoutCart</code></td><td>Industries CPQ: submit the cart for checkout - converts an Opportunity to a Quote, a Quote to an Order, or an Order to Assets. NOT REVERSIBLE when submitOrder is true. That transport defect is fixed and the body now goes out correctly. BLOCKED beyond that on org configuration: on Vlocity CMT 900.442 with submitOrder false and checkOrderStatus false, against a priced cart holding a real line item, this Checkout needs the CME object and field mappings (CustomObjectMap/CustomFieldMap) that a CME implementation supplies; the managed package alone does not. Same unconditional NPE family as Create Cart and Get Eligible Products.</td></tr><tr><td>Create Basket</td><td><code>createBasket</code></td><td>Digital Commerce v3: create a basket by adding an offer to a new virtual basket. Returns a cartContextKey that identifies the basket on later calls. BLOCKED on org configuration. Measured on Vlocity CMT 900.442: returns INVOKEMETHOD-405 "Method not found: null" both before and after the Digital Commerce API metadata was loaded. Root cause found in the package's own VlocityAPIMetadata static resource - the shipped row for basketOperations carries a NULL APIHandler, only an APIResponseHandler (DefaultBasketOperationsRHandler), so the router has no handler class to dispatch to and reports the null handler name back verbatim. A CME implementation supplies that handler; the managed package does not. Passing methodName explicitly does not change the result. Route, auth and namespace substitution are verified correct.</td></tr><tr><td>Create Cart</td><td><code>createCart</code></td><td>Industries CPQ: create a cart. The cart header is an Opportunity, Order or Quote chosen by objectType, and the created record's Id becomes the cartId for every other cart action. Also serves the assetToOrder flow when assetIds are supplied. Body fields are JSON-serialised from the inputs supplied - no bodyTemplate, because the accepted field set varies by header object and org config. BLOCKED on org configuration on Vlocity CMT 900.442: HTTP 500 APEX_ERROR System.NullPointerException (System Code) for every body shape tried, with and without priceListId, effectiveDate, status and stageName, and after a full price list, pricing element, price list entry, ProductChildItem and catalog fixture existed. Same unconditional NPE as Get Eligible Products, Checkout Cart and Delete Cart Discount. WORKAROUND: create the header via the Salesforce connector (Opportunity with Pricebook2Id and vlocity_cmt__PriceListId__c) and pass its Id as cartId - the rest of the cart API then works.</td></tr><tr><td>Create EPC Picklists</td><td><code>createEpcPicklists</code></td><td>Enterprise Product Catalog: create picklists, which supply the allowed values for EPC product attributes. Pass the picklist definitions in picklists; picklist versions and picklist items are managed through the same EPC resource family.</td></tr><tr><td>Create EPC Products</td><td><code>createEpcProducts</code></td><td>Enterprise Product Catalog: create products in the Vlocity Product Console. Pass the product definitions in products. This is the EPC-aware create - it goes through the catalog's abstraction layer rather than writing Product2 directly, so product versions, child items and attribute assignments are handled consistently. For plain Product2 field writes the generic Salesforce connector is the simpler route.</td></tr><tr><td>Create EPC Promotions</td><td><code>createEpcPromotions</code></td><td>Enterprise Product Catalog: create promotions and their promotion items. These are the promotions the CPQ cart and Digital Commerce offers surface later, so creating them here is the catalog-side counterpart to Apply Promotions to Cart.</td></tr></tbody></table>

<details>

<summary>View 31 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Delete Applied Promotions from Cart</td><td><code>deleteCartPromotions</code></td><td>Industries CPQ: remove one or more applied promotions from a cart. Pass id as a comma-separated list of applied promotion Ids (vlocity_cmt__OrderAppliedPromotion__c and its quote/opportunity equivalents). Depending on the org's delete-service setting, the promotion's products are removed along with the promotion.</td></tr><tr><td>Delete Cart Discount</td><td><code>deleteCartDiscounts</code></td><td>Industries CPQ: remove cart-level discounts. METHOD CORRECTED - PUT, not DELETE. Salesforce answers DELETE on this path with 405 "HTTP Method 'DELETE' not allowed. Allowed are GET,HEAD,PUT", so the action as originally built could never work; as PUT it now routes and reaches Vlocity's handler. Pass id as a comma-separated list of discount Ids; omit to clear all. A JSON body is always sent (at minimum {}) because cartId is URL-consumed. PARTIALLY BLOCKED on org configuration, not on this contract: on Vlocity CMT 900.442 the underlying deleteCartsDiscounts handler throws an unconditional NullPointerException. Reproduced from Apex via CpqAppHandler.invokeMethod with FOUR different input shapes (id, discountId, items[], cartAddedDiscountIds), all failing identically inside managed code, and with a real vlocity_cmt__OpportunityDiscount__c present on the cart. Use Get Cart Discounts first.</td></tr><tr><td>Delete EPC Products</td><td><code>deleteEpcProducts</code></td><td>Delete EPC product objects. Salesforce Industries documents DELETE on the EPC products resource and states the EPC object APIs support create, read, update and delete, but the reference page prints no request body for the DELETE, so the payload here mirrors Create and Update EPC Products (a products array). Confirm the payload against a live org before relying on it.</td></tr><tr><td>Delete Items from Cart</td><td><code>deleteCartItems</code></td><td>Industries CPQ deleteCartsItems: remove one or more line items from a cart. Pass id as a comma-separated list of line item Ids. Note that by default deleted items are not re-evaluated against Vlocity Rules; set the ShouldConsiderDeletedItems CPQ configuration setting to true in the org if they must be.</td></tr><tr><td>Get Basket</td><td><code>getBasket</code></td><td>Digital Commerce v3: read an existing basket by its cartContextKey. BLOCKED on org configuration, same root cause as Create Basket: the shipped VlocityAPIMetadata row for basketOperations carries a NULL APIHandler (only DefaultBasketOperationsRHandler as the response handler), so Vlocity's router has no handler class to dispatch to and every basket call returns INVOKEMETHOD-405 "Method not found: null". A CME implementation supplies that handler; the managed package does not. Loading the API metadata from the package's own static resource does not fix it, because the null is in the shipped data itself. Route, auth and namespace substitution are verified correct on Vlocity CMT 900.442.</td></tr><tr><td>Get Cart Checkout Status</td><td><code>getCartCheckoutStatus</code></td><td>Industries CPQ: check the status of a cart that has been submitted for checkout. GET on the same resource that Checkout Cart POSTs to. Route and auth verified on Vlocity CMT 900.442. BLOCKED by ordering, not by contract: this is only meaningful AFTER a successful checkout, because it reads the Quote or Order that checkout produced. Against a cart that has never been checked out it In this test org the prerequisite could not be met because Checkout Cart itself is blocked by an org-configuration NullPointerException, so this action has never been observed against a checked-out cart.</td></tr><tr><td>Get Cart Discounts</td><td><code>getCartDiscounts</code></td><td>Industries CPQ: list the cart-level discounts applied to a cart. This resource is not printed in the Standard Cart API summary table; its existence was established from Salesforce's own 405 reply to a DELETE on the same path - "HTTP Method 'DELETE' not allowed. Allowed are GET,HEAD,PUT" - which enumerates GET as supported. Pair it with Delete Cart Discount (PUT on the same path) to see what is there before removing anything.</td></tr><tr><td>Get Cart Items</td><td><code>getCartItems</code></td><td>Industries CPQ getCartsItems: return the line items in a cart. This is the only call that returns all line items in the cart document, and the response can be very large - set gciTrimMode true and pass an explicit fields list to keep it under Fastn's response limit. Pass id with one or more comma-separated line item Ids to fetch specific lines instead of the whole cart. Paging is keyset style via lastRecordId plus pagesize, not offset.</td></tr><tr><td>Get Cart Promotions</td><td><code>getCartPromotions</code></td><td>Industries CPQ getCartsPromotions: return the promotions applied to, or available for, the specified cart. Use appliedPromotions to switch between the applied and the available list.</td></tr><tr><td>Get Cart Sites</td><td><code>getCartSites</code></td><td>Industries CPQ: list the service/billing sites (Accounts) selectable for a cart or one of its line items. Not printed in the Standard Cart API summary table - discovered from Vlocity's own HATEOAS envelope, which returns an availablesites action linking to /v2/cpq/carts/{cartId}/sites?cartId=..&#x26;id=..&#x26;lookupField=.. on every account-lookup field of a line item, plus a newsite POST action on the cart's sites node. Pass lookupField as the lowercased API name of the account field being populated, e.g. vlocity_cmt__serviceaccountid__c or vlocity_cmt__billingaccountid__c. ROUTE CONFIRMED on Vlocity CMT 900.442 - it resolves rather than 404ing - but BLOCKED on org configuration: it answers HTTP 200 with INVOKE-500 severity ERROR "Attempt to de-reference a null object", the same unconditional NPE family as Create Cart, Get Eligible Products, Checkout Cart and Delete Cart Discount.</td></tr><tr><td>Get Cart Summary</td><td><code>getCartSummary</code></td><td>Industries CPQ: return a summary of the cart header - total one-time and recurring charges, the associated account, multi-site information, and links to further actions such as checkout. cartId is the Id of the Opportunity, Quote or Order acting as the cart.</td></tr><tr><td>Get Catalog Offer Details (Admin)</td><td><code>getCatalogOfferDetails</code></td><td>Digital Commerce admin: return the cached offer-details payload for one offer in a catalog. offerId comes from the Product or Promotion node of the Catalog Profile response.</td></tr><tr><td>Get Catalog Offer Prices (Admin)</td><td><code>getCatalogOfferPrices</code></td><td>Digital Commerce admin: return the cached price results for one offer in a catalog. offerId is obtained from the combined result of apiResponse.data.catalogProductRelationDetails.Product and.Promotion in the Catalog Profile response.</td></tr><tr><td>Get Catalog Offers (Admin)</td><td><code>getCatalogOffers</code></td><td>Digital Commerce admin: list the offers cached for a catalog. This is the admin-side view used to inspect what the cache generation jobs produced, as opposed to the runtime Get Offers call that applies user context.</td></tr><tr><td>Get Catalog Profile (Admin)</td><td><code>getCatalogProfile</code></td><td>Digital Commerce admin: return the catalog profile - the compiled relation between the catalog and its products and promotions. Call this first: the Product and Promotion nodes under apiResponse.data.catalogProductRelationDetails supply the offerId that the admin offer details, prices and bundle wrapper actions need.</td></tr><tr><td>Get Eligible Products for Cart</td><td><code>getCartProducts</code></td><td>Industries CPQ getCartsProducts: return the products that can be added to this cart, after eligibility and availability rules have been applied. The product-picker feed for a cart. BLOCKED on org configuration, and specifically NOT on missing catalog data. Verified on Vlocity CMT 900.442 against a cart with a price list, price list entries, pricing elements, root ProductChildItems, a Digital Commerce catalog, and a line item that Add Items to Cart had already added: this resource still answers HTTP 200 with code 209, severity ERROR, "Attempt to de-reference a null object". Reproduced identically from Apex via CpqAppHandler.invokeMethod('getCartsProducts'), so the fault is inside Vlocity managed code, not the request. Same unconditional NPE as Create Cart, Checkout Cart, Delete Cart Discount and Get Cart Sites. Use Add Items to Cart with a known PricebookEntry Id instead; that path works.</td></tr><tr><td>Get EPC Picklists</td><td><code>getEpcPicklists</code></td><td>Enterprise Product Catalog: read picklists and their items. Pass id or code to fetch a specific picklist, or omit both to list. Useful as a dropdown source when configuring EPC product attributes.</td></tr><tr><td>Get EPC Products</td><td><code>getEpcProducts</code></td><td>Enterprise Product Catalog: read products through the EPC abstraction layer, including their versions, child items and attribute assignments. Pass id to fetch a specific product. The EPC overview documents create, read, update and delete on this resource; the read verb is exercised here on the same collection URL.</td></tr><tr><td>Get EPC Promotions</td><td><code>getEpcPromotions</code></td><td>Enterprise Product Catalog: read promotions and their promotion items. Pass id or code to fetch a specific promotion, or omit both to list.</td></tr><tr><td>Get Integration Procedure Result</td><td><code>getIntegrationProcedure</code></td><td>Invoke a tenant-specific Integration Procedure over GET by its Type_SubType key. Treat every part of the URL as case-sensitive; keep the trailing slash. Extra URL path values land in the procedure's options node as Path1, Path2...; query parameters append directly. Verified live on Vlocity CMT 900.442: The runtime resolves a procedure only when there is an ACTIVE vlocity_cmt__OmniScript__c with IsProcedure true AND a compiled vlocity_cmt__OmniScriptDefinition__c child row; the OmniScript row alone is not enough and yields 404 "No Active Procedure Found".</td></tr><tr><td>Get Offer Bundle Wrapper (Admin)</td><td><code>getCatalogOfferBundleWrapper</code></td><td>Digital Commerce admin: return the cached bundle-wrapper structure for one offer, which is the compiled bundle hierarchy the basket APIs clone when adding that offer.</td></tr><tr><td>Get Offer Details</td><td><code>getOfferDetails</code></td><td>Digital Commerce v3: fetch the full configuration detail of one offer from the catalog cache. BLOCKED on org configuration, same chain as Get Offers: with vlocity_cmt__VlocityAPIMetadata__c loaded and an active catalog present, the Digital Commerce handlers reach the Context Rules Framework, which is entirely unprovisioned in this org (ContextScope, ContextDimension, ContextMapping, ContextAction, ContextRule and EntityFilter all hold 0 rows) and the call fails with INVOKE-500 "Invalid Context Object". Those rows come from a CME implementation's DataPacks, not from the managed package. Route, auth and namespace substitution are all verified correct on Vlocity CMT 900.442.</td></tr><tr><td>Get Offers</td><td><code>getOffers</code></td><td>Digital Commerce v3: list the offers published in a catalog. Serves CACHED data - the response comes from the Digital Commerce API cache, not from a live query. BLOCKED on org configuration, but the blocker has moved and the new one is the real gating item. Before the API metadata was loaded this returned "APIMetadata for GetOffers is not present."; after loading vlocity_cmt__VlocityAPIMetadata__c (17 rows, from the package's own VlocityAPIMetadata static resource) and creating an active vlocity_cmt__Catalog__c with CatalogProductRelationship rows, it returns INVOKE-500 "Invalid Context Object". Measured cause: the Context Rules Framework is entirely unprovisioned in this org - ContextScope, ContextDimension, ContextMapping, ContextAction, ContextRule and EntityFilter all hold 0 rows. Those come from a CME implementation's DataPacks, not from the managed package. The route, auth, namespace and query params are all correct.</td></tr><tr><td>Get Product Details for Cart</td><td><code>getCartProductDetails</code></td><td>Industries CPQ: return the full detail of one eligible product in the context of a cart, including its attributes, child items and - when include is qualifications - why it does or does not qualify. productId is the Product2 Id.</td></tr><tr><td>Get Promotion Details for Cart</td><td><code>getCartPromotionDetails</code></td><td>Industries CPQ: return the full detail of one promotion in the context of a cart, including its promotional items and - when include is qualifications - why it does or does not qualify. promotionId is the Promotion record Id.</td></tr><tr><td>Invoke Integration Procedure</td><td><code>invokeIntegrationProcedure</code></td><td>Invoke a tenant-specific Integration Procedure by its Type_SubType key. Treat every part of the URL as case-sensitive. This action is a deliberate PASSTHROUGH and has no bodyTemplate, so any undeclared input you pass is serialised straight into the IP's input JSON - that is how you supply the procedure's own parameters. TRAP: because procedureName is consumed by the URL, a call that passes ONLY procedureName sends no body at all (Fastn's auto-body has nothing left to serialise), which Vlocity's deserialiser rejects. For an IP that takes no input, pass options as an empty object so a body is always produced. Same defect class as Run Pricing on Cart, but fixed by contract rather than by a template, because a bodyTemplate would destroy the passthrough.</td></tr><tr><td>Replace Offers in Cart</td><td><code>replaceCartOffers</code></td><td>Industries CPQ offer migration: replace existing offers in a cart with their migration targets. PATH CONFIRMED on a live org (Vlocity CMT 900.442): the per-cart form routes; the cart-less form in the Standard Cart summary table does not. BODY FIELD: targetOfferIdToItemIds, a STRING (not a list or map), format "&#x3C;PricebookEntryId>:&#x3C;cartItemId>", comma-separated for several pairs. The left side must be a PricebookEntry Id (01u...) for the replacement offer, NOT a Product2 Id (01t...); the right side is the existing cart line item Id. Pinned by three live probes: items:[...] -> "targetOfferIdToItemIds must be present in RequestBody."; a map -> "targetOfferIdToItemIds must be String."; the string form is accepted and validated as ids. Undocumented on any Salesforce page that renders.</td></tr><tr><td>Run Pricing on Cart</td><td><code>priceCart</code></td><td>Industries CPQ: invoke the pricing rules and return pricing information for cart line items. If items is supplied only those line items are priced; if it is omitted every item in the cart is priced. Verified: body {} and body {"items":[]} both return 200.</td></tr><tr><td>Update EPC Products</td><td><code>updateEpcProducts</code></td><td>Enterprise Product Catalog: update product fields by Id. Each entry in products must carry the product Id plus the fields to change. Shares its resource URL with Create EPC Products - the Apex REST class dispatches on HTTP method.</td></tr><tr><td>Update Items in Cart</td><td><code>updateCartItems</code></td><td>Industries CPQ putCartsItems: update one or more line items in a cart - quantity, attribute values, or any other updatable line field. Each entry in items.records must be a COMPLETE JSONRecord taken from the response of Get Cart Items or Add Items to Cart, edited in place; a partial record is not supported. WIRE SHAPE (verified both ways on a live org): items must be an OBJECT wrapping a records array - {"records":[... ]}. Sending items as a bare array This differs from Add Items to Cart (POST), which genuinely does take a bare array.</td></tr><tr><td>Update Product in Basket</td><td><code>updateBasketProduct</code></td><td>Digital Commerce v3: update a product already in a basket - change its quantity or its configured attributes. That transport defect is fixed. BLOCKED beyond that on org configuration, same root cause as Create Basket: the shipped VlocityAPIMetadata row for basketOperations carries a NULL APIHandler (only DefaultBasketOperationsRHandler), so Vlocity's router has no handler class and every basket call returns INVOKEMETHOD-405 "Method not found: null". A CME implementation supplies that handler; the managed package does not.</td></tr></tbody></table>

</details>


---

# 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.fastn.ai/connectors/catalog/crm-sales/vlocity.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.
