
Use Firestore tables in SnapApp
on 10-04-2024 12:00 AM by SnapApp by BlueVector AI
321
Firestore Tables are a powerful feature within SnapApp that allows you to store and retrieve structured data in a flexible and scalable manner.
This is especially handy to create custom extraction scores based on Doc AI extracted entities as formula fields on attachment object.
The processors like w2 parser use Firestore to store the extracted data.
How to extract DocAI entities?
SnapApp provides some features especially for Document AI.
Settings | Description |
---|---|
Quality Validation | Checks the quality of document and discards the document if the quality is poor |
Classify and Validate | Detects the correct document and discards the others. You have to choose a classifier parser then to proceed |
Entity Validation | Validates the entities of the uploaded document |
See more details in Document AI
For example:
Create a field for real time data extraction and validation.
- Under the Display Properties section, Select Formula to open the expression builder.
Expression:
=LOOKUP(CONCAT("gs://",[[docAI_type_fieldname]]), "object_of_selected_parser", "_gcs_uri", "data_extraction_field_name")
``` Output:
Extracted value (from data_extraction_field_name)
``` For example:
In the above example, _gsc_uri
is a field on the Firestore w2 parser table that serves as a unique value to link the parser output to the attachment in SnapApp. We can use this in our LOOKUP
expression to pull a specific value from the table, such as ein
. This field value can then be used when checking the validity of the document.
The extraction score is based on the condition of validation rules upon AllocatedTips
which is another entity of docai w2 parser.
In this way, Firestore tables can be used in the expression builder.
Thank you for following these steps to configure your SnapApp components effectively
If you have any questions or need further assistance, please don’t hesitate to reach out to our support team. We’re here to help you make the most out of your SnapApp experience.
For support, email us at snapapp@bluevector.ai