{"agent":"<agent id>","input":"Weekly Undeposited Funds review for this QuickBooks company. Today is 2026-11-23. Use the QuickBooks Online Accounting API query endpoint. 1) Query Account where Name = 'Undeposited Funds' and note its Id. 2) Query Payment where TxnDate >= '2026-07-26', paging with STARTPOSITION and MAXRESULTS; keep payments whose DepositToAccountRef is the Undeposited Funds account or is not set. 3) Query Deposit where TxnDate >= '2026-07-26' and collect every Payment id named in a deposit line's LinkedTxn. 4) Every kept payment not in that set is still undeposited. For each, give Id, TxnDate, customer name, TotalAmt, payment method and PaymentRefNum if set, the invoice numbers in its lines' LinkedTxn, and days since TxnDate. Group by over 30, over 14, over 7 days, and 7 or fewer, with a total per group. 5) List separately any bank Deposit with no LinkedTxn within 5 days of an undeposited payment of the same amount, as a possible duplicate. Return JSON only: {as_of, undeposited_account_id, groups: [{label, total, payments: [...]}], possible_duplicates: [{payment_id, deposit_id, amount, payment_date, deposit_date}]}. Read only: never create, update, void or delete anything."}