C3 AI Documentation Home

Google Cloud Storage Output Node

The Google Cloud Storage Output node enables you to export data from Visual Notebooks to Google Cloud Storage buckets. You must have an existing Cloud Storage account to use this node. For more information about Cloud Storage, visit the Google Cloud Storage documentation.

Prerequisites

Before using the Google Cloud Storage node, you need to create a Google Cloud service account and generate a JSON key. Follow these steps:

  1. Log into Google Cloud Platform
  2. Navigate to IAM & Admin > Service Accounts from the main menu Google Cloud IAM navigation
  3. Click Create Service Account Create service account button
  4. Enter a service account name (this will auto-generate a service account ID) Service account details
  5. Click Create and Continue
  6. Assign the following roles:
    • Cloud Storage > Storage Object Admin
    • Cloud Storage > Storage Object Viewer Storage roles
  7. Click Done
  8. Under Actions, click the three dots menu and select Manage keys Manage keys option
  9. Select Add Key > Create New Key Create new key
  10. Select JSON format and click Create JSON key creation
  11. Save and open the downloaded file Downloaded JSON key
  12. Add the credentials to Visual Notebooks:
    • Add a Google Cloud Storage node to your workspace
    • Click the gear icon next to Credential Credential settings
    • Click the plus icon to add new credentials Add new credential
    • Enter a name for the credentials
    • Paste the JSON key contents into the Service Account JSON Key field Credential configuration

Configuration

FieldDescription
NameNode name displayed in the workspace Optional - Defaults to none
CredentialAuthentication information for Google Cloud Storage Required Select a saved credential or click the gear icon to manage credentials
BucketTarget Google Cloud Storage bucket Required Must be an existing bucket name
PrefixStorage prefix path (similar to directories) Optional - Defaults to /
FileOutput CSV filename Optional - Defaults to auto-generated name
DelimiterValue separator character Optional - Defaults to comma (,) Options: comma, pipe, colon, semicolon, tab, space
QuoteCharacter to enclose values Optional - Defaults to single quote (') Delimiters within quotes are treated as text
Has HeaderInclude column names as CSV header Optional - Defaults to enabled

Node Inputs and Outputs

TypeDescription
InputVisual Notebooks dataframe
OutputNone - Data is exported to Google Cloud Storage

Usage Example

  1. Connect the Google Cloud Storage node to any node that produces a dataframe output
  2. Configure the node:
    • Select your Google Cloud credentials
    • Specify the target bucket
    • Set the desired file name and options
  3. Run the node to export your data

While the node doesn't produce a visible output in Visual Notebooks, it successfully exports your data to the specified Google Cloud Storage location.

Google Cloud Storage export example Figure 1: Configuring the Google Cloud Storage Output node for data export

Was this page helpful?