Code Integration

Custom code

2 operations availableDeveloper Tools

The Serverless Function node lets you run your own code as a step in a workflow. It is the place for custom logic that no off-the-shelf node covers: reshaping data, doing calculations, branching on complex conditions, or transforming one node's output into the format the next node expects. You write the function, name its inputs, and the workflow runs it on demand.

What you can automate with Code

Pick one to start building it.

Code Operations

Templates using Code

Faceless Videos Generation Workflow

+62

## Full Description Turn any video idea into a published short-form video in minutes, completely automated and fully faceless. This workflow manages the entire pipeline end-to-end: it pulls ideas from a Google Sheet, generates a cinematic first-frame image and an 8-second vertical video using AI, allows you to approve the output, and then publishes it across TikTok, Instagram Reels, and YouTube Shorts simultaneously. It can run automatically every day at 7 AM or be triggered manually from a built-in dashboard. [@youtube](https://www.youtube.com/watch?v=XBjd7tV4QO8) --- ## What It Does - Reads queued video ideas from your Google Sheet (topic + scene environment) - Generates a scene caption, Veo prompt, and social copy using GPT-4o-mini - Creates a cinematic vertical first-frame image using Gemini - Allows approval or regeneration of the image before video creation - Animates the approved image into an 8-second vertical video using Veo 3 - Writes a high-conversion caption with hook and hashtags - Publishes content to TikTok, Instagram Reels, and/or YouTube Shorts - Updates your Google Sheet with status and generated image - Logs each run and optionally sends a Slack notification --- ## Built-in Dashboard A centralized interface to manage your entire content queue: - Add or remove video ideas - View upcoming scheduled content - Trigger manual runs instantly - Access and review pending approvals --- ## Who This Is For - Creators building faceless content channels with consistent posting schedules - Entrepreneurs running niche content pages (POV, productivity, daily life, etc.) - Marketers who need daily short-form content without a production team - Anyone who wants to publish regularly without using a video editor --- ## Setup Setup takes approximately 2 minutes: 1. Connect Google Sheets (required) 2. Optionally connect: - TikTok - Instagram - YouTube - Slack The workflow automatically creates and pre-populates your spreadsheet with an example row so you can get started immediately. --- ## Nodes Used - Google Sheets - Gemini (image generation) - Veo 3 (video generation) - GPT-4o-mini (captions and copy) - TikTok - Instagram - YouTube - Slack

2751268 nodes

Twitter/X Community Monitor with AI Analysis & Auto-Reply Drafts

+20

Monitor Twitter/X for high-quality tweets matching your search criteria, analyze them with AI, and get draft replies ready for approval — all logged to a Google Sheet. ## What it does Automatically searches Twitter/X on a schedule, uses AI to filter for quality and relevance, drafts thoughtful replies, and surfaces the best tweets in an approval feed for human review before posting. ## Pipeline 1. **Fetch Tweets** — Runs a Twitter/X search query on a configurable schedule (default: every hour) using the Twitter API. Supports full X search syntax: hashtags, from:user, "exact phrases", OR operators, and -exclusions. 2. **AI Quality Analysis** — Each tweet is analyzed by an AI agent that scores it on content quality, engagement metrics, and relevance to your monitoring criteria. Tweets are categorized (insight, news, discussion, resource, question) and assigned a priority level. 3. **Smart Filtering** — Only tweets flagged as relevant pass through. Low-quality, spam, and off-topic content is automatically filtered out and logged. 4. **Reply Drafting** — For relevant tweets, an AI agent drafts a concise, authentic reply (under 280 characters) matching your configured reply style. No promotional or spammy content. 5. **Human Approval** — Drafted replies appear in the Approval Feed where you can review the tweet, AI summary, and proposed reply. Approve to post and log, or reject to skip. 6. **Google Sheets Logging** — Approved tweets are logged to a tracking spreadsheet with author, tweet text, link, priority, category, AI summary, and the drafted reply. ## Setup [@youtube](https://youtu.be/4Bf1m2W0QVs) A one-time setup flow connects your Twitter/X account (OAuth) and Google account, then creates a dedicated tracking spreadsheet with column headers. ## Interface A custom dark-themed configuration UI lets you: - Connect your X account - Set your search query with full X search syntax - Define quality criteria for the AI analyzer - Customize the reply tone and style - Launch monitoring with one click ## Input - **Twitter/X search query** — Any valid X search syntax - **Quality criteria** — Natural language description of what makes a tweet worth reviewing - **Reply style** — Instructions for how drafted replies should sound ## Output - **Approval Feed items** — High-quality tweets with AI analysis and draft replies - **Google Sheet** — Running log of all approved tweets with metadata - **Filtered logs** — Record of skipped tweets for transparency

