ChristmasSALE
--
Days
--
Hours
--
Minutes
--
Seconds
Book a call
ChristmasSALE
--
Days
--
Hours
--
Minutes
--
Seconds
Book a call
GLITCH40% OFF
Christmas Offer40% OFF
--
Days
--
Hours
--
Minutes
--
Seconds
Claim 40% Off
GLITCH40% OFF
Christmas Offer40% OFF
--
Days
--
Hours
--
Minutes
--
Seconds
Claim 40% Off
Back to all events
Recorded Live Workshop Nov 24, 2026 Thinal Perera

How To Build Your Own AI Agent

Watch the full replay of Metana's live workshop and build a working AI expense tracker from scratch. You type a plain sentence like "Coffee at Starbucks, $7", and an AI turns it into a clean, categorised expense. Receipt emails in Gmail become expenses automatically too.

Full recording
1h 32m
Chapters
8
Tools connected
5
To watch
Free

About This Workshop

Build a real AI system, start to finish.

Most AI content stops at chatting with a model. In this live workshop we go further and build a complete, working system you can run yourself: an AI-powered expense tracker where a single sentence becomes a structured, categorised record.

You will see how the pieces fit together. A frontend collects the input, a database stores it, a webhook triggers an automation, an AI model understands the text, and the result flows back into the app. The same pattern powers support tools, lead capture, invoice processing and many of the AI products people are building today.

The session is hands-on and paced for beginners. Each step is explained as it happens, and the matching step-by-step workshop guide (PDF) lets you follow along or rebuild it later at your own speed.

Example input → output

Coffee at Starbucks for $7
Merchant
Starbucks
Amount
7.00
Currency
USD
Category
Food & Dining
Status
Completed

What You Will Learn

Six skills you can reuse in any AI project.

What an AI automation really is

See how an AI system reads messy, human input and turns it into structured data and action, and why that goes far beyond a chatbot.

How to design a database for AI

Create a Supabase table that stores the raw input first and the AI's results second, so one flow can serve every input source.

How to connect a frontend to a backend

Run a ready-made React app on your computer, add your keys, and watch it read and write real data in your own database.

How webhooks trigger automations

Set up a database webhook so every new expense instantly wakes up an n8n workflow, and learn why it must listen to inserts only.

How to prompt an AI for clean data

Write a Gemini prompt that returns valid JSON with a merchant, amount, date, category and confidence score, then parse and save it.

How to turn Gmail bills into expenses

Add an email workflow, filter it so only bills come through, and learn what to change before using real data in production.

How It Works

The architecture in five steps.

Whether an expense is typed into the app or arrives as an email, it follows the same path. That is what makes the system simple to extend with new input types.

  1. 01

    You add an expense

    Type it in the app, or let a bill arrive in Gmail. The raw text is saved as a new row in Supabase.

  2. 02

    A webhook fires

    Supabase tells n8n that a new row was inserted, so nothing has to be checked manually.

  3. 03

    Gemini reads it

    n8n sends the raw text to Google Gemini, which extracts the merchant, amount, currency, date and category.

  4. 04

    The row is updated

    n8n cleans up the AI's answer and writes it back to the same row, marking it completed or needs review.

  5. 05

    The app shows it

    The React app reads the finished row and displays a tidy, categorised expense.

The Stack

Five tools, one working system.

Database

Supabase

A hosted Postgres database with a ready-made API. Stores every expense, whether it was typed or emailed.

Automation

n8n

A visual workflow builder that connects Supabase, Gmail and Gemini without writing a backend.

AI model

Google Gemini

Turns a plain sentence or email into structured expense fields. The free tier was enough for the workshop.

Frontend

React + Vite

The simple web app where you add expenses and see the results. Provided ready-made as a starter repo.

Email source

Gmail

An optional second input. New bill emails become expenses through a dedicated n8n workflow.

Full Session Replay

Watch the workshop recording.

Downloads & Links

Workshop resources.

Free Access
Guide

Step-by-Step Workshop Guide

A written guide that follows the recording in the same order, with timestamps, copy-and-paste code, plain-English explanations and a troubleshooting table.

GitHub

Starter Code: AI Expense Tracker

The ready-made React frontend used in the workshop. Fork it or download it, add your Supabase keys, and you are running.

All resources

Workshop Resources Hub

One page with the guide, the prompts used in the session and the recording, so everything stays in one place.

Chapter Timestamps

What we covered, minute by minute.

Jump straight to the part you need. The written guide uses the same chapters, so you can watch and read side by side.

Chapter 01 00:03

What we are building and the big picture

A demo of the finished tracker, the two ways data comes in (manual entry and email), and what each tool in the stack is responsible for.

Chapter 02 12:02

Set up Supabase: project, table and keys

Create your project, build the expenses table with SQL, understand why we store raw input first, and copy the keys the app and n8n will use.

Chapter 03 31:13

Run the frontend and connect it to Supabase

Fork the starter repo, install it, add your environment variables, and add your first expense to see a new row appear in your database.

Chapter 04 47:26

Connect Supabase to n8n and Gemini

