Jump to main content

Designing an AI Agent for Expense Tracking

Abstract

Do you have a hard time keeping track of how much money you spend? What if you could automate the task somehow? In this project, you will explore how to use ChatGPT’s Agent mode to create an expense tracker spreadsheet.

Summary

Areas of Science
Difficulty
Method
Time Required
Very Short (≤ 1 day)
Prerequisites

None

Material Availability

Readily available

Cost
Very Low (under $20)
Safety

No issues

Credits
Science Buddies is committed to creating content authored by scientists and educators. Learn more about our process and how we use AI.

Objective

To experiment with Agentic AI with ChatGPT’s Agent mode to create a finance spreadsheet.

Introduction

Artificial Intelligence (AI) is a type of technology that allows computers to learn from data and make decisions or predictions, almost like giving a machine the ability to think. 

One common kind of AI is the large language model (LLM). LLMs are powerful AI systems that have been trained on huge amounts of text from the internet, books, and other sources. They can understand and create human-like language, which allows them to answer questions, write stories or essays, summarize information, and even generate spreadsheets. Some popular examples of LLMs are ChatGPT, Gemini, Copilot, and Grok. 

However, a traditional LLM only chat with you. It can’t take action in the real world.

This is where Agentic AI comes in. Agentic AI refers to systems that can not only think and respond but also take actions on your behalf. ChatGPT’s agent mode is one example. If a regular LLM is the brain, then agent mode is like giving that brain arms and legs. In agent mode, the AI can follow instructions to perform certain tasks—such as searching the web, gathering information, organizing files, creating spreadsheets, or performing multi-step procedures automatically.

But it’s also important to understand the limits:

Because an agent can take action, privacy and safety matter. Users should be cautious about the data they share—especially personal information such as passwords, financial details, or private documents. AI agents are designed with safety limits, but it’s still important to only give them access to information you are comfortable sharing.

This technology becomes especially useful when considering how many teens feel unprepared to manage their money and plan for their financial futures. For example:

In this project, we will explore how to use ChatGPT’s agent mode to automatically track and categorize expenses. By utilizing agentic AI, financial management can become easier, faster, and more accessible, enabling individuals to make informed decisions about their finances.

Terms and Concepts

Questions

Bibliography

To learn more about Agentic AI:

To learn more about ChatGPT Agent:

To learn more about youth financial habits:

Materials and Equipment

Experimental Procedure

This project follows the Engineering Design Process. Confirm with your teacher if this is acceptable for your project, and review the steps before you begin.

Setting Up the ChatGPT Agent

  1. You will need a ChatGPT account. If you do not have one, make one when prompted.
  2. To use ChatGPT Agent, you need ChatGPT Plus, which requires a credit card to activate the 14-day free trial.
    1. Note: Be aware that you will be automatically charged when the trial ends. Set a reminder to cancel your subscription before the 14-day period is up if you don't want to be billed.
  3. To upgrade:
    1. Look at the bottom left of the ChatGPT interface to find your Profile and current plan.
    2. Click your Profile, then select “Upgrade Plan.”
    3. Choose “Plus” and follow the on-screen instructions to complete the upgrade.

