Global AI Network
Agent Template v1.0

Bilibili Video Downloader to Google Drive

Automatically download Bilibili videos and save them to Google Drive with instant email notifications—no manual uploads required.

12+
Deployments
5m
Setup Time
Free
Pricing

Need custom configuration?

Our solution engineers can help you adapt this agent to your specific infrastructure and requirements.

Enterprise Grade Best Practices Production Optimized

INTEGRATED_MODULES

Email (IMAP/SMTP)
Email (IMAP/SMTP)
Google Drive
Google Drive
Step by Step

Setup Tutorial

mission-briefing.md

Bilibili Video Downloader & Google Drive Uploader Setup Guide

What This Agent Does

This powerful automation workflow streamlines the process of downloading Bilibili videos and securely storing them in Google Drive. Simply submit a video URL through a user-friendly form, and the agent handles everything—from fetching video metadata to downloading the file, uploading it to your cloud storage, and sharing it with the appropriate permissions. You'll receive email confirmations at every stage, keeping you informed of success or any issues that arise.

Key benefits and time savings:

  • Eliminates manual downloads: Automate what would typically take 5-10 minutes of manual work
  • Cloud storage integration: Videos go directly to Google Drive, accessible from anywhere
  • Error handling: Automatic failure notifications ensure you're never left wondering what happened
  • Batch-ready: Process multiple videos by submitting multiple forms
  • Professional sharing: Automatically generate shareable links with customizable permissions

Target use cases:

  • Content creators archiving reference videos
  • Researchers collecting video data for analysis
  • Teams managing media libraries across projects
  • Educational institutions preserving instructional content
  • Social media managers organizing video assets

Who Is It For

This workflow is ideal for anyone who regularly works with Bilibili content and needs a reliable, hands-off solution for video management. Whether you're a content creator, researcher, educator, or business professional, this agent saves time and reduces the friction of manual video downloading and file organization. No technical expertise required—the intuitive form interface makes it accessible to all skill levels.

Required Integrations

Google Drive

Why it's needed: Google Drive serves as your secure, cloud-based storage destination. The workflow uploads downloaded videos directly to your Drive account and generates shareable links, eliminating the need for local storage management and enabling easy collaboration.

Setup steps:

  1. Access Google Cloud Console

  2. Create a new project

    • Click "Select a Project" at the top
    • Click "NEW PROJECT"
    • Enter project name: TaskAGI Video Downloader
    • Click "CREATE"
  3. Enable Google Drive API

    • In the search bar, type Google Drive API
    • Click on "Google Drive API" from results
    • Click the "ENABLE" button
  4. Create OAuth 2.0 credentials

    • Click "Create Credentials" button
    • Select "OAuth client ID"
    • Choose "Desktop application" as the application type
    • Click "CREATE"
    • Download the JSON file (save this securely)
  5. Configure in TaskAGI

    • In TaskAGI, navigate to IntegrationsGoogle Drive
    • Click Connect New Account
    • Paste your OAuth credentials from the downloaded JSON file
    • Authorize the connection when prompted
    • Test the connection to verify success

How to obtain API keys/credentials: Your credentials are automatically generated when you create the OAuth 2.0 client ID in Google Cloud Console. The JSON file contains all necessary authentication information. Keep this file secure and never share it publicly.

Email

Why it's needed: Email notifications keep you informed about workflow execution. You'll receive success confirmations with download links and failure alerts if something goes wrong, ensuring complete visibility into your automation.

Setup steps:

  1. Choose your email provider

    • TaskAGI supports Gmail, Outlook, and custom SMTP servers
    • For this guide, we'll use Gmail (recommended for simplicity)
  2. Enable Gmail API (if using Gmail)

    • Go to Google Cloud Console
    • Use the same project created above
    • Search for "Gmail API"
    • Click "ENABLE"
  3. Generate Gmail App Password

    • Go to Google Account Security
    • Enable 2-Step Verification (if not already enabled)
    • Return to Security settings
    • Find "App passwords" section
    • Select "Mail" and "Windows Computer"
    • Copy the generated 16-character password
  4. Configure in TaskAGI

    • Navigate to IntegrationsEmail
    • Click Connect New Account
    • Select Gmail as provider
    • Enter your Gmail address
    • Paste the 16-character app password
    • Click Test Connection to verify

Configuration in TaskAGI: Once connected, the email integration automatically uses your configured account for all outgoing notifications. The workflow includes pre-written success and failure email templates that you can customize with your branding.

Configuration Steps

Step 1: Form Configuration (Video URL Input)

The workflow begins with a form that collects user input. This node is pre-configured but verify these settings:

  • Form Title: "Bilibili Video Download Request"
  • Required Fields:
    • video_url: Text field for the Bilibili video URL
    • email: Email field for notification delivery
  • Field Validation: Ensure URL field requires valid format
  • Submit Button Text: "Download Video"