Install database webhooks, build two n8n workflows with the AI builder, add your Gemini and Gmail credentials, and run your first end-to-end test.

Chapter 05 1:12:30

Inside the workflows

A walk through the Gemini prompt, the code node that parses the AI's JSON, and the update node that writes the result back to the right row.

Chapter 06 1:16:53

Ideas for extending the project

Receipt uploads, AI agents that answer questions about your spending, summary reports, better prompts and more input sources.

Chapter 07 1:20:28

Filter Gmail so only bills are processed

Use Gmail search filters or labels so the workflow ignores everything except receipts, invoices and bills.

Chapter 08 1:21:17

Recap and making it production-ready

What you built, plus the steps to add login, switch on row level security, protect your keys and deploy before using real data.

Who It Is For

Made for curious builders.

Complete beginners

You are curious about AI and want to see how a real app is put together. Every step is explained in plain English, and nothing is assumed.

Non-technical professionals

You want to automate repetitive work, such as reading emails or logging data, without becoming a full-time developer.

Aspiring and working developers

You want a practical, end-to-end example of connecting a database, a webhook-driven automation and an LLM API in one afternoon.

Before You Follow Along

What you will need

  • A computer with Node.js installed (or willingness to follow the install step in the guide)
  • Free accounts for Supabase, n8n and Google AI Studio
  • A Gmail account if you want to try the email workflow
  • A GitHub account, or just download the starter code as a ZIP
  • No prior coding experience required

Plain-English Glossary

New to the jargon? Start here.

API
A set of rules that lets one piece of software ask another for something, like a waiter carrying your order to the kitchen and bringing the food back.
API key
A secret password that proves who you are when software talks to a service. Treat it like a bank PIN and never share it.
Database
An organised online filing cabinet. A table is one spreadsheet inside it, and a row is a single entry such as one expense.
Webhook
An automatic message one system sends to another when something happens, such as Supabase telling n8n that a new expense was added.
Workflow
A chain of automated steps, like a recipe. In n8n each step is a node you can see and edit on a canvas.
LLM
A large language model, the kind of AI behind Gemini, Claude and ChatGPT. Here it reads text and returns structured data.

FAQ

Common questions.

No. The workshop and the written guide are designed for beginners. You copy and paste each command and code block, and every unfamiliar term is explained in plain English. Developers will also find it a useful end-to-end example.

An AI expense tracker. You type an expense as a sentence, or a bill arrives in Gmail, and an automation sends it to Google Gemini. Gemini extracts the merchant, amount, currency, date and category, and the result is saved back to your Supabase database and shown in the app.

The stack is Supabase (database), n8n (automation), Google Gemini (AI model), a React and Vite frontend, and optionally Gmail. The workshop used the Gemini free tier. Check each provider's current pricing and plan limits, as they can change.

It is an AI-powered automation: a trigger starts a workflow, an AI model interprets the input, and the workflow acts on the result. It teaches the core building blocks of agentic systems, namely triggers, tool calls, structured output and writing results back to a database, and it points to how you can extend it into a full agent that answers questions about your spending.

Turning RLS on properly needs a login page, which there was no time to build. That is only safe because the workshop uses fictional data. Before using real expenses you should add login with Supabase Authentication and switch RLS on. The guide includes the steps.

Yes. The same pattern works with other LLM APIs and other databases. n8n and Make are interchangeable automation tools, and the prompt and parsing logic carry over with small changes. The workshop used Gemini, Supabase and n8n because they are quick to set up and have generous free options.

Add a filter to the Gmail Trigger node in n8n. You can use a Gmail search query that matches words like receipt, invoice or bill and excludes promotions, or apply a Gmail label to bills and have the trigger watch only that label. The guide covers both options.

Metana offers hands-on AI programs for beginners, working developers and non-developers, where you build real projects and a portfolio. The next-step section below compares them.

Keep Going

Turn your curiosity into practical skills.

At Metana you go beyond learning about AI. You build real-world AI applications, work with modern AI tools, and graduate with a portfolio of projects. Pick the program that matches where you are today.

For beginners

AI Software Engineering Bootcamp

Learn to code and build full AI-powered applications from the ground up, with JobCamp career support.

Explore Program
For developers

AI Tools Bootcamp

Build faster with AI coding tools, LLM APIs, RAG, AI agents and Model Context Protocol.

Explore Program
No coding needed

AI Automation Bootcamp

Automate real work with n8n, Zapier and Make, plus AI agents, with a human review step in the loop.

Explore Program

Take the next step

Want to build production AI systems with 1:1 mentorship?

Speak with an advisor. We'll map the right program to your goals - and lock in your enrollment offer.

20% off enrollment offer

20% OFF - limited-time enrollment offer.

Applied automatically when you book a call before the timer hits zero.

--
Days
--
Hours
--
Minutes
--
Seconds
  • Live, hands-on AI engineering & automation tracks
  • 1-on-1 mentorship and code reviews from senior engineers
  • Job guarantee or 100% money-back tuition protection
Advisor Elena RodriguezAdvisor Sarah JenningsAdvisor David Chen
Real advisors · reply within 2 hours

Book your call

Free