n8n-nodes-google-document-ai
v1.3.1
Published
n8n community node for Google Document AI
Downloads
41
Maintainers
Readme
n8n-nodes-google-document-ai
This is an n8n community node. It lets you use Google Document AI in your n8n workflows.
Google Document AI is a cloud-based document processing service that uses machine learning to automatically extract text, tables, and other data from documents.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Compatibility
Usage
Resources
Version history
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
- Extract text from documents
- Extract tables from documents
- Extract entities from documents
Credentials
To use this node, you need to authenticate with Google Cloud. You will need:
- A Google Cloud Project with Document AI enabled
- A Service Account with appropriate permissions
- A JSON key file for the Service Account
Getting the JSON Key
- Go to the Google Cloud Console
- Navigate to "IAM & Admin" > "Service Accounts"
- Create a new service account or select an existing one
- Under "Keys", click "Add Key" > "Create new key"
- Select "JSON" as the key type and click "Create"
- Save the downloaded JSON key file securely
Important Security Note: Keep your service account JSON key secure and never share it publicly. In n8n, the key is stored encrypted in the credentials. When adding the credentials to n8n, you'll need to paste the entire contents of the JSON key file.
Compatibility
This node is compatible with n8n version 0.150.0 and above. It has been tested with the latest version of n8n.
Usage
This node allows you to process documents using Google Document AI. You can provide the document content as a binary file or a base64-encoded string. The node will return the extracted text, tables, and entities.
Development
To develop this node, you can use the following commands:
npm install
npm link
npm run dev
In a separate terminal, run the following command to start the n8n server:
Locate the n8n directory and run the following
( Note: to locate the .n8n directory - when starting the server n8n start
look for the message: "User settings loaded from: ..." )
command:
cd .n8n
# ensure the custom folder is in the .n8n directory with npm initialised
mkdir custom
cd custom
npm init
npm link @n8n-nodes-google-document-ai
npm start
Resources
Version history
1.0.0
- Initial release of the Google Document AI node.
1.1.0
- Added support for extracting tables and entities from documents.
1.2.0
- Improved error handling and added compatibility with n8n version 0.150.0 and above.
1.3.0
- Added support for processing binary files.
- Added support for processing file paths.
- Support for continueOnFail.
- Support for Google Cloud Vision API using credentials from Google Cloud Service Account JSON.