ZBrain Documentation
  • ZBrain Documentation
    • Components of ZBrain
    • Getting started with ZBrain
    • 📚Knowledge base
      • How to create a knowledge base?
      • Knowledge source
      • Information schema
      • File summary
      • Automated reasoning
      • Retrieval testing
      • Knowledge base settings
    • 📱APP
      • How to create a new app?
      • How to set up and customize your app?
      • How to access the app reporting dashboard?
    • 🤖ZBrain AI agents
      • Get started with agents on ZBrain
      • Deploying pre-built agents
      • Creating custom AI agents
        • Agent setup
        • Define input sources
        • Define Flow
          • Key elements of a Flow
          • Flow Components
            • Activepieces Platform
            • AITable
            • Airtable
            • Amazon S3
            • Amazon SNS
            • Amazon SQS
            • Amazon Textract
            • Apify
            • Apollo
            • Approval
            • Asana
            • Azure Communication Services
            • Azure Cosmos DB
            • Azure Document Intelligence
            • Azure OpenAI
            • Azure Translation
            • Bannerbear
            • Baserow
            • Beamer
            • Bedrock Claude
            • Bettermode
            • Binance
            • Bing Search
            • Blackbaud
            • Bonjoro
            • Box
            • Brevo
            • Brilliant Directories
            • Bubble
            • CSV
            • Calendly
            • Certopus
            • Clearout
            • Clockodo
            • Code
            • Confluence
            • Connections
            • Constant Contact
            • Contiguity
            • Contentful
            • Customer.io
            • Crypto
            • Databricks
            • Data Mapper
            • Date Helper
            • DeepL
            • Delay
            • Discord
            • Discourse
            • Drip
            • Dropbox
            • Dust
            • Facebook Pages
            • Figma
            • Files Helper
            • Flowise
            • Flowlu
            • Formbricks
            • Frame
            • Freshdesk
            • Freshsales
            • GCloud Pub/Sub
            • GenerateBanners
            • GhostCMS
            • GitHub
            • GitLab
            • Gmail
            • Google Calendar
            • Google Contacts
            • Google Docs
            • Google Drive
            • Google Forms
            • Google Gemini
            • Google My Business
            • Google Search
            • Google Search Console
            • Google Sheets
            • Google Tasks
            • Groq
            • Hacker News
            • Heartbeat
            • HubSpot
            • HTTP
            • Image Helper
            • Inputs
            • Instagram for Business
            • Intercom
            • Invoice Ninja
            • Jira Cloud
            • Jotform
            • Kimai
            • Kizeo Forms
            • LeadConnector
            • Line Bot
            • Linear
            • LinkedIn
            • LinkedIn Actions
            • LLMRails
            • Lusha
            • MailerLite
            • Mailchimp
            • Mautic
            • Microsoft Dynamics 365 Business Central
            • Microsoft Dynamics CRM
            • Microsoft Excel 365
            • Microsoft OneDrive
            • Microsoft Outlook Calendar
            • Microsoft Teams
            • Mixpanel
            • MongoDB
            • Notion
            • Odoo
            • OpenAI
            • OpenRouter
            • Pastebin
            • PDF
            • Postgres
            • PostHog
            • Pushover
            • Qdrant
            • Queue
            • Razorpay
            • Router
            • Salesforce
            • SendGrid
            • ServiceNow
            • SFTP
            • SharePoint
            • Slack
            • SMTP
            • Snowflake
            • SOAP
            • Spotify
            • Stability AI
            • Stable Diffusion Web UI
            • Storage
            • Stripe
            • SurrealDB
            • SurveyMonkey
            • Taskade
            • Telegram Bot
            • Text Helper
            • Trello
            • Twilio
            • Twitter
            • Utilities
            • WhatsApp Business
            • WordPress
            • XML
            • YouTube
            • ZBrain
            • Zendesk
            • ZeroBounce
            • Zoho Books
            • Zoho CRM
            • Zoho Invoice
            • Zoom
          • How to Define a Flow?
          • How to Test Each Step in the Flow?
        • Configure Additional Settings
        • Test and Deploy Agents
        • How to access, monitor, and manage agent performance and tasks?
    • Settings
    • 📖API Tutorials
      • 📚Knowledge base
        • Automated Reasoning
      • 📱APP
      • 🤖Agents
Powered by GitBook
On this page
  • Create New File
  • Create New Folder
  • Custom API Call
  • Delete File
  • Delete Permissions
  • Duplicate File
  • Get File
  • List Files
  • Move File
  • Read File
  • Save Document as PDF
  • Search
  • Set Public Access
  • Trash File
  • Update Permissions
  • Upload File
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow
  5. Flow Components

Google Drive

Google Drive is a cloud storage service provided by Google. It allows users to store, access, and share files from any device at any time, making it ideal for backup, collaboration, and seamless integration with other Google Workspace applications.

