Build A Personal Expense Tracker That Scans Your Receipts!
Introduction to AI-powered scanning framework
In this section, the speaker introduces the concept of building an app that can scan various types of documents using an AI-powered scanning framework.
Building a versatile scanning app
- The speaker explains that with the AI-powered scanning framework, it is possible to build apps for personal finance tracking, expense tracking, or general-purpose scanning.
- These apps essentially function as scanners that can be accessed conveniently on mobile devices.
Introduction to Document AI by Google
This section provides an overview of Document AI, an AI-powered scanning framework developed by Google.
Document AI capabilities
- Document AI allows users to extract structured data from documents and analyze, search, and store this data.
- It is a powerful framework that can extract data from various types of documents.
- A demo is available on the website where users can try uploading different types of documents (e.g., invoices) and see how the structured data is extracted.
Demo of Document AI in action
The speaker demonstrates how Document AI works by showing examples of scanned receipts and the extracted structured data.
Uploading receipts for analysis
- The speaker has prepared some random receipts from the internet for demonstration purposes.
- By choosing the "expense" option in the demo and uploading a receipt, Document AI scans the document and extracts relevant data.
Extracted data from receipts
- The scanned receipt reveals information such as supplier name (e.g., Walmart), phone number, address, amount, product code, description item, etc.
- Multiple receipts can be uploaded and analyzed simultaneously.
Challenge in leveraging Document AI without coding
The speaker discusses the main hurdle in building apps that leverage Document AI, which is the requirement of coding skills to use its API.
Building apps without coding
- While Document AI provides APIs for building Python or JavaScript apps, some users may prefer to leverage this technology without writing any code.
- The speaker introduces a tool called "Rowi" that allows users to build apps using Document AI without coding.
Introduction to Rowi as a low-code backend
This section introduces Rowi as a low-code backend tool that enables building apps with Document AI functionality without writing code.
Leveraging Rowi for no-code app development
- Rowi is a powerful tool that allows users to build apps capable of scanning various types of documents without writing a single line of code.
- Users can visit the Roy.io website and create an account to get started.
- A generous free plan is available for users who want to try out Rowi.
Creating an account and setting up a project in Rowi
This section explains how to create an account on Rowi and set up a project for utilizing Document AI capabilities.
Creating an account on Rowi
- Users need to sign up for an account on the Roy.io website.
- Once signed in, they will be redirected to their workspace page.
Setting up a new project
- Users can create a new project within their workspace by providing a name (e.g., "Project Scan").
- They need to select a data source, such as Firebase, which is currently supported by Rowi.
- Connecting the new project with existing Firebase projects is also possible.
Conclusion and gratitude towards Roy.io
The speaker concludes by expressing gratitude towards Rowi for sponsoring the video and highlights the benefits of using Rowi for no-code app development.
Benefits of using Rowi
- Rowi allows users to leverage Document AI capabilities without coding.
- It offers a low-code backend solution for building powerful scanning apps.
- The speaker personally recommends and appreciates the product.
Firebase Project Overview and Authentication Services
In this section, we will explore the Firebase project overview page and enable authentication services.
Opening Firebase Dashboard and Enabling Authentication Services
- Click on the link provided to open the Firebase project overview page.
- Once on the main Firebase dashboard, select your new project.
- Click on "Get Started" to enable authentication services.
Verifying Authentication Setup
This section covers verifying the authentication setup in Firebase.
Verifying Authentication Setup
- Click on "Verify" to enable authentication.
- After verification, click on "Continue" to proceed.
Leveraging Document Scanning Capability in Roi App
Here we discuss leveraging document scanning capability in Roi app using templates provided by Roi.
Exploring Document Scanning Templates
- Roi provides various templates for different functionalities.
- These templates are mini apps that allow you to leverage powerful functionality without writing any code.
- We are interested in building an app that leverages document scanning, so we will explore the available template options.
Examining Document Scanning Template Demo
This section focuses on exploring a live demo of a document scanning template provided by Roi.
Exploring Live Demo of Document Scanning Template
- By exploring the live demo, you can see how uploading a receipt image allows data extraction.
- The template shows parsed data such as total cost, supplier name, etc., extracted from uploaded receipts.
- Different merchants' receipts can be scanned and parsed using this document AI scanning technology.
Setting Up Cloud Functions for Document Scanning Template
Here we discuss setting up cloud functions for the document scanning template.
Setting Up Cloud Functions
- Click on "Use this template" to proceed with setting up cloud functions.
- Click on "Setup Cloud functions" and then "Continue".
- Enable billing by clicking on the provided link.
Upgrading to Blaze Plan for Billing
This section covers upgrading to the Blaze plan for billing purposes.
Upgrading to Blaze Plan
- Select the Blaze plan (pay as you go) by clicking on the provided link.
- Set a threshold, such as $10 per month, and click on "Purchase".
- Note that you will only be charged if your app becomes popular, so there is no need to worry about charges at this stage.
Deploying Roi Run Instance and Verifying Billing Setup
This section focuses on deploying Roi run instance and verifying billing setup.
Deploying Roi Run Instance
- After upgrading to the Blaze plan, go back and scroll down.
- Click on "Verify" and wait for a few moments.
- Once billing is enabled, click on "Continue".
- Select the region where you want to deploy your Roi run instance (e.g., US Central).
- Click on "Deploy" and wait for it to finish.
Setting Up Document AI Expenses Template
Here we discuss setting up the document AI expenses template in Roi.
Setting Up Document AI Expenses Template
- Go back to tables and click on "Document AI Expenses".
- Click on "Use this template" since everything else is already set up.
- Click on "Let's begin" to start configuring the fields.
- Leave the fields on default if you're just starting out.
- Click on "Create table" and proceed to the next step.
Enabling Document AI API
This section covers enabling the Document AI API for Roi's system.
Enabling Document AI API
- Click on the provided link to enable the Document AI API.
- Select your newly created project and click on "Enable".
Creating Expense Processor
Here we discuss creating an expense processor for processing receipts.
Creating Expense Processor
- Click on "Create processor" after selecting project prj7.
- Search for "expense parser" and select it as the processor type.
- Give it a name, such as "Expense Processor", and click on "Create".
Saving Processor Information
This section focuses on saving important information related to the expense processor.
Saving Processor Information
- Save the ID of the processor in a separate file or document.
- Make note of the project ID as well.
Granting Permissions for Document AI
Here we discuss granting permissions for Document AI in Roi.
Granting Permissions for Document AI
- Select project prj7 and search for "Roi functions".
- Edit principle, scroll down, add another role, and search for "document".
- Select "Document AI" and grant appropriate permissions.
Deploying Functions and Uploading Images
In this section, the speaker demonstrates how to deploy functions and upload images in the mini app created within Rolly.
Deploying Functions
- Click on "Next" and then click on "Deploy Functions".
- Wait for the deployment process to finish.
- Click on "Proceed" when prompted.
- Click on "Finish" after successful installation of the template.
Uploading Images
- Close the pop-up window.
- Click on "ADD row".
- Upload an image in the designated field.
- The other cells will be automatically populated with calculated fields.
- The derived or calculated fields do not require manual input.
Parsing Data from Uploaded Images
This section explains how data is parsed from uploaded images and displayed in the mini app.
- The type of columns in the app are calculated fields, indicated by function abbreviations (e.g., f(x)).
- Uploaded images are parsed automatically, populating relevant data fields such as total cost and supplier's name.
- Multiple images can be uploaded and parsed simultaneously.
- The parsing process extracts data accurately from receipts or documents.
Parsing Data from Different Receipts
This section demonstrates parsing data from various receipts using the mini app.
- Upload a receipt image, wait for it to parse, and view the parsed data (e.g., total cost, supplier's name).
- Repeat the process with different receipts to observe accurate parsing results.
- Although not perfect, the app does a good job of extracting relevant information from receipts.
Accessing Parsed Data and Metadata
This section highlights accessing different types of parsed data and metadata in the mini app.
- Double-click on a field to view the parsed data.
- The app provides various types of metadata, such as money value, currency, units, and date/time values.
- Different types of content can be accessed and explored within the app.
- More detailed information about accessing different metadata will be covered later in the video.
Configuring Rolly and Firebase
This section explains how configuring Rolly ensures that data is correctly stored in Firebase.
- Configuring Rolly is essential for testing and ensuring correct setup.
- Data uploaded through the mini app is automatically stored in Firebase Firestore database.
- The uploaded data appears as documents representing rows in the database.
- Only the receipt image needs to be manually uploaded; all other fields are generated automatically by Rolly's template.
Storing Images and Metadata in Firebase
This section describes how images and their corresponding metadata are stored in Firebase using Rolly.
- When an image is uploaded, Rolly stores it in Firebase storage and returns a URL for access.
- The image is then sent to Google Document AI system for parsing, retrieving actual metadata.
- Parsed data, including money value, type of purchase, etc., is stored alongside the image URL in Firebase Firestore database.
Understanding Receipt Metadata Fields
In this section, the speaker explains that the receipt parsing template provides access to a wide range of metadata fields beyond what is shown in the template. These fields include tax amount, currency type, merchant phone number, and more.
- The payment type for this receipt is Visa.
- The receipt parsing template displays only a few fields but users have access to the entire receipt's metadata.
- Users can retrieve information such as tax amount, currency type (e.g., dollars, euros), merchant phone number, and other desired fields.
Building an App for Receipt Upload and Display
The speaker discusses the process of building a simple app that allows users to upload receipts and view their information on another screen.
- To build the app, create a new project called "expenses" and select a blank app template.
- Connect Flutter Flow with Firebase by providing the Firebase project ID.
- Grant Flutter Flow access to the Firebase project by adding it as a member with editor role permissions.
- Generate configuration files for authentication and enable user collection creation.
- Create two pages: one for login and one for the main page after logging in.
- Create an additional page for users to upload their receipts.
Configuring Authentication and Creating Pages
The speaker demonstrates how to configure authentication settings and create necessary pages within Flutter Flow.
- Enable email and password sign-in method in Firebase authentication settings.
- Create a sample account in Firebase users collection for testing purposes.
- Fix errors in the template by turning off conditional visibility and deleting unnecessary elements from the sign-in page.
Testing Login Functionality
The speaker tests the app's login functionality by signing in with the sample user account.
- Sign in using the sample user account created earlier.
- Verify that the app redirects to the home page after successful login.
Creating a Home Page for Receipt Display
The speaker creates a home page where receipts can be listed and displayed.
- Design the home page with a list view to display receipts.
- Create a row within the list view to represent each receipt, containing three text fields for different pieces of information.
- Retrieve receipt data from Firestore by defining the schema for the document AI parser collection.
- Specify the fields to display on the home page, such as date, supplier name, and total cost.
Defining Schema for Receipt Data
The speaker explains how to define the schema for receipt data in Firestore.
- Access Firestore and create a new schema for the document AI parser collection.
- Define fields such as date, supplier name, and total cost to display on the home page.
The transcript does not provide further details about implementing receipt upload functionality or adding new receipts.
Querying and Displaying Data
In this section, the speaker discusses how to query and display data in an app.
Setting up the Fields for Displaying Data
- The speaker demonstrates how to set up fields for displaying data in a list.
- They show how to select the desired fields, such as supplier name, total cost, and date.
- It is important to ensure that all data is properly set up and consistent for accurate display.
Formatting and Styling the Data
- The speaker adds padding and spacing to improve the formatting of the displayed data.
- This makes it easier to read and understand the information presented.
- The list can be sorted or formatted further based on specific requirements.
Adding Receipt Upload Functionality
This section focuses on adding functionality for users to upload receipts in the app.
Creating an Image Placeholder
- A placeholder image is created within a row widget.
- Users can click on this image placeholder to upload or take a picture of their receipt.
Configuring Upload Action
- An action is added to enable users to upload receipts.
- The speaker demonstrates selecting "upload utilities" and choosing Firebase as the storage option.
Adding Navigation Bar
- A navigation bar is created for easy access between pages.
- This allows quick navigation from the main screen to the add receipt page.
Uploading Receipts and Processing Data
This section covers uploading receipts, storing them in Firebase storage, and processing the uploaded data.
Uploading Receipts
- Users can click on the image placeholder to choose an existing receipt from their gallery or take a new picture.
- The uploaded receipt is stored in Firebase storage with a unique URL.
Adding Document for Processing
- A new document is added to the AI parser collection.
- The document includes fields for the receipt image URL and type of image.
Creating Complex Record
- To add a new record, a complex structure with nested elements needs to be created.
- The speaker demonstrates creating a map within an array to store the receipt image details.
Summary
In this tutorial, the speaker explains how to query and display data in an app. They demonstrate setting up fields for displaying data and formatting it for better readability. Additionally, they show how to add functionality for users to upload receipts, configure upload actions, and create navigation bars. The process of uploading receipts, storing them in Firebase storage, and processing the uploaded data is also covered.
Adding Fields for Download URL and Image Type
In this section, the speaker explains how to add the necessary fields for the download URL and image type.
Adding Fields
- Create two fields: "Download URL" (string) and "Image Type" (string).
- Ensure that the case of the field names matches exactly.
Creating Receipt Image Field
The speaker demonstrates how to create a new field for receipt images.
Creating Receipt Image Field
- Go to the main document AI parser.
- Create a new field called "Receipt Image" with a data type of "Receipt Image Type".
- Select it as a list since it contains an array.
- Add data to the field, which will be processed automatically by the system.
Uploading and Processing Images
This section covers uploading and processing images using the created fields.
Uploading Images
- Create another action in the app to upload images.
- Set the collection as "Document AI Parser".
- Add only the "Receipt Image" field.
- Add an item at first position in the array.
- Set individual fields:
- Download URL from variable
widget State uploaded file URL.
- Type as
image/jpeg.
Displaying Snack Bar Notification
The speaker adds a snack bar notification to inform users about successful image uploads.
Adding Snack Bar Notification
- Use utilities alerts notifications to display a snack bar message saying "Image uploaded".
- Set duration as desired.
Viewing Uploaded Images
This section shows how to view uploaded images and check if they have been processed successfully.
Checking Uploaded Images
- Navigate back to home screen or list view.
- Uploaded images will be automatically processed, and the rest of the fields will be filled out.
- The list will be updated with the new item.
Sorting and Grouping Records
This section explains how to sort and group records in the app.
Sorting Records
- In the home page, go to list view edit query.
- Choose a field to order by (e.g., supplier name) and select increasing order.
- Reload to see the sorted records.
Grouping Records
- To group records by merchants, create another list view that filters by a specific merchant's name.
- Multiple transactions from the same merchant will be grouped under that merchant's name.
Adding Custom Columns
The speaker demonstrates how to add custom columns for additional data types.
Adding Custom Columns
- Click on column settings in Rowi.
- Go to column config and add new columns for desired data types (e.g., receipt date, supplier name).
New Section
In this section, the speaker discusses how to calculate fields and pull data from specific fields in an app.
Calculated Fields and Data Extraction
- Calculated fields can be used to pull data from specific fields in an app.
- By clicking on a field, you can see the available types of data that can be extracted.
- Examples of available types include purchase time, supplier name, and total tax amount.
- The table in the app can have as many columns as desired, allowing for flexibility in displaying important data.
- Users are not limited to predefined columns like total cost or supplier days.
- This customization allows for displaying any kind of data deemed important in the app.
New Section
In this section, the speaker mentions sponsorship and provides information about accessing and cloning the app they built.
Sponsorship and App Access
- The video is sponsored by Roe.io. Viewers are encouraged to check out their website.
- To view or clone the app built by the speaker, viewers should join their Patreon Community.
- By joining Patreon, users gain access to all no-code apps built by the speaker on their channel.
- The app can be cloned or viewed to understand how it was built.
- Joining Patreon is beneficial for those interested in learning no-code development or starting a new career.
New Section
In this section, viewers are provided with additional resources related to Roe.io functionality.
Additional Resources
- A video discussing more functionality related to Roe.io is mentioned. Viewers can watch it for further insights into using Roe.io features.
Turn any video into a summary like this
YouTube links, meetings, lectures. With transcripts, search, and chat.