Try Kling Image V4 Long for Page Mockups from Kling AI →
Models
Agents
Workflows
Studio
PricingBlogDocs
ExploreDiscover models by categoryDiscoverModels and effects built by WiroBrowse All ModelsBrowse the complete catalogSee FavoritesSign in to view saved models
Generative Media AgentCreate and edit media by chattingWorkflow AgentBuild visual workflows with Agent
OverviewThe platform at a glanceLearnSkills, knowledge, guardrailsAnatomyWhat makes agents reasonBuild Your AgentPick skills, choose a plan, deploy, then connect your tools
Pre-built AgentsBrowse the catalogConnectorsConnect agents to your apps
Agent Usecases
Ad Campaign ManagerApp Event ManagerApp Review RepliesBarber BookingCustomer Win-BackEcommerce ListingsRestaurant Reviews
Sign InStart Building
  1. Home
  2. Connectors
  3. Social
  4. YouTube
Wiro × YouTube

Connect YouTube to your Wiro AI agent

Upload and publish videos and Shorts, edit metadata and playlists, and read channel analytics.

Connect to an AgentVisit YouTube All Connectors
YouTube logo
Sign InWith your own YouTube app
16 actions10 read, 6 write
Chat and Scheduled TasksWhere it works
Allow, Ask or BlockYour choice for each action
Example chat
YouTube logoYouTube connected Signed in

Viewers keep leaving my newest dovetail video early. At what point do most of them drop off?

List YouTube channel videos youtube__list_videos
Get a YouTube Analytics report youtube__get_analytics_report

Your latest Offcut Workshop upload, Hand-cut dovetails in one evening (16:48), still holds 72% of viewers at the one-minute mark. The steepest drop comes between 2:40 and 3:50, where audience retention falls from 56% to 39%. After that it eases down to 23% by the end. Most of the loss sits in the first five minutes, so whatever happens around the 3-minute mark is worth a look before the next video.

Type a message...

Overview

What YouTube does for your agent

Your own Google OAuth client handles the sign-in, and only the YouTube channels selected at the end of it are open to the agent. It uploads videos and Shorts from a file link with title, description, tags, audience setting and release time, edits those details later, sets custom thumbnails, builds playlists and reads YouTube Analytics for views, watch time, traffic sources and audience retention. Until the Cloud project behind that client passes YouTube's API audit, Google keeps every upload private.

Use cases

What your Wiro agent can do with YouTube

01 / 06

Upload a finished video with its title, description, tags and release time

Give the agent a link to the video file and a few notes. It writes the title, description and tags, sets the category and audience setting, adds YouTube's altered or synthetic content label when the video shows AI-made realistic people or scenes, and uploads it as private, unlisted, public or scheduled for the time you pick.

02 / 06

Publish a Short every weekday from a list of clips

A Scheduled Task runs each weekday, takes the next vertical clip from the list you gave the agent and uploads it with a title and tags. Vertical or square videos of three minutes or less become Shorts on their own, so the list only needs file links and a line about each clip.

03 / 06

Monday channel report with views, watch time and subscribers

Every Monday a Scheduled Task runs YouTube Analytics for the past week and sends a summary in Chat: daily views, watch time, subscribers gained and lost, the videos that brought in the week's views, and where viewers came from by traffic source, country and device. YouTube may still be filling in the last two or three days.

04 / 06

Find where viewers leave a video and plan the next one

Ask for a video's audience retention. The agent reads how much of the audience is still watching at each point of the video, names the moments where many people leave, and suggests changes to the opening, length or pacing of your next upload.

05 / 06

Rewrite titles and descriptions of older videos and add new thumbnails

The agent lists your uploads with views and likes, picks the ones that underperform and proposes new titles, descriptions and tags. After you approve each change it updates the video and leaves every other field as it was. On a verified channel it can also set a custom thumbnail from an image link.

06 / 06

Pick the videos that fit a video ad campaign

Before you plan a campaign, ask the agent to screen your uploads. It returns the videos that fit bumper, non-skippable or skippable ad lengths, are public or unlisted, are not made for kids and hold viewers well, with the reason each other video was left out.

How it works

How YouTube works with Wiro

  1. 01

    Deploy an agent, open its Connectors tab, choose YouTube and sign in with your YouTube account.

  2. 02

    Set each YouTube action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.

  3. 03

    Ask your agent for YouTube work in Chat, or put it on a Scheduled Task that runs on its own.

YouTube logoConnect YouTube

YouTube opens in a new window. Sign in there and allow access; this page updates by itself.