2381326 nodes

Smart Invoice Collection System

+31

# Intelligent Invoice Collection System Automate your accounts receivable and stop chasing payments manually. This workflow tracks invoices from multiple sources (Google Sheets, Airtable, HubSpot, or Notion), identifies overdue invoices, and sends personalized, AI-written follow-up emails at the right escalation level — all hands-off. Here is a demo video to guide you through this workflow: [@youtube](https://youtu.be/iN3-sBSbVx0) --- ## 🚀 What it does - **Multi-source invoice tracking** Pull from Google Sheets (auto-creates template), Airtable, HubSpot Deals, or Notion - **Smart email deduplication** Checks Gmail history; won't spam if a follow-up went out in the last 7 days - **AI-powered follow-ups** Generates professional, tone-matched emails *(polite reminder → firm → urgent)* based on days overdue and previous attempts - **Real-time dashboard** View total overdue amount, invoice status, urgency levels, and follow-up history - **Slack alerts** Get notified each time a follow-up email is sent - **Scheduled automation** Runs every weekday morning (9 AM UTC) or can be triggered manually anytime --- ## ⚙️ Setup (5 minutes) 1. Connect your invoice source *(Google Sheets recommended)* 2. Connect Gmail *(for searching history + sending emails)* 3. Set overdue threshold *(default: 7 days)* 4. Optionally add Airtable / HubSpot / Notion as alternative sources 5. Optionally enable Slack notifications --- ## 🎯 Who is it for? Perfect for **freelancers**, **agencies**, and **small teams** tired of manual collection follow-ups.

205137 nodes

Intelligent Email Organization with AI-powered Content Classification for Gmail

+23

# Gmail AI Classifier — Automatically Organize Your Inbox with AI Connect your Gmail account and let AI handle the noise. Each time the workflow runs, it fetches unread emails, performs two parallel AI passes on each message—a fast label classifier and a deeper semantic analyzer—and takes intelligent actions automatically. Here is the video guide for this template. [@youtube](https://youtu.be/xaT-RiMCBkA) ## What It Does Per Email - Applies Gmail category labels (Promotions, Social, Updates, Starred, etc.) - Moves confirmed spam to Trash - Marks urgent and work-related emails as Important - Sends a Slack alert for high-priority emails (or logs them if Slack is not connected) - Creates a Gmail draft reply for emails that require a response ## Setup Setup takes under 2 minutes. A guided flow helps you: - Connect your Gmail account - Define your email search query - Choose how many emails to process per run - Optionally connect Slack for notifications All configurations are stored as workflow variables. ## Dashboard Includes a live dashboard. Open the **Interface** tab to view: - Email subject and sender - AI-generated summary - Category badge - Applied labels - Priority indicator Results update in real time as each email is processed. ## Usage - Run manually anytime to clean your inbox - Or attach a cron trigger for automated, scheduled processing

159329 nodes

Unified Email Processing Workflow

+30

