You are helping me build the following AI agent workflow. ## Goal Expense Reconciliation and Tax Deductions: Automatically reconciles expenses with revenue data, optimizes tax deductions via IRS rules. ## Specification - What it does: Streamline financial operations by automatically reconciling expenses with revenue data and categorizing tax deductions based on IRS guidelines. The system intelligently matches receipts to entries, calculates optimized deductions considering compliance limits, and compiles comprehensive tax packets for review. This reduces tax preparation time significantly while ensuring accurate filing through automated delivery to tax agents. - Trigger: On a schedule (Scheduled ยท based on accounting period) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - HTTP Request: Fetch expense receipts from financial systems - Gmail: Deliver tax packets to agents via email - Code: Customize deduction rules and calculations - AI Agent: Intelligent receipt matching and report generation - OpenAI Chat Model: Process transactions using GPT-4.1-mini ## Known pitfalls, handle each one explicitly in your implementation 1. Receipt images may have poor resolution so ensure your preprocessing step includes image enhancement before sending to the model. 2. IRS tax codes change frequently so add a system prompt update mechanism to keep the LLM aware of current deduction limits. ## Reference implementation https://n8n.io/workflows/13909 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automate-expense-reconciliation-and-tax-deductions/ via usecasesforagents.com