Sign In With YouTube
PermissionsChatScheduled TasksList YouTube channelsAllowAllowUpload a video to YouTubeAskAllowUpdate a YouTube videoAskAllow
Chat

Upload a finished video with its title, description, tags and release time

Scheduled Task

YouTube logoPublish a Short every weekday from a list of clips

  • Where it runsInside your agent. Its requests go straight from the agent to YouTube.
  • Where its data goeswww.googleapis.comyoutubeanalytics.googleapis.com
  • How it signs inSign in to YouTube with your own app.
  • AccountsAfter connecting, pick the YouTube channels the agent may work with. It cannot reach any other.

What it can do

Actions your Wiro agent can take in YouTube

By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.

Read-only (10)Create and send (3)Change and delete (3)

Read-only 10 actions

Looks things up in YouTube and changes nothing.

  • List YouTube channels

    Lists the YouTube channels of the connected Google account (only the chosen ones when a choice was made), with id, title, handle, subscriber, view and video counts and the uploads playlist id.

    Chat AllowScheduled Tasks Allow

  • Get a YouTube channel

    A channel's details and statistics: title, handle, description, country, subscribers, views, videos, keywords, uploads playlist id, audience setting and upload limits.

    Chat AllowScheduled Tasks Allow

  • List YouTube channel videos

    Lists a channel's uploads, newest first, with each video's id, title, publish time, visibility (and scheduled time), duration, views, likes, comments, audience setting and link.

    Chat AllowScheduled Tasks Allow

  • Get YouTube videos

    Reads up to 50 videos by id.

    Chat AllowScheduled Tasks Allow

  • Search the videos of a YouTube channel

    Searches a channel's public videos by words, sorted by relevance, date, views, rating or title, optionally in a time range.

    Chat AllowScheduled Tasks Allow

  • List YouTube playlists

    Lists a channel's playlists with id, title, visibility, item count and link; the connected channel's private playlists too.

    Chat AllowScheduled Tasks Allow

  • List the videos of a YouTube playlist

    Lists the videos of a playlist in order, with each entry's item id, video id, title, position and visibility.

    Chat AllowScheduled Tasks Allow

  • Get a YouTube Analytics report

    Runs a YouTube Analytics report for a channel and a date range: a ready report or your own metrics, dimensions, filters and sort.

    Chat AllowScheduled Tasks Allow

  • Screen YouTube videos for video ads

    Checks a channel's uploads for use in video ad campaigns: public or unlisted, not made for kids, enough views, a length that fits the ad format and, from Analytics, an average view percentage over the last days.

    Chat AllowScheduled Tasks Allow

  • Read other YouTube data

    Reads what the actions above do not cover, straight from the YouTube API.

    Chat AllowScheduled Tasks Allow

Create and send 3 actions

Creates or sends something new in YouTube, such as a post, a message or an email.

  • Upload a video to YouTube

    Uploads a video (regular or Short) from a public https URL to the connected channel, with its title, description, tags, category, languages, visibility or scheduled release, audience setting and synthetic-media label.

    Chat AskScheduled Tasks Allow

  • Create a YouTube playlist

    Creates a playlist on the connected channel.

    Chat AskScheduled Tasks Allow

  • Add a video to a YouTube playlist

    Adds a video to one of the connected channel's playlists, at the end or at a position (0 is first).

    Chat AskScheduled Tasks Allow

Change and delete 3 actions

Changes or deletes what is already in YouTube.

  • Update a YouTube video

    Changes a video's title, description, tags, category, languages, visibility or scheduled release, audience setting, synthetic-media label, embedding, public statistics or license.

    Chat AskScheduled Tasks Allow

  • Set a YouTube video thumbnail

    Sets a video's custom thumbnail from a public https URL of a JPEG or PNG image under 2 MB (1280 x 720 is best).

    Chat AskScheduled Tasks Allow

  • Make other YouTube changes

    Sends any other change straight to the YouTube API.

    Chat AskScheduled Tasks Allow

How to connect

Connect YouTube to Wiro

Open the agent's Connectors tab, choose YouTube and sign in with your account. The consent screen shows what the agent can reach.

What the Connect dialog asks for

FieldAbout
OAuth Client IDRequired
  1. Go to Google Cloud Console
  2. Enable the YouTube Data API v3 and YouTube Analytics API
  3. Go to APIs & Services → Credentials
  4. Click + Create Credentials → OAuth client ID (Web application)
  5. Add scopes: youtube, youtube.readonly, yt-analytics.readonly
  6. Add this Authorized redirect URI:

