> 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/finance-payments/chart-mogul.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# ChartMogul

ChartMogul is a subscription analytics platform. Manage customers, contacts, subscriptions, tags and custom attributes, and export activities.

![ChartMogul logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-00df47afb436923b5ff8342ccd509d7ad3bd4159%2Fchart-mogul.png?alt=media)

|                    |                                                                                      |
| ------------------ | ------------------------------------------------------------------------------------ |
| **Category**       | [Finance and payments](https://docs.fastn.ai/connectors/catalog/finance-payments.md) |
| **Website**        | [chartmogul.com](https://chartmogul.com)                                             |
| **Authentication** | Username and password                                                                |
| **Slug**           | `chartMogul`                                                                         |
| **On fastn.ai**    | [Embed ChartMogul in your product](https://fastn.ai/integrations/chart-mogul)        |

## Setup

Your customers enter their username and password for ChartMogul when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect ChartMogul from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **ChartMogul**.
2. Select **Connect** on the ChartMogul 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. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use ChartMogul'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 Contact to Customer</td><td><code>addContactToCustomer</code></td><td>Adds a contact person to an existing customer, identified by the customer's ChartMogul UUID.</td></tr><tr><td>Add Custom Attributes to Customer</td><td><code>addCustomAttributesToCustomer</code></td><td>Adds one or more custom attributes to a customer identified by its ChartMogul UUID.</td></tr><tr><td>Add Custom Attributes to Customers by Email</td><td><code>addCustomAttributesToCustomersByEmail</code></td><td>Adds custom attributes to every customer matching the given email address, across all data sources.</td></tr><tr><td>Add Custom Attributes to Subscription</td><td><code>addCustomAttributesToSubscription</code></td><td>Adds one or more custom attributes to a subscription. The Subscription UUID here is the uuid returned by List Customer Subscriptions prefixed with sub_ (for example sub_c4bb3592-...). The sub_ id returned inside an imported invoice's line items is a different identifier and is rejected by this endpoint.</td></tr><tr><td>Add Tags to Customer</td><td><code>addTagsToCustomer</code></td><td>Adds one or more tags to a customer identified by its ChartMogul UUID.</td></tr><tr><td>Add Tags to Customers by Email</td><td><code>addTagsToCustomersByEmail</code></td><td>Adds tags to every customer matching the given email address, across all data sources.</td></tr><tr><td>Connect Subscriptions</td><td><code>connectSubscriptions</code></td><td>Links two or more of a customer's subscriptions so ChartMogul treats the change between them as an upgrade or downgrade rather than a churn followed by new business. ChartMogul requires at least two distinct subscriptions, and at least one of them must already have the status Cancelled, otherwise it</td></tr><tr><td>Create Activities Export</td><td><code>createActivitiesExport</code></td><td>Requests the creation of an activities export. The export is generated asynchronously, so save the returned export ID and poll Retrieve Activities Export until the download URL becomes available.</td></tr><tr><td>Create Contact</td><td><code>createContact</code></td><td>Creates a contact person against an existing ChartMogul customer.</td></tr><tr><td>Create Customer</td><td><code>createCustomer</code></td><td>Creates a customer in ChartMogul under the specified data source, optionally with tags, custom attributes and a primary contact.</td></tr></tbody></table>

<details>

<summary>View 95 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>Create Line Item</td><td><code>createLineItem</code></td><td>Adds a line item to an existing invoice identified by its ChartMogul UUID.</td></tr><tr><td>Create Line Item by External ID</td><td><code>createLineItemByExternalId</code></td><td>Adds a line item to an invoice identified by your own external invoice ID rather than its ChartMogul UUID.</td></tr><tr><td>Create Note or Call Log</td><td><code>createNoteOrCallLog</code></td><td>Creates a note or a call log against a customer in ChartMogul CRM.</td></tr><tr><td>Create Opportunity</td><td><code>createOpportunity</code></td><td>Creates a sales opportunity against a customer in ChartMogul CRM.</td></tr><tr><td>Create Plan</td><td><code>createPlan</code></td><td>Creates a subscription plan under a data source, defining its billing interval.</td></tr><tr><td>Create Plan Group</td><td><code>createPlanGroup</code></td><td>Creates a plan group that reports several subscription plans together as one product line.</td></tr><tr><td>Create Source</td><td><code>createSource</code></td><td>Creates a manual data source that billing data can be imported into through the ChartMogul Import API.</td></tr><tr><td>Create Subscription Event</td><td><code>createSubscriptionEvent</code></td><td>Records a subscription event such as a sign-up, plan change or cancellation, used to drive committed MRR reporting.</td></tr><tr><td>Create Task</td><td><code>createTask</code></td><td>Creates a task against a customer in ChartMogul CRM and assigns it to a team member.</td></tr><tr><td>Create Transaction</td><td><code>createTransaction</code></td><td>Records a payment or refund against an invoice identified by its ChartMogul UUID.</td></tr><tr><td>Create Transaction by External ID</td><td><code>createTransactionByExternalId</code></td><td>Records a payment or refund against an invoice identified by your own external invoice ID.</td></tr><tr><td>Delete All Customer Invoices</td><td><code>deleteAllCustomerInvoices</code></td><td>Permanently deletes every invoice a customer has in one data source. This cannot be undone.</td></tr><tr><td>Delete Contact</td><td><code>deleteContact</code></td><td>Permanently deletes a contact from ChartMogul.</td></tr><tr><td>Delete Customer</td><td><code>deleteCustomer</code></td><td>Permanently deletes a customer and all of its associated data from ChartMogul. This cannot be undone.</td></tr><tr><td>Delete Invoice</td><td><code>deleteInvoice</code></td><td>Permanently deletes an invoice along with its line items and transactions.</td></tr><tr><td>Delete Line Item</td><td><code>deleteLineItem</code></td><td>Permanently deletes an invoice line item.</td></tr><tr><td>Delete Note or Call Log</td><td><code>deleteNoteOrCallLog</code></td><td>Permanently deletes a note or call log.</td></tr><tr><td>Delete Opportunity</td><td><code>deleteOpportunity</code></td><td>Permanently deletes a sales opportunity.</td></tr><tr><td>Delete Plan</td><td><code>deletePlan</code></td><td>Permanently deletes a subscription plan. Plans with associated invoices or subscriptions cannot be deleted.</td></tr><tr><td>Delete Plan Group</td><td><code>deletePlanGroup</code></td><td>Deletes a plan group. The subscription plans it contained are not deleted.</td></tr><tr><td>Delete Source</td><td><code>deleteSource</code></td><td>Permanently deletes a data source and every customer, plan, invoice and subscription imported through it. This cannot be undone.</td></tr><tr><td>Delete Subscription Event</td><td><code>deleteSubscriptionEvent</code></td><td>Permanently deletes a subscription event, identified either by its ChartMogul ID or by data source UUID plus your external event ID.</td></tr><tr><td>Delete Task</td><td><code>deleteTask</code></td><td>Permanently deletes a CRM task.</td></tr><tr><td>Delete Transaction</td><td><code>deleteTransaction</code></td><td>Permanently deletes a payment or refund transaction.</td></tr><tr><td>Disable Invoice</td><td><code>disableInvoice</code></td><td>Disables or re-enables an invoice so that it is excluded from or included in ChartMogul metrics, without deleting it. This applies only to invoices from connected billing sources such as Stripe or Recurly; invoices in an Import API source return 422 "This operation is not allowed for this data source." Delete the invoice instead for Import API data.</td></tr><tr><td>Disable Line Item</td><td><code>disableLineItem</code></td><td>Disables or re-enables an invoice line item so that it is excluded from or included in ChartMogul metrics. This applies only to line items from connected billing sources such as Stripe or Recurly; line items in an Import API source return 422 "This operation is not allowed for this data source." Delete the line item instead for Import API data.</td></tr><tr><td>Disable Subscription Event</td><td><code>disableSubscriptionEvent</code></td><td>Disables or re-enables a subscription event so that it is excluded from or included in ChartMogul metrics. This applies only to events from connected billing sources such as Stripe or Recurly; events in an Import API source return 422 "This operation is not allowed for this data source." Delete the event instead for Import API data.</td></tr><tr><td>Disable Transaction</td><td><code>disableTransaction</code></td><td>Disables or re-enables a transaction so that it is excluded from or included in ChartMogul metrics. This applies only to transactions from connected billing sources such as Stripe or Recurly; transactions in an Import API source return 422 "This operation is not allowed for this data source." Delete the transaction instead for Import API data.</td></tr><tr><td>Disconnect Subscriptions</td><td><code>disconnectSubscriptions</code></td><td>Unlinks previously connected subscriptions so ChartMogul reports them independently again.</td></tr><tr><td>Get All Key Metrics</td><td><code>getAllKeyMetrics</code></td><td>Returns MRR, ARR, ARPA, ASP, customer count, customer churn rate and MRR churn rate over a date range, optionally segmented by plan, geography or tag.</td></tr><tr><td>Get ARR</td><td><code>getArr</code></td><td>Returns annual run rate over a date range.</td></tr><tr><td>Get Average Revenue Per Account</td><td><code>getArpa</code></td><td>Returns average revenue per account (ARPA) over a date range.</td></tr><tr><td>Get Average Sale Price</td><td><code>getAsp</code></td><td>Returns the average sale price (ASP) of new subscriptions over a date range.</td></tr><tr><td>Get Customer Churn Rate</td><td><code>getCustomerChurnRate</code></td><td>Returns the customer churn rate over a date range.</td></tr><tr><td>Get Customer Count</td><td><code>getCustomerCount</code></td><td>Returns the number of active paying customers over a date range.</td></tr><tr><td>Get LTV</td><td><code>getLtv</code></td><td>Returns customer lifetime value (LTV) over a date range.</td></tr><tr><td>Get MRR</td><td><code>getMrr</code></td><td>Returns monthly recurring revenue over a date range, broken down into new business, expansion, contraction, churn and reactivation movements.</td></tr><tr><td>Get MRR Churn Rate</td><td><code>getMrrChurnRate</code></td><td>Returns the net MRR churn rate over a date range.</td></tr><tr><td>Import CSV into Source</td><td><code>importCsvIntoSource</code></td><td>Uploads a UTF-8 encoded CSV file of customers, contacts, plans, invoices, line items, transactions or subscription events into a data source. ChartMogul requires multipart/form-data with a real file part, and CSV column headers must use the spaced names ChartMogul documents (for example "external id", not "external_id"). Note: the Fastn HTTP executor always sends a JSON body, so this endpoint currently</td></tr><tr><td>Import Data in Bulk</td><td><code>importDataInBulk</code></td><td>Imports or updates many ChartMogul objects in a single request. Supply any combination of customers, plans, invoices, line items, transactions, subscription events, contacts, notes, tasks, opportunities, tags and custom attributes. The import runs asynchronously; track it with Track Import Status using the external ID supplied here.</td></tr><tr><td>Import Invoices</td><td><code>importInvoices</code></td><td>Imports one or more invoices against a customer identified by ChartMogul UUID. Each invoice carries its line items and, optionally, its payment and refund transactions.</td></tr><tr><td>Import Invoices by External ID</td><td><code>importInvoicesByExternalId</code></td><td>Imports invoices identifying the customer by your own external ID rather than the ChartMogul customer UUID.</td></tr><tr><td>List Activities</td><td><code>listActivities</code></td><td>Returns a cursor-paginated list of MRR movement activities, optionally filtered by date range and movement type.</td></tr><tr><td>List Contacts</td><td><code>listContacts</code></td><td>Returns a cursor-paginated list of contacts, optionally filtered by customer, data source or email.</td></tr><tr><td>List Customer Activities</td><td><code>listCustomerActivities</code></td><td>Returns the MRR movement activities recorded for a single customer.</td></tr><tr><td>List Customer Invoices</td><td><code>listCustomerInvoices</code></td><td>Returns the invoices imported against a single customer, with their line items and transactions.</td></tr><tr><td>List Customer Subscriptions</td><td><code>listCustomerSubscriptions</code></td><td>Returns the subscriptions belonging to a single customer.</td></tr><tr><td>List Customers</td><td><code>listCustomers</code></td><td>Returns a cursor-paginated list of customers, optionally filtered by data source, external ID, email, status or billing system.</td></tr><tr><td>List Customers by Email</td><td><code>listCustomersByEmail</code></td><td>Searches for customers by email address across all data sources.</td></tr><tr><td>List Invoices</td><td><code>listInvoices</code></td><td>Returns a cursor-paginated list of invoices across the account, optionally filtered by customer, data source, external ID or validation status.</td></tr><tr><td>List Notes and Call Logs</td><td><code>listNotesAndCallLogs</code></td><td>Returns a cursor-paginated list of notes and call logs, optionally filtered by customer or type.</td></tr><tr><td>List Opportunities</td><td><code>listOpportunities</code></td><td>Returns a cursor-paginated list of sales opportunities, optionally filtered by customer, owner, pipeline and estimated close date. Note that ChartMogul ignores forecast_category and type as query filters, so they are not exposed here; filter on those fields in your own code after fetching. Pipeline Stage is only honoured when Pipeline is supplied alongside it.</td></tr><tr><td>List Plan Groups</td><td><code>listPlanGroups</code></td><td>Returns a cursor-paginated list of plan groups on the account.</td></tr><tr><td>List Plans</td><td><code>listPlans</code></td><td>Returns a cursor-paginated list of subscription plans, optionally filtered by data source, external ID or system.</td></tr><tr><td>List Plans in Plan Group</td><td><code>listPlansInPlanGroup</code></td><td>Returns the subscription plans that belong to a plan group.</td></tr><tr><td>List Sources</td><td><code>listSources</code></td><td>Returns the data sources configured on the ChartMogul account, optionally filtered by name or billing system.</td></tr><tr><td>List Subscription Events</td><td><code>listSubscriptionEvents</code></td><td>Returns a paginated list of subscription events, optionally filtered by data source, customer, subscription, event type or date.</td></tr><tr><td>List Tasks</td><td><code>listTasks</code></td><td>Returns a cursor-paginated list of CRM tasks, optionally filtered by customer, assignee, due date or completion state.</td></tr><tr><td>Merge Contacts</td><td><code>mergeContacts</code></td><td>Merges one contact into another. The source contact is removed and its details are folded into the destination contact.</td></tr><tr><td>Merge Customers</td><td><code>mergeCustomers</code></td><td>Merges one customer into another so their subscriptions and revenue are reported as a single customer. Identify each side by ChartMogul UUID, or by data source UUID plus your external ID.</td></tr><tr><td>Ping</td><td><code>ping</code></td><td>Verifies that the API key is valid and reports whether it grants read-only or read and write access. Useful as a connection health check.</td></tr><tr><td>Remove Custom Attributes from Customer</td><td><code>removeCustomAttributesFromCustomer</code></td><td>Removes the named custom attributes from a customer.</td></tr><tr><td>Remove Custom Attributes from Subscription</td><td><code>removeCustomAttributesFromSubscription</code></td><td>Removes the named custom attributes from a subscription. The Subscription UUID here is the uuid returned by List Customer Subscriptions prefixed with sub_ (for example sub_c4bb3592-...). The sub_ id returned inside an imported invoice's line items is a different identifier and is rejected by this endpoint.</td></tr><tr><td>Remove Tags from Customer</td><td><code>removeTagsFromCustomer</code></td><td>Removes the named tags from a customer.</td></tr><tr><td>Retrieve Account</td><td><code>retrieveAccount</code></td><td>Retrieves details of the ChartMogul account the API key belongs to, including the account name, currency and time zone.</td></tr><tr><td>Retrieve Activities Export</td><td><code>retrieveActivitiesExport</code></td><td>Retrieves the status of a previously requested activities export, returning the download URL once the export has finished generating.</td></tr><tr><td>Retrieve Contact</td><td><code>retrieveContact</code></td><td>Retrieves a single contact by its ChartMogul UUID.</td></tr><tr><td>Retrieve Customer</td><td><code>retrieveCustomer</code></td><td>Retrieves a single customer by its ChartMogul UUID, including MRR, ARR, status and attributes.</td></tr><tr><td>Retrieve Customer Tags and Attributes</td><td><code>retrieveCustomerAttributes</code></td><td>Returns all tags, custom attributes and Clearbit enrichment data stored against a customer.</td></tr><tr><td>Retrieve Invoice</td><td><code>retrieveInvoice</code></td><td>Retrieves a single invoice by its ChartMogul UUID, including its line items and transactions.</td></tr><tr><td>Retrieve Line Item</td><td><code>retrieveLineItem</code></td><td>Retrieves a single invoice line item by its ChartMogul UUID.</td></tr><tr><td>Retrieve Note or Call Log</td><td><code>retrieveNoteOrCallLog</code></td><td>Retrieves a single note or call log by its ChartMogul UUID.</td></tr><tr><td>Retrieve Opportunity</td><td><code>retrieveOpportunity</code></td><td>Retrieves a single sales opportunity by its ChartMogul UUID.</td></tr><tr><td>Retrieve Plan</td><td><code>retrievePlan</code></td><td>Retrieves a single subscription plan by its ChartMogul UUID.</td></tr><tr><td>Retrieve Plan Group</td><td><code>retrievePlanGroup</code></td><td>Retrieves a single plan group by its ChartMogul UUID.</td></tr><tr><td>Retrieve Source</td><td><code>retrieveSource</code></td><td>Retrieves a single data source by its ChartMogul UUID.</td></tr><tr><td>Retrieve Subscription Custom Attributes</td><td><code>retrieveSubscriptionAttributes</code></td><td>Returns the custom attributes stored against a subscription. The Subscription UUID here is the uuid returned by List Customer Subscriptions prefixed with sub_ (for example sub_c4bb3592-...). The sub_ id returned inside an imported invoice's line items is a different identifier and is rejected by this endpoint.</td></tr><tr><td>Retrieve Task</td><td><code>retrieveTask</code></td><td>Retrieves a single CRM task by its ChartMogul UUID.</td></tr><tr><td>Retrieve Transaction</td><td><code>retrieveTransaction</code></td><td>Retrieves a single payment or refund transaction by its ChartMogul UUID.</td></tr><tr><td>Track Import Status</td><td><code>trackImportStatus</code></td><td>Returns the progress and any errors of a bulk import previously submitted with Import Data in Bulk.</td></tr><tr><td>Unmerge Customers</td><td><code>unmergeCustomers</code></td><td>Separates a previously merged customer record back out of the merged customer it was folded into.</td></tr><tr><td>Update Contact</td><td><code>updateContact</code></td><td>Updates the supplied fields on an existing contact. Fields that are not sent are left unchanged.</td></tr><tr><td>Update Customer</td><td><code>updateCustomer</code></td><td>Updates the supplied fields on an existing customer. Fields that are not sent are left unchanged. Note that attributes.custom can only change custom attributes that already exist on the customer; use Add Custom Attributes to Customer to create new ones, or ChartMogul</td></tr><tr><td>Update Customer Custom Attributes</td><td><code>updateCustomerCustomAttributes</code></td><td>Updates the values of existing custom attributes on a customer.</td></tr><tr><td>Update Invoice</td><td><code>updateInvoice</code></td><td>Updates the supplied fields on an existing invoice. Fields that are not sent are left unchanged.</td></tr><tr><td>Update Invoice Status</td><td><code>updateInvoiceStatus</code></td><td>Voids or writes off an invoice, identified by data source UUID and your external invoice ID. Only voided and written_off are accepted; paid status is derived by ChartMogul from the invoice's transactions.</td></tr><tr><td>Update Line Item</td><td><code>updateLineItem</code></td><td>Updates the supplied fields on an existing invoice line item. Fields that are not sent are left unchanged.</td></tr><tr><td>Update Note or Call Log</td><td><code>updateNoteOrCallLog</code></td><td>Updates the supplied fields on an existing note or call log.</td></tr><tr><td>Update Opportunity</td><td><code>updateOpportunity</code></td><td>Updates the supplied fields on an existing sales opportunity, for example to advance it to a new pipeline stage.</td></tr><tr><td>Update Plan</td><td><code>updatePlan</code></td><td>Updates the supplied fields on an existing subscription plan. Fields that are not sent are left unchanged.</td></tr><tr><td>Update Plan Group</td><td><code>updatePlanGroup</code></td><td>Updates the name or plan membership of an existing plan group.</td></tr><tr><td>Update Subscription Custom Attributes</td><td><code>updateSubscriptionCustomAttributes</code></td><td>Updates the values of existing custom attributes on a subscription. The Subscription UUID here is the uuid returned by List Customer Subscriptions prefixed with sub_ (for example sub_c4bb3592-...). The sub_ id returned inside an imported invoice's line items is a different identifier and is rejected by this endpoint.</td></tr><tr><td>Update Subscription Event</td><td><code>updateSubscriptionEvent</code></td><td>Updates a subscription event, identified either by its ChartMogul ID or by data source UUID plus your external event ID.</td></tr><tr><td>Update Task</td><td><code>updateTask</code></td><td>Updates the supplied fields on an existing CRM task, for example to reassign it or mark it complete.</td></tr><tr><td>Update Transaction</td><td><code>updateTransaction</code></td><td>Updates the supplied fields on an existing payment or refund transaction.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>MRR Movement</td><td><code>mrr_movement</code></td><td>Fires whenever ChartMogul records a real-time customer-level MRR movement - new business, churn, expansion, contraction or reactivation. The specific movement is in the payload's movement_type field. SETUP (required, once per ChartMogul account): in ChartMogul go to Settings > Destinations, click ADD DESTINATION, choose Webhook, enter a Name, paste this trigger's Fastn URL into the URL field, optionally tick 'Include custom attributes in webhook payload', then click SAVE. ChartMogul delivers nothing until that destination is saved. Note that ChartMogul does NOT fire this event for MRR changes caused by historical edits, customer merges, App Store Connect or Google Play integrations, or changes that do not alter the MRR amount. Failed deliveries (any non-2xx response) are retried up to 17 times.</td></tr></tbody></table>


---

# 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/finance-payments/chart-mogul.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.
