npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-google-document-ai

v1.3.1

Published

n8n community node for Google Document AI

Downloads

312

Readme

Banner image

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:

  1. A Google Cloud Project with Document AI enabled
  2. A Service Account with appropriate permissions
  3. A JSON key file for the Service Account

Getting the JSON Key

  1. Go to the Google Cloud Console
  2. Navigate to "IAM & Admin" > "Service Accounts"
  3. Create a new service account or select an existing one
  4. Under "Keys", click "Add Key" > "Create new key"
  5. Select "JSON" as the key type and click "Create"
  6. 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.