Example input:

video_url: https://www.bilibili.com/video/BV1xx411c7mD
email: user@example.com

Step 2: API Request - Fetch Video Info

This node retrieves metadata about the video before downloading.

Configuration:

  • Request Type: POST
  • URL: Your Bilibili API endpoint (or proxy service)
  • Body Parameter: url=[[nodes.6279.video_url]] (automatically pulls from form)
  • Headers: Include authentication tokens if required

What to expect: The API returns video metadata including title, duration, and direct download URL. This information is used in subsequent steps.

Step 3: Condition Check - API Success Validation

This critical node branches the workflow based on API response.

Configuration:

  • Condition Type: Check if API response status is 200 or success
  • True Path: Proceeds to download (nodes 6282+)
  • False Path: Sends failure email (node 6286)

Why it matters: This prevents attempting to download videos when metadata retrieval fails, saving time and preventing error states.

Step 4: Download Video File

Upon successful API validation, this node downloads the actual video.

Configuration:

  • Request Type: GET
  • URL: Use the download URL from Step 2's API response
  • Response Handling: Save as binary file
  • Timeout: Set to 600 seconds (10 minutes for large files)

Pro tip: The downloaded file is temporarily stored in TaskAGI's secure cache and immediately passed to the next node—no local storage required.

Step 5: Upload to Google Drive

The downloaded video is now uploaded to your Google Drive.

Configuration:

  • File Source: Binary data from previous download step
  • Destination Folder: Select or create a folder (e.g., "Bilibili Videos")
  • File Name: Use [[nodes.6280.video_title]] for automatic naming
  • Permissions: Set to private initially

Example result:

File: "How to Master TaskAGI Automation.mp4"
Location: /My Drive/Bilibili Videos/
Status: Successfully uploaded

Step 6: Share File Publicly

Generate a shareable link for the uploaded video.

Configuration:

  • File ID: Automatically populated from upload step
  • Share Type: Anyone with link
  • Permission Level: Viewer (read-only, prevents accidental modifications)
  • Notify Sharees: False (no notification emails to others)

Result: A public link is generated and included in the success email.

Step 7: Send Success Email

Notify the user that their video is ready.

Configuration:

  • To: [[nodes.6279.email]] (from form submission)
  • Subject: "Your Bilibili Video is Ready!"
  • Body Template:
Hello,

Your Bilibili video has been successfully downloaded and uploaded to Google Drive!

Video Title: [[nodes.6280.video_title]]
File Size: [[nodes.6283.file_size]]
Download Link: [[nodes.6285.share_link]]

The file is ready to access, download, or share with others.

Best regards,
TaskAGI Automation

Step 8: Send Failure Email (Alternate Path)

If the API check fails, this node sends an error notification.

Configuration:

  • To: [[nodes.6279.email]]
  • Subject: "Bilibili Video Download Failed"
  • Body Template:
Hello,

We were unable to download your Bilibili video. This may be due to:
- Invalid video URL
- Video unavailability or regional restrictions
- Temporary API issues

Please verify the URL and try again. If problems persist, contact support.

Error Details: [[nodes.6280.error_message]]

Best regards,
TaskAGI Automation

Testing Your Agent

Pre-Launch Checklist

Before running your first real workflow:

  • ✅ Google Drive integration is connected and tested
  • ✅ Email integration is configured with valid credentials
  • ✅ Form fields are properly labeled and validated
  • ✅ API endpoint URL is correct and accessible
  • ✅ All node connections follow the data flow diagram

Test Execution Steps

1. Submit a test form

  • Navigate to your workflow's form
  • Enter a valid Bilibili video URL
  • Enter your test email address
  • Click "Download Video"

2. Monitor execution in real-time

  • Watch the workflow progress through each node
  • Check for any error messages or warnings
  • Note execution times for each step

3. Verify at each checkpoint

  • After Step 2: Confirm API returns video metadata
  • After Step 3: Verify condition correctly evaluates
  • After Step 4: Check file size matches expected video
  • After Step 5: Confirm file appears in Google Drive
  • After Step 6: Test the generated shareable link
  • After Step 7: Verify success email arrives in inbox

Expected results and success indicators:

Success state:

  • Workflow completes without errors
  • Video file appears in designated Google Drive folder
  • Success email arrives within 2 minutes
  • Shareable link is functional and accessible
  • Video plays correctly when accessed via link

Failure handling:

  • Invalid URLs trigger failure email immediately
  • Error messages are descriptive and actionable
  • Workflow doesn't create partial files or broken links

Troubleshooting tips:

  • If emails don't arrive, verify SMTP credentials
  • If uploads fail, check Google Drive folder permissions
  • If downloads timeout, increase timeout value in Step 4
  • If API fails, validate endpoint URL and authentication

Your Bilibili Video Downloader is now ready to automate your workflow!