https://api.wiro.ai/v1/AgentConnector/OAuthCallback

Used only to sign in; the agent never receives it.
OAuth Client SecretRequired

Google shows the Client secret only once, in the dialog that opens when you create the client: copy it there, or click Download JSON to keep it in a file. After you close that dialog, Google never shows it again.

If you no longer have it, open your client in Google Auth Platform → Clients, click Add secret and copy the new secret the same way. When nothing uses the old secret any more, Disable it and delete it.

Used only to sign in; the agent never receives it.

Troubleshooting

Troubleshooting YouTube

What to check when YouTube stops working for your agent.

  • Your own app's sign-in fails Check your app's settings in YouTube: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
  • Access revoked in YouTube If the access is removed in YouTube, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose YouTube and Reconnect.
  • Limits set by YouTube YouTube limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your YouTube plan.

For developers

Connect YouTube from your own product

Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.

  1. 01

    Read the connector

    Detail answers without a session: what the connector needs and the tools it gives an agent.

    POST /AgentConnector/Detail
    {
      "slug": "youtube"
    }
    Response
    {
      "result": true,
      "errors": [],
      "agentconnectors": [
        {
          "slug": "youtube",
          "title": "YouTube",
          "category": "social",
          "authtype": "provider-oauth",
          "credentialfields": [
            {
              "name": "clientid",
              "label": "OAuth Client ID",
              "required": true,
              "secret": false,
              "format": "text"
            },
            {
              "name": "clientsecret",
              "label": "OAuth Client Secret",
              "required": true,
              "secret": true,
              "format": "password"
            }
          ],
          "accountpickers": [
            {
              "key": "channels",
              "label": "YouTube channels",
              "multiple": true
            }
          ],
          "tools": [
            {
              "name": "list_channels",
              "readonly": true
            },
            {
              "name": "get_channel",
              "readonly": true
            }
          ]
        }
      ]
    }
  2. 02

    Start the sign-in

    Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.

    POST /UserAgent/ConnectorConnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "youtube",
      "mode": "oauth",
      "values": {
        "clientid": "YOUR_CLIENTID",
        "clientsecret": "YOUR_SECRET"
      },
      "redirecturl": "https://your-app.example.com/connectors/return"
    }
    Response
    {
      "result": true,
      "errors": [],
      "status": "pending",
      "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..."
    }
  3. 03

    Come back to your page

    After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.

    Your redirect URL
    https://your-app.example.com/connectors/return?connector_connected=true
    https://your-app.example.com/connectors/return?connector_error=authorization_denied
  4. 04

    Read the status

    connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.

    POST /UserAgent/ConnectorList
    {
      "useragentguid": "YOUR_AGENT_GUID"
    }
    Response
    {
      "result": true,
      "errors": [],
      "useragentconnectors": [
        {
          "slug": "youtube",
          "title": "YouTube",
          "authtype": "provider-oauth",
          "status": "connected",
          "accounts": {},
          "savedvariables": [
            "clientid",
            "clientsecret"
          ],
          "lasterror": null
        }
      ]
    }
  5. 05

    List the accounts

    After connecting, list what the agent may use. It cannot reach anything else.

    POST /UserAgent/ConnectorAccounts
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "youtube"
    }
    Response
    {
      "result": true,
      "errors": [],
      "pickers": [
        {
          "key": "channels",
          "label": "YouTube channels",
          "multiple": true,
          "candidates": [
            {
              "id": "1234567890",
              "name": "Example account"
            }
          ],
          "selected": []
        }
      ]
    }
  6. 06

    Save the accounts

    Every id is checked against a fresh list, then the agent uses them, with no restart for most changes.

    POST /UserAgent/ConnectorSetAccounts
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "youtube",
      "accounts": {
        "channels": [
          "1234567890"
        ]
      }
    }
    Response
    {
      "result": true,
      "errors": [],
      "restart": "scheduled"
    }
  7. 07

    Disconnect

    Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.

    POST /UserAgent/ConnectorDisconnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "youtube"
    }
    Response
    {
      "result": true,
      "errors": [],
      "removed": true,
      "revoked": true,
      "restart": "scheduled"
    }
API Reference

Questions

YouTube and Wiro FAQ

What can a YouTube AI agent do on my channel?

It uploads videos and Shorts from a file link with their title, description, tags, category, audience setting and release time, and edits those details on videos already online. It creates playlists and adds videos to them, sets custom thumbnails, lists and searches your uploads, and reads YouTube Analytics: daily views and watch time, traffic sources, countries, devices, demographics and audience retention. It works only on the channels you pick after signing in.

