-
The full source code is available on GitHub, along with a sample PDF for testing. However, you’re welcome to create and use your own documents as well. Simply clone the repository, modify the code to fit your requirements, and try it out for your own use case.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
To easily manage user OAuth across multiple platforms, I use Nango. You can check out their documentation on how to get started: Log in to Nango and click on Configure New Integration. Search for Google Mail in the list of integrations. Add the Client ID and Secret you copied. In the field for scopes, add https://www.googleapis.com/auth/gmail.readonly , https://www.googleapis.com/auth/gmail.modify and https://www.googleapis.com/auth/gmail.labels Copy the callback URL for the integration and save. Go back to Credentials on your Google console and add the callback URL as an authorized redirect URI.
-
Sign up for a free account at Supabase.
-
We’ll be using Node.js to run our code. If you don’t have Node.js installed, go to the Node.js website and download the latest version.
-
Extract Data with Documind: We’ll pass the PDF as a URL to Documind, an open-source package that uses AI to extract structured data from documents. This will give us information like the item names, quantities, shipping details, weight, and more.