Expense Report Generator
Expense Report Generator
Transforms raw bank and credit-card transaction exports into a clean, categorized monthly expense report with duplicate flags and month-over-month comparison tables, ready for bookkeeping or accounting purposes.
What the agent does
These are the instructions your agent follows. It asks you for what it needs, then does the work in chat.
Goal
Produce a polished expense report that includes: a cleaned transaction log, duplicate flags, category assignments, monthly totals, month-over-month (MoM) change tables, and an executive summary—ready for bookkeeping or accounting.
Inputs to gather
• Raw transaction exports (CSV, TSV, or plain text from all relevant accounts — core data to process)
• Optional category rules (keyword → Category, one per line — lets the user impose custom categorizations)
• Desired date span (single range such as “2023-01 to 2023-06” or explicit list of months — determines which months appear in the report)
Before doing any work, ask the user for these inputs in ONE message. Skip anything they already provided. If they tell you to decide, choose sensible defaults and say what you chose.
Workflow
- Confirm receipt of all required inputs, then continue.
- Clean & standardize transactions
a. Detect the delimiter automatically.
b. Convert dates to ISO yyyy-mm-dd (infer missing years if possible).
c. Strip extra whitespace, normalize merchant names to Title Case, and build a unified table with columns: Date, Description, Amount (signed), Account, OriginalCategory (if present).
d. Return the cleaned data as JSON under the key "cleaned_transactions".
e. Show a brief sample (first 5 rows) and ask the user to proceed or request adjustments. - Detect & flag duplicates
a. Mark rows as duplicates when the date difference ≤ 2 days, amounts are equal in absolute value, and the description fuzzy-matches ≥ 85 %.
b. Add fields IsDuplicate (true/false) and DuplicateGroupID (integer).
c. Return "deduped_transactions"; show duplicate counts; ask user whether to continue. - Categorize transactions
a. Apply user-supplied category rules first (exact or keyword match).
b. For remaining items, use an internal list of common bookkeeping categories (Rent, Utilities, Office Supplies, Travel, Meals & Entertainment, Payroll, Income, Transfers, etc.).
c. Output "categorized_transactions" with new field FinalCategory.
d. Present a quick category summary and ask if the user wants to adjust or supply new rules. - Build monthly category totals (input: categorized_transactions + date span)
a. Filter rows outside the requested span.
b. Pivot to a table where rows are FinalCategory, columns are each month in yyyy-mm, and values are the sum of Amount.
c. Add a Total column and a Total row.
d. Return "monthly_totals"; show the table and request confirmation to compute comparisons. - Create month-over-month comparison
a. Compute % change between consecutive months for each category.
b. Produce "mom_table" mirroring the shape of monthly_totals, prefixed “+” for increases.
c. Display notable changes (> 15 %) and ask to proceed. - Compile the final expense report
a. Assemble plain-text sections:
A. Executive Summary – highlight key spend areas and notable MoM changes (> 15 %).
B. Monthly Expense Breakdown – include monthly_totals table.
C. MoM Comparison – include mom_table.
D. Duplicate Transactions – list entries where IsDuplicate = true with their DuplicateGroupID.
E. Full Transaction Log – the complete categorized_transactions dataset.
b. Present the full report to the user and ask for approval or requested corrections (e.g., new category rules or manual overrides “RowID → NewCategory”). - If corrections are provided, apply them and re-run steps 4–7 as needed until the user types “approve”. Upon approval, output “Report finalized” and end the session.
Output
A plain-text expense report containing the five structured sections (Executive Summary, Monthly Expense Breakdown, MoM Comparison, Duplicate Transactions, Full Transaction Log), followed by either “Report finalized” or a prompt for any further corrections.
Agentic Workers is a game-changer for anyone! It makes AI feel approachable and useful for everyday people. The library is extensive and you can create your own prompts as well. If you are ready to work smarter, not harder, give it a try!
Mari P
Key Benefits
Discover how our intelligent prompt chain enhances your workflow
Streamlined Data Collection
Users can easily gather all necessary transaction data by pasting or uploading their raw transaction exports, making the initial data collection process efficient and user-friendly.
Automated Data Cleaning
The system automatically detects delimiters, standardizes date formats, and normalizes merchant names, significantly reducing manual effort and improving data accuracy for subsequent analysis.
Duplicate Detection and Management
By flagging potential duplicates based on specific criteria, users can maintain data integrity and avoid errors in financial reporting, ensuring that their expense reports reflect true spending.
Comprehensive Monthly Reporting
The final report includes detailed monthly breakdowns and month-over-month comparisons, providing users with valuable insights into their spending habits and enabling better financial decision-making.
Transform Your Workflow Today
Join thousands of professionals already using our premium prompts to enhance their productivity.
Unlock premium features instantly
Why This Agentic Worker Is Valuable
10x Faster Results
Save hours of work with our optimized prompt structure that delivers superior results in minutes.
Expert-Crafted
Developed and refined by industry experts to ensure consistent, high-quality outputs.
Consistently Reliable
Tested across multiple AI models to ensure dependable performance every time.
Time Saved
Users report saving an average of 4-6 hours per week using this optimized prompt compared to traditional methods.
ROI Impact
Premium users constantly improvement in their AI output quality and consistency.
Frequently Asked Questions
Ready to unlock this Agentic Worker?
Join thousands of professionals who are already using our premium prompts to enhance their work.