> 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/getting-started/configuration.md). Agents can also search and read this documentation through its [MCP server](https://docs.umbraco.com/~gitbook/mcp).

# Configuration

Configure the reporting time zone Umbraco Commerce AI uses, and learn which reporting periods the tools support.

Umbraco Commerce AI works without configuration. This article covers the one setting it adds and the reporting periods the tools support.

## Reporting time zone

The reporting time zone decides when a day starts and ends. It defines "today", the last 7 days, and every other reporting period.

Set it in `appsettings.json` with an Internet Assigned Numbers Authority (IANA) time zone ID, for example `Europe/Copenhagen`. A Windows time zone ID, such as `Romance Standard Time`, also works:

{% code title="appsettings.json" %}

```json
{
  "Umbraco": {
    "Commerce": {
      "AI": {
        "Reporting": {
          "TimeZone": "Europe/Copenhagen"
        }
      }
    }
  }
}
```

{% endcode %}

| Setting                                  | Default             | Description                                                                       |
| ---------------------------------------- | ------------------- | --------------------------------------------------------------------------------- |
| `Umbraco:Commerce:AI:Reporting:TimeZone` | Server's local time | An IANA or Windows time zone ID whose calendar days define the reporting periods. |

If the value is empty, the server's local time zone is used. If the value isn't a valid time zone ID, a warning is logged and the server's local time zone is used.

{% hint style="info" %}
Umbraco Commerce has no store time zone. The Analytics dashboard in the **Commerce** section uses the time zone of the viewer's browser. Figures from the Copilot and the dashboard match only when the browser's time zone matches this setting.
{% endhint %}

## Reporting periods

Tools that report on a period take one of these periods. The server works out the dates, so the AI model never calculates dates itself.

| Period       | Covers                                                  |
| ------------ | ------------------------------------------------------- |
| `today`      | Today so far.                                           |
| `7d`         | The last 7 days, including today. Used for "this week". |
| `30d`        | The last 30 days, including today.                      |
| `90d`        | The last 90 days, including today.                      |
| `this-month` | The 1st of the current month up to today.               |
| `last-month` | The whole previous calendar month.                      |

Each period is compared with the period of the same length directly before it. For example, `7d` is compared with the 7 days before it. A tool result includes the resolved dates and whether the period includes today. The agent can then tell you which dates an answer covers and that today's figures are not complete yet.

Other windows, such as "this quarter", "last week", or a date range, aren't supported. The Copilot tells you so and suggests the closest supported periods. See [Asking Commerce Questions](https://docs.umbraco.com/umbraco-commerce-ai/17.latest/using-umbraco-commerce-ai/asking-commerce-questions.md#periods).

`commerce_get_customer_base_health` doesn't use these periods. It reports on complete calendar months instead: 2 to 12 months, 6 by default, ending last month. Those months are calendar months in Coordinated Universal Time (UTC), so the reporting time zone doesn't apply to them. Dates shown in tool results, such as order dates and expiry dates, are also in UTC.

When you don't mention a period, each tool uses its own default. For example, `commerce_get_store_pulse` reports on the last 7 days, and `commerce_get_refund_insights` on the last 30 days. `commerce_search_orders` searches all orders unless you name a period.


---

# 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/getting-started/configuration.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.
