Connect
Establishes a connection to Google Vertex AI service for subsequent API calls.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
No inputs required for this node.
Options
- Credentials - The Google Cloud credentials required to authenticate with the Vertex AI service.
- Project Id - The Google Cloud Project ID where the Vertex AI service is configured.
Output
- Connection Id - A unique identifier for the established connection that can be used by other Vertex AI nodes.
How It Works
The Connect node establishes a connection to the Google Vertex AI service using the provided credentials and project ID. When executed, the node:
- Retrieves the provided credentials and validates them
- Extracts the authentication token from the credentials
- Gets the project ID from the options
- Validates that the project ID is not empty
- Creates and stores a client connection with the token and project ID
- Returns a unique connection ID that can be used by other nodes
Requirements
- Valid Google Cloud credentials with appropriate permissions for Vertex AI
- A valid Google Cloud Project ID
- Proper network access to Google Cloud services
Error Handling
The node will return specific errors in the following cases:
- Invalid or missing credentials
- Empty Project ID
- Authentication failures
- Network connectivity issues
Usage Notes
- The Connection ID output should be passed to other Vertex AI nodes that require a connection
- The credentials should have appropriate permissions for the Vertex AI services you plan to use
- The Project ID must match the project where your Vertex AI resources are configured
- This connection should be established before using any other Vertex AI nodes
- The connection can be closed using the Disconnect node when no longer needed