Creating the Spreadsheet with the ChatGPT Agent

  1. Start a new chat in ChatGPT.
  2. Click the “+” icon to the left of the chat box.
  3. Select “Agent mode.”
  4. Now, think about what exactly you want your AI agent to do.
    1. Your primary objective is to create a spreadsheet that allows you to track all your expenses. You could do this manually by typing every single one of your expenses into a spreadsheet every time you buy something - the date, vendor, item, amount, category, etc. You could also add up totals for different categories, produce graphs, or apply special formatting to cells that go over budget, and format the spreadsheet yourself to do all of those things.
    2. However, your goal in this project is to use an AI agent to automate some of these tasks. Think of the criteria you would use to evaluate the AI agent - for example, is using the resulting AI agent actually easier than just doing it all manually?
  5. Here are some things to consider:
    1. What do you usually spend money on?
      1. For example, if you are a student living with parents, you might not pay rent or a mortgage, but might spend on: 
        1. Food and drinks: fast food, snacks, coffee/boba, etc.
        2. Clothes, shoes, and accessories
        3. Beauty and personal care: skincare, makeup, etc.
        4. Entertainment with friends: movies, concerts, amusement parks, sports games, local activities, etc.
        5. Gaming and digital spending: video games, in-game items, app purchases, etc.
        6. Transportation: gas, rideshare, public transit, etc.
        7. School + activities: supplies, club dues, sports fees, spirit wear, etc.
        8. Hobbies: crafts, sports gear, thrift finds, collectibles, etc.
        9. Gifts and social spending: birthdays/holidays, dating, group outings, etc.
      2. Would you categorize some of these expenses together, such as "food," "fun," or "education"?
    2. Tracking frequency:
      1. Do you want to track expenses on a monthly, quarterly, or yearly basis?
    3. Budget:
      1. Do you have a budget limit for spending on specific categories?
      2. Over what time period do you set that budget (daily, weekly, monthly…)?
    4. What kind of visualizations do you want the AI agent to create? For example:
      1. A monthly pie chart showing the percentage spent in each category
      2. A yearly bar chart comparing spending across months
      3. Turning a cell red if spending in a category goes over your budget
  6. Think about how much work you want the agent to automate. For example:
    1. Receipt uploads: Should the agent read receipts, extract the date, amount, and category, and automatically add them to the spreadsheet?
    2. Credit/Debit Card Statements: Would you like to categorize multiple transactions at once when uploading a statement?
    3. Automatically flagging duplicate transactions.
    4. Suggesting ways to cut spending in categories where you consistently go over your budget.
    5. Creating budget recommendations based on past behavior.
  7. After thinking through these details, write a clear prompt and send it to the agent. For example:
    1. “Create a spreadsheet of monthly expenses and categorize each transaction by food, clothes, entertainment, and anything else that makes sense for a high school student. I would like a pie chart to be created, showing the percentage spent in each category for each month, and for it to automatically generate a new spreadsheet for each month. I also want an additional spreadsheet that summarizes the yearly expenses. I want to be able to upload a picture of a receipt or my bank statement to add expenses to this spreadsheet.”

Testing Your ChatGPT Agent

  1. Preview the spreadsheet the agent creates before entering any real expenses. The agent should have created a spreadsheet that you could preview right in the chat.
    1. Check that:
      1. Categories match the types of expenses you actually plan to track
      2. Charts and summaries provide the insights you want (for example, spending by month or by category)
      3. The layout is easy for you to read and use.
        Example finance tracker spreadsheet. Image Credit: Science Buddies
        Figure 1. A sample finance tracker spreadsheet created by the ChatGPT AI Agent. 
  2. If something doesn’t match your needs, tell the agent exactly what to change. For example:
    1. “Add a category for payment method (cash, card, Venmo).”
    2. “Change the chart to show total spending per month instead of per category.”
    3. “Add a running total for this quarter.”
    4. “Include a column for whether the expense is a ‘want’ or a ‘need.’”
  3. Once you’re happy with the layout, test the data entry process. Before you start, ensure you’re still in the same chat where you created the spreadsheet, not a new one: 
    1. Upload an image of the receipt or bank statement you would like to use in the ChatGPT prompt. If you received the receipt via email, you can also take a screenshot of it and upload it to ChatGPT. You could either drag and drop the image file right into the chatbox or click on the “+” button and select “Add photos & files.”
    2. If you do not have a physical (or digital) receipt, you can still add the expense by describing it in a prompt–for example: "I paid $15 in cash on 10/5/2025 at a street vendor for a hot dog."
    3.  Ask the agent to add the expense(s) to the spreadsheet. 
    4. Verify that:
      1. The amount, date, and category are correct.
      2. The totals and charts update as expected
  4. Evaluate the AI agent’s ability to properly sort and categorize transactions. Consider the following:
    1. Did the AI agent input the correct dates and categories of the transaction?
    2. Do the visualizations look correct?
    3. Did the AI agent do the correct math?
  5. After you test a few expenses, you’ll likely notice things you want to change (like categories, columns, rules for auto-categorizing, or charts). To improve your agent, you may want to evaluate it in various versions until it meets your criteria. For example, your workflow may look like this:
    1. Enter a small test batch (for example, 5-10 expenses from receipts or bank statements).
    2. Evaluate your performance against the evaluation criteria (accuracy, consistency, chart updates, etc.).
    3. Update your prompt and/or spreadsheet setup according to your findings.
    4. Label the updated setup as the next Version (V1 → V2 → V3…). Remember to start a new chat when you decide to start creating a new version.
    5. Continue until the setup consistently meets your criteria.
    6. It may help to create a data table that you can use to evaluate the AI agent based on your specific criteria.
      Swipe left to see more
      Table 1. Example data table. You can add more rows to the table for additional expenses. You can score each criterion with Good / Average / Bad or replace it with a 1-5 scale.
      Version # What You Tested (examples) Criteria #1 (e.g., correct amount/date) Criteria #2 (e.g., correct category) Criteria #3 (e.g., charts update correctly) Issues Observed Prompt/Change Made
      V1 5 receipts + 1 bank statement screenshot Good / Average / Bad Good / Average / Bad Good / Average / Bad Dates misread on 2 items "Always extract date from the receipt header."
      V2 Same batch + 3 new receipts Good / Average / Bad Good / Average / Bad Good / Average / Bad "Food" category too broad "Add separate categories for Restaurants vs. Groceries."
      V3 Same batch + 10 new receipts Good / Average / Bad Good / Average / Bad Good / Average / Bad --- ---

