# Ask your Agents how people use your app

> Ask a question about your app's AirTraffic data in plain words and get numbers or a chart back: counts over time, split by a property, two periods side by side, or on a schedule.

Source: https://air.build/docs/services/ask-agents-about-your-apps-numbers/

The **AirTraffic** tab shows your app's main numbers: people, sessions, the screens they visit, the events your app sends and who comes back. For a question the tab doesn't answer, ask an Agent in plain words, such as "How many people used the timer each day last week?" The Agent reads the same events with `workers traffic` and answers with numbers, or a chart.

> [!NOTE]
> Read the tab first: it may already have your answer, and you can tap any event under **Events** to chart it. See [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#read-the-dashboard). This page needs AirTraffic in your app. If the tab still shows its page with **Ask Agents to Add**, see [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#add-airtraffic-to-your-app).

## Ask a question

Ask in the Project's chat, for example:

```text
How many people used the timer each day last week?
```

1. The Agent looks up what your app sends with `workers traffic definitions` and finds the events that match your words.
2. It reads them with `workers traffic trends`: which events (`--event`, one or several, or `all`), what to count (`--math`), how to group the time (`--interval`: `hour`, `day`, `week` or `month`) and the dates (`--from` and `--to`).
3. It replies with the numbers. It may also draw them as a chart card: see [Read a chart or a check report an Agent sends](https://air.build/docs/agents/read-charts-and-checks-from-agents/#read-a-chart).

Check which events the Agent used. If one isn't what you meant, say which screen or action you had in mind. Nothing changes in your app: these commands only read.

Dates can be relative, such as the last 24 hours, 7 days, 3 months or year, or run between two dates. The reads also take a time zone (`--timezone`), so say yours if days should follow your clock.

## What you can ask for

Say it in your own words. The Agent picks the way of counting, for example:

| You ask | What the Agent counts |
| --- | --- |
| How many people did it each day | People active per day (`--math dau`) |
| How many people did it each week | People active per week (`--math weekly_active`) |
| A total of a number the event carries, such as the items in an order | The sum of that property (`--math sum` with `--property`) |
| Several things at once, such as sign-ups and purchases | Several events in one read (`--event`, separated by commas) |

The `workers` help lists more ways of counting than these. For questions the counts don't cover, the Agent can write its own query over the events with `workers traffic sql` or `workers traffic query`.

To learn who comes back after doing something, such as finishing onboarding, ask that too. The Agent uses `workers traffic retention`, which starts from one event and counts who returns by day, week or month. The tab's **Retention** starts from everyone first seen in each period instead.

## Split by a property

Events can carry properties, such as the screen, the app's version or the platform, when your app sends them. People can carry properties too, such as their plan. Ask, for example:

```text
How many photos did people export last month, by app version?
```

The Agent splits the count with `--breakdown`: by a property of the event, or of the person (`person:` before the property's name).

## Compare two periods

Name both periods, for example:

```text
How many people opened the editor this month, against last month?
```

The Agent reads each period and puts them side by side. In the tab, **Compare** does the same for the dashboard's numbers.

## Count something your app doesn't send yet

If no event matches your question, ask for one, for example:

```text
Send an event when someone shares a recipe, with the recipe's category.
```

The Agent adds it to your app's code. Events only arrive from people who use a version of the app that sends them, so counts start from there. For an app on the App Store, that means after your next update: see [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/).

## Get it on a schedule

Ask the Agent in its chat or in the Project's chat, for example:

```text
Every Monday at 9 AM, post last week's daily active people and sign-ups here, against the week before.
```

The Agent can set up a Schedule on itself. It doesn't post a card for this, so it usually says so in its reply. You can also add the Schedule yourself:

1. Open the Agent's profile and tap **Schedules**, then **Add Schedule**. See [Schedule work for an Agent](https://air.build/docs/agents/schedule-agent-work/#add-a-schedule).
2. Type a **Title**, for example "Weekly usage".
3. Under **Instructions**, write the question and where to post the answer, for example "Post last week's daily active people and sign-ups in the Project's chat, against the week before."
4. In **Repeat**, choose how often, for example **Every Week**, and set the day and **Time**.
5. Check **Time Zone**, then tap **Save**.

When a Schedule runs, nothing shows in the chat by itself: the Agent gets the instructions and posts what it finds. If your Team's Agents run on your Mac, the Schedule's page says "Schedules in this workspace run only while its Mac is on." See [Choose where your Agents run](https://air.build/docs/get-started/where-agents-run/).

## Questions

**The Agent's numbers don't match the AirTraffic tab.**

Check that both cover the same dates, and whether the Agent counted people or events. The tab's chart for an event counts events; its people figures count people.

**Can it count each person once across their devices?**

That depends on **Identity** in the **AirTraffic** tab. The tab says: "Anonymous counts devices. Linked counts each signed-in person once across their devices." To change it, ask your Agents. See [Measure app usage (AirTraffic)](https://air.build/docs/services/measure-usage/#identity).

**How do I find out where people stop in a flow?**

Ask for a funnel. See [See where people drop off in your app](https://air.build/docs/services/see-where-people-drop-off/).

**Can I see what one person did?**

Yes. See [See what one person did in your app](https://air.build/docs/services/see-what-one-person-did-in-your-app/).

**Does The Air Daily use these numbers?**

For a Project that uses AirTraffic, its Yesterday part shows yesterday's active accounts and devices, and sign-ups if your app reports them. See [Get a daily report on your apps](https://air.build/docs/agents/get-a-daily-report/).

**How do I stop a scheduled report?**

Ask the Agent to stop it, or open its Schedule and tap **Pause** or **Delete Schedule**. See [Schedule work for an Agent](https://air.build/docs/agents/schedule-agent-work/#delete-a-schedule).

**The Agent says it could not reach AirBuild.**

The message is "Could not reach AirBuild. Try again shortly." Ask again in a moment.
