User upload files (PDF files with some tables and text) to Google Driver in detected folder with detected name.

User run GAS function in Google Sheets, Call a serverless microservice by REST API

The serverless microservice (node.js in Docker) is running on Google Cloud run
- Call Google Document AI (Form parser) to recognize the English PDF file and get the result with structure (form field, table).
- A bunch of Regular expressions to extract and process the text data, extract entities and return a JSON Object to the GAS function for the next process step.
- If there is any handwriting text need to analyze in the file, call Google Vision AI to process.
- If there is something need translation, put the file to Google Storage and call Google Translation AI to process.
- Because Form parser is not so good in recognizing Japanese.
- Train a custom machine learning model with Google Natural Language AutoML (Vertex AI) to recognizing Japanese Document (e.g. 「輸入許可書」).

The Precision and Recall of the model both are over 90%.

- Use my custom machine learning module to extract the entities and return a JSON Object to the GAS function for the next process step.
A couple of Time-based backend processes run automatically and timely
Automatically check the Gmail and continue to analyze the PDF file attached in the email with the serverless microservice mentioned before.
Automatically check the FAX server, analyze the FAX come in and deliver them to the email of people in charge (use a Google Sheet as a setting file).