Saving Options

You have several options for saving your spreadsheet:

  1. Keep it in ChatGPT.
    1. The spreadsheet will remain available within your chat.
    2. You can return to the same conversation to view or update it.
  2. Download a local copy.
    1. Click the “Download” button on the spreadsheet.
    2. This saves a static copy to your computer.
    3. Note: If you later add more expenses in ChatGPT, the downloaded file will not update automatically.
  3. Connect Google Drive (Optional).
    1. You can link your Google Drive so that the updated versions of the spreadsheet are automatically saved there.
      1. To connect your Google Drive, click the globe icon below the chat box, select Google Drive, and follow the on-screen instructions to grant ChatGPT access to your Drive.
    2. Important: This allows ChatGPT to access your Google Drive to read and modify the files. Review the permissions carefully and only allow access if you are comfortable with this level of integration. As of writing this article, there isn't a specific toggle to allow access to limited files. 
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Variations

  • Goal-based saving: Have the agent help you save toward specific goals, such as a new phone, prom/homecoming costs, sports/club fees, concert tickets, or a bike. The agent should create a goals table and:
    • Generate a bar chart showing progress toward each goal
    • Estimate the months until each goal is reached based on the current weekly/monthly contribution
  • Applications and deadlines tracker (college applications, scholarships, programs, internships): Have the agent track opportunities such as college applications, scholarships, summer programs, internships, competitions, etc. with:
    • Name, due date, link (optional), status (not started / in progress / submitted), result, and award amount (if any)
    • Conditional formatting to highlight deadlines coming up soon (e.g., within 14 days)

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
Many aspects of peoples' daily lives can be summarized using data, from what is the most popular new video game to where people like to go for a summer vacation. Data scientists (sometimes called data analysts) are experts at organizing and analyzing large sets of data (often called "big data"). By doing this, data scientists make conclusions that help other people or companies. For example, data scientists could help a video game company make a more profitable video game based on players'… Read more
Career Profile
Are you interested in developing cool video game software for computers? Would you like to learn how to make software run faster and more reliably on different kinds of computers and operating systems? Do you like to apply your computer science skills to solve problems? If so, then you might be interested in the career of a computer software engineer. Read more

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Ngo, Tracey. "Designing an AI Agent for Expense Tracking." Science Buddies, 13 Jan. 2026, https://www.sciencebuddies.org/science-fair-projects/project-ideas/ArtificialIntelligence_p033/artificial-intelligence/finance_ai_agent. Accessed 24 June 2026.

APA Style

Ngo, T. (2026, January 13). Designing an AI Agent for Expense Tracking. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/ArtificialIntelligence_p033/artificial-intelligence/finance_ai_agent


Last edit date: 2026-01-13
Top
Free science fair projects.