Reports
A report is an email that sums up what agents did in the last day or week: how many runs, how they ended, what is waiting for a person, and what it cost. You do not have to open the dashboard to know how things stand.
Open My reports in the Workforce area of the dashboard to see which reports you get and to change them. Reports are personal: each person chooses their own.
What is in a report
| Part | What it says |
|---|---|
| Period | The time the report covers, in the report's time zone. |
| Runs and outcomes | How many runs ended, and how: Completed, Failed, Stopped, Timed out, Expired. |
| Waiting | What is waiting for a person right now, one line each with a link to the run. Up to ten, then and N more. |
| Credits | What the runs cost. A report on one agent that has a daily credit budget shows it as 12.00 of 50.00 credits; a weekly report counts the budget for seven days. |
| By agent | In the project digest, one line per agent that ran something. |
| Notes | An agent the platform paused in the period, an agent that is still paused, and the tools still on probation with their progress. |
A button in the email opens the dashboard.
Which reports there are
| Report | What it covers |
|---|---|
| All agents | The project digest: every agent in one email, with a line for each agent that ran. |
| One agent | Only that agent's runs, and the things waiting on it. |
A report is daily or weekly:
| How often | Sent |
|---|---|
| Daily | At 08:00 every day, about the day before. |
| Weekly | At 08:00 on Monday, about the week before. |
The time is in the time zone you choose for the report.
Who gets reports
Two kinds of report reach you.
The ones you ask for. Choose Add a report, then:
| Field | Meaning |
|---|---|
| Agent | All agents for the digest, or one agent. |
| How often | Daily or Weekly. |
| Timezone | When 08:00 is. Choose one; a report cannot be saved without it. |
| Also when nothing happened | Send the report even when the agents did nothing and nothing is waiting. |
Asking again for the same agent changes the report you already have. Use Change the report to edit one and Stop to end it.
The ones you get by default. When you are named under an agent's Who to tell, as a person or through a role you hold, you get that agent's daily report without asking. It goes out on the UTC day. The list marks it Because you're a contact for this agent.
A report you subscribe to yourself keeps its own time zone, set on the Reports page. The default one has none: it follows UTC.
A default report is not sent when nothing happened. If you ask for the same agent's report yourself, yours replaces the default.
Quiet reports
A report is quiet when no runs ended, nothing is waiting and there is nothing to note. A quiet report is not sent unless Also when nothing happened is on for it. A default report is never sent when quiet.
Stop a report
- To stop one you asked for, choose Stop on its row.
- To stop a default one, choose Stop on its row too. The row then shows Stopped, and Turn back on brings it back.
- In the email, the link Stop these reports stops that report. You are asked to sign in as the person the email was sent to; another person's link answers This link is for a different person. Sign in as the person who got the email and open it again. After stopping you can choose Undo, send it again or Undo, turn it back on. An email sent to a role has the link Manage or stop these reports, which opens My reports.
Who may receive them
Reports go only to people who hold workforce::read. A person without it is named but gets no email. Only people have reports: an API key or an agent has none.
From code
All of these need workforce::read and act for the signed-in person.
| Route | Purpose |
|---|---|
GET /workforce/reports/subscriptions |
The reports you get: your own and the defaults. |
POST /workforce/reports/subscriptions |
Ask for a report (201). Asking again for the same agent changes it. |
PATCH /workforce/reports/subscriptions/{uuid} |
Change cadence, time_zone or send_when_quiet. |
DELETE /workforce/reports/subscriptions/{uuid} |
Stop it (204). On a stopped default, turns it back on. |
POST /workforce/reports/opt-outs |
Stop a default report: { "agent_uuid": "..." } (201). |
POST /workforce/reports/unsubscribe |
What the email link does: { "token": "..." } (204). |
POST /workforce/reports/subscriptions
{ "agent_uuid": null, "cadence": "weekly", "time_zone": "Europe/Belgrade", "send_when_quiet": false }
| Field | Meaning |
|---|---|
agent_uuid |
The agent, or null for the digest of all agents. |
cadence |
daily or weekly. Anything else answers 400 workforce: invalid: cadence must be daily or weekly. |
time_zone |
An IANA name such as Europe/Belgrade. Left out, it is UTC. An unknown name is refused. |
send_when_quiet |
true to send quiet reports too. Default false. |
GET answers { "data": [ ... ] }. Each entry has uuid, agent_uuid (null for the digest), agent_name, cadence, time_zone, send_when_quiet, default (you get it because you are a contact) and opted_out (a default you stopped). A subscription of someone else answers 404.