# Unified Email Intelligence Hub Automate your inbox with AI-powered classification, prioritization, and draft reply generation. # Workflow Setup Guide [@youtube](https://youtu.be/q6SvPd-fdVg) ## Overview This workflow connects your Gmail and Outlook accounts to automatically process, analyze, and organize every incoming email. Using AI, it classifies emails by type and urgency, generates professional draft replies, applies labels, and alerts you via Slack when attention is needed — all without ever sending anything automatically. **Core philosophy:** Human oversight at every step. All AI-generated replies become drafts for you to review before sending. --- ## What This Workflow Does | Step | Action | | ------------ | ----------------------------------------------------------------------------------------------------------------------------------- | | 1. Fetch | Retrieves up to 20 unread emails from Gmail and 20 from Outlook per run | | 2. Normalize | Combines both sources into a unified email format | | 3. Analyze | AI classifies each email (urgent / important / reply_needed / personal / newsletter / automated / spam) and assigns priority (1–10) | | 4. Summarize | Generates a 2–3 sentence AI summary of each email's content | | 5. Draft | Creates draft replies in Gmail or Outlook for emails marked as `reply_needed` | | 6. Label | Applies Gmail labels (IMPORTANT, STARRED, CATEGORY_PROMOTIONS, etc.) | | 7. Alert | Posts to Slack when priority ≥ 7 or marked urgent | | 8. Log | Records every processed email to Google Sheets | | 9. Visualize | Displays real-time analytics on an interactive dashboard | --- ## Features ### Intelligent Classification * 7 categories: urgent, important, reply_needed, personal, newsletter, automated, spam * Priority scoring: 1–10 scale based on content urgency * AI summaries: Every email gets a concise 2–3 sentence summary ### Draft-Only Mode (Safety First) * Replies are saved as drafts only — never auto-sent * Review every AI-generated response before sending * Full audit trail via Google Sheets ### Smart Notifications * Slack alerts for high-priority emails (priority ≥ 7) * Configurable threshold ### Interactive Dashboard * Real-time stats: total processed, urgent count, drafts created, average priority * Email source breakdown (Gmail vs Outlook) * Classification analytics * Searchable email list with filters * Draft preview system * Integration status visibility ### Google Sheets Logging Each processed email is logged with: * email_id, timestamp, source * sender details, subject, date * classification, priority * summary, actions, suggested_reply * labels --- ## Integrations | Service | Operations Used | | ------------- | ------------------------------------------ | | Gmail | Read inbox, create drafts, apply labels | | Outlook | Read inbox, create drafts | | Google Sheets | Create spreadsheet, append rows, read data | | Slack | Post messages to channel | | OpenRouter | GPT-4o Mini for AI analysis | --- ## Setup Requirements * Connect Gmail (OAuth) * Connect Outlook (OAuth) * Connect Slack (for alerts) * Connect Google Sheets (for logging) The workflow includes a setup wizard to guide all integrations. --- ## Output Data Structure ```json { "email_id": "abc123", "source": "gmail", "from": "John Doe", "from_email": "john@example.com", "subject": "Meeting request", "date": "2026-04-27T10:00:00Z", "summary": "John is requesting a meeting to discuss the Q2 roadmap...", "classification": "important", "priority": 7, "actions": ["reply", "label"], "suggested_reply": "Hi John, I'd be happy to meet to discuss...", "labels": ["IMPORTANT"], "should_draft": true, "should_label": true, "should_notify": true, "processed_at": "2026-04-27T10:05:00Z" } ``` --- ## Use Cases * Inbox Zero: Automatically process and categorize emails * High-priority alerts: Never miss urgent emails * Response drafting: AI-generated replies ready for review * Multi-account management: Unified Gmail + Outlook view * Email analytics: Track trends, priorities, and volume --- ## Safety Guarantees | Guarantee | Description | | ----------------- | ---------------------------------- | | Zero Auto-Send | Every reply is a draft | | Full Transparency | All actions are logged and visible | | Human-in-the-Loop | Review → Edit → Send | --- ## Technical Notes * Processing mode: Sequential (one email at a time) * Batch size: Up to 20 unread emails per service per run * AI model: GPT-4o Mini via OpenRouter * Trigger: Manual or scheduled (cron) * Dashboard refresh: Every 25 seconds

148636 nodes

Youtube Thumbnail Generator

+5

## Description Generate professional YouTube thumbnails in seconds using AI image models, no design skills needed. Upload your face photo and reference images, describe your scene, pick a style preset (Gaming, Tech/Tutorial, Vlog, News, Fitness, or fully custom), add optional title text, and hit Generate. The AI produces a 16:9 thumbnail ready to download. ## What’s Included - Custom web interface with live preview and generation history - Face photo upload — AI places you in the generated scene - Reference image support for style guidance - 6 style presets + custom style input - Optional title text overlay in the scene prompt - Download button on every generated thumbnail - Local history of up to 20 past generations ## Powered By Google Gemini image models (via OpenRouter), you can switch providers directly from the agent node configuration. ## How to Use 1. Open the Interface tab 2. Optionally upload a face photo or reference images 3. Describe your scene (e.g. "shocked expression, pointing at camera, neon gaming setup") 4. Choose a style and add title text 5. Click Generate — your thumbnail appears in ~20–40 seconds 6. Download or generate variations

140111 nodes

Frequently asked questions

Ready to build with Code?

Start building workflows in minutes with our visual builder. No code required.

Book Demo
Browse all integrations