Skip to main content

Connect

Open a session with an API key, an OAuth access token or a service account key, and the project and location of your Document AI processors.

Command in the Google Cloud AI toolkit · id ooa.google_ai/connect · 7 inputs, no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
CredentialCredentialNoAPI key, OAuth access token or service account key (the key file's JSON) from the vault.
Credential typeStringNoapi_keyapi_key: a Google Cloud API key (Natural Language and Vision). access_token: an OAuth token of a service account or user (needed for Document AI). service_account_json: a service account's JSON key, from the vault or a file; the session gets and renews its own access tokens (G6).
Key fileFileNoThe service account's JSON key file, when the key is not in the vault (G6). Keep the file where only the runner's account can read it.
ProjectStringNoGoogle Cloud project id or number; needed for Document AI, and billed for calls made with an access token. It may come from the vault.
LocationStringNousLocation of the Document AI processors: us or eu.
EndpointStringNoAnother address for the APIs, e.g. a Private Service Connect address; {service} in it becomes language, vision or us-documentai (eu-documentai). Leave empty for Google's addresses.
SessionStringNogoogle_aiSession name.