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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Credential | Credential | No | API key, OAuth access token or service account key (the key file's JSON) from the vault. | |
| Credential type | String | No | api_key | api_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 file | File | No | The 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. | |
| Project | String | No | Google Cloud project id or number; needed for Document AI, and billed for calls made with an access token. It may come from the vault. | |
| Location | String | No | us | Location of the Document AI processors: us or eu. |
| Endpoint | String | No | Another 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. | |
| Session | String | No | google_ai | Session name. |