Find yesterday's failed orders and email finance a summary.

Used 3 tools

INPUT
{
  "table": "orders",
  "where": {
    "status": "failed"
  },
  "since": "24h"
}
OUTPUT
{
  "rows": 7,
  "total": "₺6.993"
}

INPUT
{
  "to": "[email protected]",
  "template": "failed-orders"
}
ERROR
SMTP 451: try again later

INPUT
{
  "to": "[email protected]",
  "template": "failed-orders",
  "retry": 1
}

I found 7 failed orders worth ₺6.993. The first email bounced with a temporary SMTP error, so I'm retrying now.