Skip to content

See what the support agent did yesterday

List every Action one agent took in a day, newest first, with the record, input, outcome and cause of each.

Every call an Agent makes is an Action on the record, so yesterday is one query. Filter by the agent, the day or the Verb, and each row links to what caused it.

What you get

  • 1list of everything the agent did, newest firstAction
  • 1row for each one: what it did, to which record, and how it turned outAction
  • 1who each one was for, and the permission it acted underMandate
  • 1link from each one to the conversation or event that caused itEvent

Your agent does

Action.list
You, to your agent

Show me everything the support agent did yesterday.

What did the agents do overnight?

List every refund the support agent made this week.

# Action.list
curl "https://api.sb/leaseline.app/actions?limit=100&where=by%20%3D%20%22agent_customer_lead%22%20and%20createdAt%20%3E%3D%20%222026-10-22%22%20and%20createdAt%20%3C%20%222026-10-23%22&sort=-createdAt" \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
import { $ } from 'startup-builder'

await $.Action.list({ limit: 100, where: 'by = "agent_customer_lead" and createdAt >= "2026-10-22" and createdAt < "2026-10-23"', sort: '-createdAt' })
npx startup-builder do Action.list --json '{"limit":100,"where":"by = \"agent_customer_lead\" and createdAt >= \"2026-10-22\" and createdAt < \"2026-10-23\"","sort":"-createdAt"}'
{
  "name": "do",
  "arguments": {
    "code": "return await $.Action.list({ limit: 100, where: 'by = \"agent_customer_lead\" and createdAt >= \"2026-10-22\" and createdAt < \"2026-10-23\"', sort: '-createdAt' })"
  }
}

Change it

  • Only the Actions that waited for my Approval.
  • Send me this every morning at 8.
  • Undo the refund it made to Unit 4B.

Under the hood

Systems
Work queue, Support
Nouns
Action, Agent, Mandate, Event

Read it every morning for the first few weeks. Each miss you find becomes an eval case, and a seat climbs the ladder on the cases it passes.