How do I connect YouTube to an AI agent?

In Google Cloud Console, enable the YouTube Data API v3 and the YouTube Analytics API, add the youtube, youtube.readonly and yt-analytics.readonly scopes, and create an OAuth client of the Web application type with the redirect address from the Connect dialog. Add YouTube with that client ID and secret from the agent's Connectors tab, or by asking the agent in Chat, then sign in with the Google account that manages the channel and pick the channels the agent may use.

Why does a video uploaded through the agent stay private?

Google keeps videos uploaded through a Cloud project that has not passed YouTube's API audit private, even when public or unlisted was asked for. Uploading the same video again does not change that. Apply for the audit with Google for the Cloud project behind your OAuth client; once it passes, new uploads can be public or unlisted.

Does the agent publish YouTube videos without asking?

By default, reading your videos and reports needs no yes. An upload, an edit, a new thumbnail or a playlist change shows up in Chat for your approval first, and choosing Always Allow on such a card lets that action run without asking from then on. Scheduled Tasks are allowed those actions until you set them to Ask or Block. Uploads notify your subscribers unless you ask for a quiet upload.

What YouTube API limits apply?

Google gives each Cloud project a daily YouTube quota, 10,000 units by default, shared by every call your app makes. A search of your videos costs 100 units, so the agent browses your upload list instead where it can. Custom thumbnails need a verified channel and a JPEG or PNG under 2 MB. Analytics for the last two or three days may not be complete yet.

Where are my Google sign-in and tokens kept?

Tokens are stored encrypted and renewed automatically, and the AI model never handles them. The client ID and secret are only needed for the Google sign-in, and the agent never holds them. While your Google app is in Testing, Google ends the sign-in after seven days, so set the app to In production in Google Auth Platform to keep YouTube connected.

What does it cost to automate YouTube uploads and reports?

There is no extra charge for Connectors on any agent plan. The YouTube APIs run within the quota Google gives your Cloud project, and a larger quota is something you request from Google.

Is there a YouTube MCP server to install?

No server is needed on your side. Uploads, edits and reports go from the agent to YouTube's APIs through a connector built into the agent, which offers them as tools the way an MCP server would and uses the access you granted through your own Google app.

Access

Revoke YouTube access

Remove the app's access in your YouTube account's connected apps settings, then disconnect it here.

Related connectors

More social connectors for your Wiro agent

  • Bluesky logoBlueskyRead profiles and post to Bluesky with links, mentions, hashtags and images.
  • Facebook Pages logoFacebook PagesPublish posts, photos and videos to your Facebook Pages and read their engagement.
  • Instagram logoInstagramPublish photos, carousels, Reels and Stories to your Instagram professional accounts.
  • LinkedIn logoLinkedInPublish posts to a LinkedIn organization page.
  • Mastodon logoMastodon logoMastodonRead your timeline and post statuses on your Mastodon instance.
  • Pinterest logoPinterest logoPinterestCreate pins on your boards and read their performance.

Put YouTube to work with Wiro

Deploy an agent and connect YouTube from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.

Build an AgentAll Connectors

Discover, test, and run AI models, build workflows and agents with one unified API.

All systems operational
WiroModelsAgentsMCP ServerLLM GatewayBrowser ExtensionIntegrationsConnectorsPricingAboutBlogCareersContactPartnerChangelogStatusFAQ
CategoriesText to ImageImage to ImageImage EditingImage to TextText to VideoImage to VideoVideo to VideoText to SpeechSpeech to TextSpeech to SpeechVoice CloneRealtime ConversationMusic GenerationLLMUtilities
ModelsNano Banana 2GPT Image 2.5Seedream V5 ProSeedance 2.5Veo 3.1Kling V3FLUX 3FLUX.2 ProWan 3.0 PrimeGrok Imagine 1.5
PartnersGoogleOpenAIByteDanceBlack Forest LabsKling AIQwenAlibabaxAIMiniMaxElevenLabs
Getting StartedWiro ModelsWiro EffectsIntroductionAuthenticationProjectsCode ExamplesWiro MCP ServerSelf-Hosted MCPn8n IntegrationLLMs.txt
API ReferenceModelsRun a ModelModel ParametersTasksLLM & Chat StreamingWebSocketRealtime VoiceFiles
© 2026 Wiro AI. All rights reserved.
PrivacyTermsData Deletion