Using the Extract action for Google Document AI
- Updated: 2022/06/15
Using the Extract action for Google Document AI
Configure the Extract action to enable your bot to send documents to Google Document AI for data extraction and retrieve the output in JSON format.
Prerequisites
Login to your Google Cloud account and go to the Processors page to retrieve your custom endpoint. See Use your processor endpoint.
Your custom endpoint should follow this format:
https://LOCATION-documentai.googleapis.com/API_VERSION/projects/PROJECT_ID/locations/LOCATION/processors/PROCESSOR_ID
.
You will need the parameters in bold to configure this action.
Procedure
Next steps
- Initiate the JSON session with the Start session action. In the JSON text field, insert the string variable holding the output of the Extract action.
- Use the Get node value
action to parse the output of the
action and assign the node values to a list variable.
You can insert a Loop action after the Get node value action to iterate through each list item to perform an operation on each node value.
- Terminate the JSON session with the End session action.