> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/using-umbraco-commerce-ai/asking-commerce-questions.md). Agents can also search and read this documentation through its [MCP server](https://docs.umbraco.com/~gitbook/mcp).

# Asking Commerce Questions

Example questions to ask Umbraco Commerce AI from the Copilot section, and how the Copilot handles stores and reporting periods.

Ask your questions from the **Copilot** section. Click **New chat**, select an agent that has the **Commerce (Read)** tool scope, and type your question. See [Installation](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/getting-started/installation.md) to set up such an agent.

The answers come from your live store data each time you ask. The figures in the examples on this page come from a demo store, so your own numbers differ.

![The Copilot answering "How's the shop doing this week?". The tools used are listed above the answer.](https://1628770284-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1uB1EIR48Mf1SP8Y1TEf%2Fuploads%2Fgit-blob-d1000f79e57e927a295bceecf47fac8024eea0e9%2Fcopilot-store-pulse.png?alt=media)

The tools the agent called are listed above each answer, for example `commerce_get_stores` and `commerce_get_store_pulse`. Use them to check where an answer came from.

## Example questions

The following questions each match one of the [Tools](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/getting-started/tools.md).

### Sales and performance

* "How's the shop doing this week?"
* "Give me a summary of last month's performance for a report."
* "What are my best sellers this month?"
* "What's my cart abandonment rate?"
* "Are refunds going up this month?"

### Orders

* "Are any orders failing or stuck?"
* "How many orders this week are still waiting to be captured?"
* "Show me this week's orders that are authorized but not captured."
* "What's in order `ORDER-00974-51182-57Y7C`?"

### Customers

* "Who are my best customers over the last 90 days?"
* "Do my customers come back?"
* "Find customers tagged 'wholesale'."
* "Tell me about Ada Lovelace."

### Products and stock

* "What am I about to run out of?"
* "When will the cold brew sell out?"

### Discounts and gift cards

* "Which discounts get used the most, and is discounting creeping up?"
* "How does the summer sale work?"
* "How much gift card balance is outstanding?"

### Store setup

* "What stores do I have?"
* "Do we accept Klarna?"
* "Can customers in Denmark pay by invoice?"

## Stores

An installation can have more than one store, each with its own currency, order statuses, and settings. If you have access to only one store, the Copilot uses that store. If you have access to more than one and don't name one, the Copilot asks which store you mean.

The Copilot only sees the stores you have access to in the backoffice. When you ask about a store you don't have access to, the answer says you don't have permission. The answer is the same whether the store exists or not. See [Permissions and Customer Data](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/using-umbraco-commerce-ai/permissions-and-customer-data.md).

## Periods

The tools support a fixed set of reporting periods: today, the last 7, 30, or 90 days, this month, and last month. See [Reporting periods](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/getting-started/configuration.md#reporting-periods) for the exact dates each one covers.

The answer states the dates it covers and whether the period includes today. Today isn't over yet, so its figures are partial.

Some windows aren't supported, such as "this quarter". When you ask for one, the Copilot doesn't pick a different period on its own. It names the closest supported periods and waits for you to choose.

![The Copilot answering "How did we do this quarter?" by suggesting the last 90 days, this month, or last month](https://1628770284-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1uB1EIR48Mf1SP8Y1TEf%2Fuploads%2Fgit-blob-7b37fd4b9a9bc3dc8b27a396c57075a603fa2ab5%2Fcopilot-unsupported-period.png?alt=media)

## Follow-up questions

The Copilot keeps the conversation, so you can ask follow-up questions. For example, ask "Which products have the highest refund rates?" after a store summary shows a rising refund rate.

The tools are read-only, so the Copilot cannot change prices, orders, stock, or settings. The Instructions in [Example: A Commerce Assistant Agent](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/using-umbraco-commerce-ai/example-commerce-assistant-agent.md) tell the agent to explain what you can change yourself instead.


---

# 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.umbraco.com/umbraco-commerce-ai/17.latest/using-umbraco-commerce-ai/asking-commerce-questions.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.
