{"agent":"claude","input":"List this week's invoice emails that bounced or drew a spam complaint. Use the resend connection. Week: 2026-11-09T00:00:00Z to 2026-11-16T00:00:00Z. 1) Call list-suppressions with origin bounce, then origin complaint, limit 100, following after until there are no more; keep entries with created_at in the week. 2) Call list-emails with limit 100 and page through every email sent in the week (stop when created_at is before the week). 3) For each email whose recipient is a kept suppression, or whose status is bounced, complained or suppressed, and whose subject starts with 'Invoice ', make one row: parse the subject 'Invoice <number> from <business>' into invoice number and contractor; recipient, sent at, status, suppression origin and suppressed at (blank and marked not suppressed if absent). Write bounced-invoices.csv with those columns and bounced-invoices.md grouped by contractor, each with this note filled in: 'Your invoice <number> to <recipient> was not delivered on <date>. Could you check the address with your customer? We can resend it once it is fixed.' List emails whose subject you could not parse separately. Do not call send-email, send-batch-emails, remove-suppression, batch-remove-suppressions, add-suppression, or any tool that sends, creates, updates or removes anything.","connections":["resend"]}