Automate Gmail + YouTube
The inbox most operations still start in. Long-form content worth repurposing everywhere else. Put an agent between them and the hand-off stops being manual: it reads, decides, acts, and shows its work.
Inbox Triage is a ready-made agent built around Gmail; point its last step at YouTube to finish this hand-off.
Automations teams run
These are not field mappings. An agent reads the Gmail side, works out what it means, and only then decides what — if anything — should happen in YouTube.
When a new email arrives in Gmail…
…an agent can pull transcripts and stats in YouTube — after reading the context and deciding it should.
When a label is applied in Gmail…
…an agent can draft descriptions and chapters in YouTube — after reading the context and deciding it should.
When a thread goes unanswered in Gmail…
…an agent can summarise comments in YouTube — after reading the context and deciding it should.
When a video is published in YouTube…
…an agent can send or draft a reply in Gmail — with the reasoning recorded in the run’s receipt.
When a comment arrives in YouTube…
…an agent can apply labels and archive in Gmail — with the reasoning recorded in the run’s receipt.
The Gmail and YouTube hand-off, setup template
Start with the gmail-api node and the youtube-api node. Configure the Gmail source payload, the agent input, and the YouTube operation. The sequential template does not implement conditional writes or approval by itself.
This is a schema-checked starting point, not an end-to-end tested automation. Replace every CONFIGURE_ value, choose the operations you intend, connect credentials and map source outputs into later inputs. An edge orders steps; it does not supply a condition, an approval gate or a field mapping. Add and test those controls explicitly before any write. Cloud APIs and model providers may receive data. Keep the workflow inactive until tested with fixtures.
{
"id": "bb334a5b-1c3b-4e95-ae22-554c2faa4dca",
"name": "Gmail → YouTube",
"nodes": [
{
"id": "009dc779-faca-41f8-aaa9-5d8540506da4",
"text": "Run on a schedule",
"x": 512,
"y": 144,
"isEditing": false,
"type": "trigger-timer",
"icon": "connect",
"category": "trigger",
"isSelected": false,
"parameters": {
"fireOnStart": "No",
"scheduleType": "Interval",
"schedule": "Every 15 Minutes"
},
"description": "Setup template for Timer Trigger. This trigger node fires the workflow at specified intervals or at a specific time. Configure credentials, inputs and output mapping before use.",
"error": null,
"isActive": false,
"output": null,
"outputs": {}
},
{
"id": "74e5675b-7d20-44ad-a1c2-a412586da1ca",
"text": "Read Gmail",
"x": 512,
"y": 336,
"isEditing": false,
"type": "gmail-api",
"icon": "connect",
"category": "action",
"isSelected": false,
"parameters": {
"operation": "Search and Read Emails",
"searchQuery": "CONFIGURE_SEARCHQUERY",
"maxResults": 1
},
"description": "Setup template for Gmail API. A powerful tool to send, reply, read, organize, and manage attachments in Gmail. Configure credentials, inputs and output mapping before use.",
"error": null,
"isActive": false,
"output": null,
"outputs": {}
},
{
"id": "2c070cf8-0591-4997-a94c-e9956818d09e",
"text": "Review source and draft",
"x": 512,
"y": 528,
"isEditing": false,
"type": "agnt-agent",
"icon": "connect",
"category": "action",
"isSelected": false,
"parameters": {
"agentId": "CONFIGURE_AGENTID",
"message": "Read the Gmail item. Decide whether it warrants action in YouTube, and explain why.\nSource input: CONFIGURE_SOURCE_INPUT. Produce a reviewable draft only; do not take external actions."
},
"description": "Setup template for Agent Chat. Chat with an AI agent from your agent library. Select an agent and send messages to interact with it within your workflow. Configure credentials, inputs and output mapping before use.",
"error": null,
"isActive": false,
"output": null,
"outputs": {}
},
{
"id": "9ecc2e67-a710-4b7b-a9eb-89a286d72ad2",
"text": "Configure destination in YouTube",
"x": 512,
"y": 720,
"isEditing": false,
"type": "youtube-api",
"icon": "connect",
"category": "action",
"isSelected": false,
"parameters": {
"action": "ADD_VIDEO_TO_PLAYLIST",
"playlistId": "CONFIGURE_PLAYLISTID"
},
"description": "Setup template for YouTube API. Interact with the YouTube API to manage videos, comments, playlists, and more. Configure credentials, inputs and output mapping before use.",
"error": null,
"isActive": false,
"output": null,
"outputs": {}
}
],
"edges": [
{
"id": "6bafa692-cf7e-4e5a-a999-dc203d226020",
"start": {
"id": "009dc779-faca-41f8-aaa9-5d8540506da4",
"type": "output"
},
"end": {
"id": "74e5675b-7d20-44ad-a1c2-a412586da1ca",
"type": "input"
},
"startX": 800,
"startY": 168,
"endX": 512,
"endY": 360
},
{
"id": "f39e10fe-9014-4190-a7a8-024844cc8384",
"start": {
"id": "74e5675b-7d20-44ad-a1c2-a412586da1ca",
"type": "output"
},
"end": {
"id": "2c070cf8-0591-4997-a94c-e9956818d09e",
"type": "input"
},
"startX": 800,
"startY": 360,
"endX": 512,
"endY": 552
},
{
"id": "86f97fd5-3847-4409-a174-f854f94c2b46",
"start": {
"id": "2c070cf8-0591-4997-a94c-e9956818d09e",
"type": "output"
},
"end": {
"id": "9ecc2e67-a710-4b7b-a9eb-89a286d72ad2",
"type": "input"
},
"startX": 800,
"startY": 552,
"endX": 512,
"endY": 744
}
],
"zoomLevel": 1,
"canvasOffsetX": 0,
"canvasOffsetY": 0,
"isTinyNodeMode": false
}
Configure Gmail API
A powerful tool to send, reply, read, organize, and manage attachments in Gmail.
- operation — The Gmail operation to perform. Current example:
Search and Read Emails. - searchQuery — Optional. Gmail search query (e.g., 'from:user is:unread'). If blank, fetches latest emails. Current example:
CONFIGURE_SEARCHQUERY. - maxResults — Maximum number of emails to return. Current example:
1.
Configure YouTube API
Interact with the YouTube API to manage videos, comments, playlists, and more.
- action — The action to perform on YouTube Current example:
ADD_VIDEO_TO_PLAYLIST. - playlistId — The ID of the playlist Current example:
CONFIGURE_PLAYLISTID.
Install Inbox Triage
Inbox Triage is a working agent built around Gmail. Install it, point its last step at YouTube, and you have this hand-off without building it from an empty canvas.
Runs on your own machine · See what it does
What building this looks like
- Download AGNT Community Core — free and local-first.
- Connect Gmail with one OAuth sign-in and YouTube with one OAuth sign-in; both land in the local vault.
- Start from a marketplace workflow, or drop gmail-api and youtube-api onto the canvas with an agent between them.
- Put an approval gate on anything consequential, then run it — the receipt shows what was read in Gmail and what was written to YouTube.
Gmail and YouTube — common questions
Can I connect Gmail to YouTube without writing code?
No code is required. Add both connections in the vault (Gmail uses one OAuth sign-in, YouTube uses one OAuth sign-in), then either install a marketplace workflow for this pair or drag the two nodes onto the canvas and put an agent between them.
How is this different from a field-mapping Gmail to YouTube automation?
Mapping tools move data; this reasons about it. Rather than copying a field into YouTube, the agent can weigh what arrived from Gmail, classify it against criteria you wrote in prose, draft something new, and act only when it is warranted.
Does my Gmail and YouTube data leave my machine?
Not to us. AGNT runs locally and both sets of credentials are encrypted on your own disk. Outbound traffic goes only to Gmail, YouTube and whichever model you chose — and pointing that at Ollama or LM Studio keeps everything on your hardware.
What does a Gmail and YouTube run leave behind?
A receipt: what was read in Gmail, which tools ran with which arguments, what the agent concluded, and what it wrote to YouTube. Anything consequential can sit behind an approval gate so a person signs off before it happens.