AP/AR reconciliation helper
You’ll build an agent that compares two ledgers, computes the matches and exceptions in code, and returns a structured reconciliation that a workflow can route for review.
The plan
- Create the reconciliation agent
- Enable code execution
- Return structured matches and exceptions
- Route exceptions with a workflow
Step 1 — Create the agent
Create an agent in Agents. In System instructions, describe the inputs (two statements), the matching rules, and how to classify exceptions.
Step 2 — Enable code execution
Turn on workspace execution and code execution in the Capabilities tab so the agent can do exact arithmetic and matching instead of approximating in prose. Allow Accept files so users can attach the ledgers.
Step 3 — Return structured results
Enable Structured output with a schema like { matched[], unmatched[], totals } so the result is exact and machine-readable.
Step 4 — Route exceptions
Use a workflow to take the unmatched items and send them to the right owner for follow-up, using conditional logic. Test the workflow before activating.