To integrate Google Drive with ZBrain Flow, follow these detailed steps:

  • Click the '+' button in the Flow and search for Google Drive in the ZBrain Flow.

  • Select the specific task from the list you want to include in the Flow. You can perform the below-listed tasks:

    • Create New File: Create a new text file in your Google Drive from the provided text.

    • Create New Folder: Create a new empty folder in your Google Drive.

    • Custom API Call: Make a custom API call to a specific Google Drive endpoint.

    • Delete File: Permanently delete a file from your Google Drive.

    • Delete Permissions: Remove a role from a user for a specific file or folder.

    • Duplicate File: Duplicate a file from Google Drive and return the new file ID.

    • Get File: Retrieve a file or folder for files/sub-folders.

    • List Files: List files from a Google Drive folder.

    • Move File: Move a file from one folder to another.

    • Read File: Read the contents of a selected file from Google Drive.

    • Save File as PDF: Convert and save a file as a PDF in a Google Drive folder.

    • Search: Search a Google Drive folder for files or sub-folders.

    • Set Public Access: Set public access for a file or folder.

    • Trash File: Move a file to the trash in your Google Drive.

    • Update Permissions: Update permissions for a file or folder.

    • Upload File: Upload a file to your Google Drive.

Create New File

Create a new text file in your Google Drive from the provided text.

How to Configure Create New File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the name of the file in the File name field.

  • Provide the text content to add to the file in the Text box.

  • Select the desired value, which is the content format, from the Content type drop-down.

  • Select the folder name from the Parent Folder drop-down.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Create New Folder

Create a new empty folder in your Google Drive.

How to Configure Create New File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the new folder name in the Folder name text box.

  • Select the parent folder, if any, from the Parent Folder drop-down.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Custom API Call

Make a custom API call to a specific Google Drive endpoint.

How to Configure Custom API Call to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the URL. The URL refers to the specific endpoint of the API you want to interact with. This endpoint determines the resource or action the request will address (e.g., creating events, updating calendars, retrieving event details).

  • Choose the Method to be used for the API call.

  • Provide the Headers. These are key-value pairs sent along with the API request to convey additional information (e.g., authentication tokens, content type). Headers help the server process your request correctly. Authorization headers are injected automatically from your connection.

  • Provide the Query Parameters object. These are appended to the URL and are typically used to filter or modify the request. For example, adding ?status=active might limit results to only active records.

  • Include the main data payload (in formats such as JSON or form data) in the Body when making a request to create, update, or process the server's information.

Delete File

Permanently delete a file from your Google Drive.

How to Configure Delete File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file to be deleted in the File ID box. This is the unique identifier for the file you want to delete. This tells Google Drive which specific file to remove.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Delete Permissions

Remove a role from a user for a specific file or folder.

How to Configure Delete Permissions to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file or folder to update permissions for in the File or Folder ID field.

  • Provide the user's email address to update permissions in the User email field.

  • Select the role of the user from the Role drop-down.

Duplicate File

Duplicate a file from Google Drive and return the new file ID.

How to Configure Duplicate File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file to duplicate in the File ID box.

  • Provide the name of the new file in the Name box.

  • Provide the ID of the folder where the file will be duplicated in the Folder ID field.

Get File

Retrieve a file or folder for files/sub-folders.

How to Configure Get File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file/folder to search for in the File / Folder ID field.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

List Files

List files from a Google Drive folder.

How to Configure List Files to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the Folder ID value, which could be a new folder ID or an existing folder ID.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Move File

Move a file from one folder to another.

How to Configure Move File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the file name in the File ID using the Search Folder/File action to retrieve the ID.

  • Provide Parent Folder value. It refers to the new destination folder where you want to place the file. By specifying a parent folder, you define the exact location where the moved file will reside in Google Drive (or Team Drives if enabled).

Read File

Read the contents of a selected file from Google Drive.

How to Configure Read File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the File ID value, which could be a new file ID or an existing file ID.

  • Provide the Destination File name.

Save Document as PDF

Convert and save a file as a PDF in a Google Drive folder.

How to Configure Save Document as PDF to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the document to export in the Document ID field.

  • Provide the ID of the folder where the file will be exported in the Folder ID field.

  • Provide the name of the new file (do not include the extension) in the Name field.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Search

Search a Google Drive folder for files or sub-folders.

How to Configure Search to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Select the query term or field of file/folder to search upon from the Query Term drop-down.

  • Select the operator to create criteria from the Operator drop-down.

  • Provide the value of the field of file/folder to search in the Value field.

  • Select the value from the File Type drop-down.

  • Select the parent folder value from the Parent Folder drop-down.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Set Public Access

Set public access for a file or folder.

How to Configure Set Public Access to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file or folder to update permissions for in the File or Folder ID field.

Trash File

Move a file to the trash in your Google Drive.

How to Configure Trash File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file to the trash in the File ID field.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

Update Permissions

Update permissions for a file or folder.

How to Configure Update Permissions to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the ID of the file or folder to update permissions for in the File or Folder ID field.

  • Provide the email address of the user to update permissions in the User email field.

  • Select the role to grant to the user from the Role drop-down.

  • If you want to send an email to the user to notify them of the new permissions, then enable Send invitation email.

Upload File

Upload a file to your Google Drive.

How to Configure Upload File to ZBrain Flow?

  • Create a Connection with your Gmail ID and save the connection with a proper name, or select the already created connection.

  • Provide the name of the file in the File name field.

  • Provide the file URL in the File field.

  • Select the parent folder from the Parent Folder drop-down.

  • Optional Settings

    • Include Team Drives: Files and folders stored in shared drives (Team Drives) are also considered for file creation when enabled. If disabled, operations are limited to your personal Google Drive.

PreviousGoogle DocsNextGoogle Forms

Last updated 1 month ago

🤖