Back to Catalog

Automate client invoicing & payments with Stripe, Google Sheets, Drive and Gmail

Rohit DabraRohit Dabra
225 views
2/3/2026
Official Page

Google Sheets โ†’ Stripe Payment Automation Workflow

๐Ÿ“Œ Overview

This workflow automates the end-to-end process of generating and sending client payment links using Google Sheets and Stripe.

Whenever a new or updated entry is added to the Google Sheet, the workflow will:

  1. Fetch client and invoice details.
  2. Create a Stripe Product and Price.
  3. Generate a Stripe Payment Link.
  4. Store the link back in the Google Sheet.
  5. Upload a copy of the invoice to Google Drive.
  6. Send a professional, formatted email with the payment link to the client using Gmail.

๐Ÿ”— Demo Video: Watch on YouTube


โšก๏ธ Workflow Steps

  1. Trigger โ€“ The workflow is triggered on any update in the Google Sheet.
  2. Filter โ€“ Ensures only relevant rows (e.g., PENDING invoices) proceed.
  3. Stripe Automation
    • Create Stripe Product
    • Create Stripe Price
    • Generate Stripe Payment Link
  4. Google Drive โ€“ Store invoice files (if required).
  5. Google Sheets โ€“ Update the sheet with the generated Stripe Payment Link and timestamp.
  6. Gmail โ€“ Send a client-facing email with the invoice details and payment link.

๐Ÿ›  Setup Guide

Prerequisites

  • n8n account
  • Google Sheets & Google Drive credentials
  • Gmail API credentials
  • Stripe API Key

Steps

  1. Clone/Import Workflow

    • Import the workflow JSON file into your n8n instance.
  2. Configure Google Sheets

    • Create a Google Sheet with columns:
      • Order ID, Client Name, Client Email, Items Description, Due Date, Amount, Currency, Invoice Status, Invoice Link, Stripe Payment Link, Last Updated
    • Connect your Google Sheets node to this sheet.
  3. Set Up Stripe

    • Obtain your Stripe Secret Key from Stripe Dashboard.
    • Add it in the Stripe nodes for Product, Price, and Payment Link creation.
  4. Google Drive

    • Configure to store invoice backups (optional).
  5. Gmail

    • Authorize Gmail and set up the Send Email node.
    • Customize the email template with client details and the Stripe link.
  6. Test the Workflow

    • Add a sample row in Google Sheets.
    • Run the workflow manually or update the sheet to trigger automatically.
    • Verify that the Stripe link is created, updated in the sheet, and emailed to the client.

โœ… Now your workflow is ready to automatically manage client invoices and payments with Stripe + Google Sheets + Gmail + Google Drive.

Automate Client Invoicing & Payments with Stripe, Google Sheets, Drive, and Gmail

This n8n workflow automates the process of client invoicing and payment management by integrating Google Sheets, Google Drive, Gmail, and an HTTP Request (likely for a payment gateway like Stripe, though not explicitly named in the JSON). It streamlines the entire billing cycle from client data entry to invoice generation and notification.

What it does

This workflow simplifies and automates several key steps in your client invoicing process:

  1. Triggers on Google Sheet Updates: It listens for new or updated rows in a specified Google Sheet, acting as the central database for client and invoice information.
  2. Filters Data: It likely filters the incoming data based on certain criteria (e.g., new client, invoice status, payment due) to determine the subsequent actions.
  3. Interacts with Google Drive: It can create, update, or retrieve files in Google Drive, potentially for storing invoice PDFs or client contracts.
  4. Sends HTTP Requests: It makes HTTP requests, which are typically used to interact with external APIs. In an invoicing context, this would most likely be for a payment gateway (like Stripe) to create invoices, process payments, or retrieve payment status.
  5. Sends Email Notifications: It utilizes Gmail to send automated emails, such as invoice notifications, payment receipts, or overdue payment reminders to clients.
  6. Updates Google Sheets: It can update the Google Sheet with new information, such as invoice IDs, payment status, or links to generated documents.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Account: An active n8n instance (cloud or self-hosted).
  • Google Account: With access to Google Sheets, Google Drive, and Gmail.
    • Google Sheets Credential: Configured in n8n for accessing your client/invoice spreadsheet.
    • Google Drive Credential: Configured in n8n for document storage.
    • Gmail Credential: Configured in n8n for sending emails.
  • Payment Gateway Account: An account with a payment service provider (e.g., Stripe, PayPal) that offers an API.
    • API Key/Credentials: For the HTTP Request node to interact with the payment gateway's API.

Setup/Usage

  1. Import the Workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Set up your Google Sheets, Google Drive, and Gmail credentials within n8n.
    • Configure the HTTP Request node with the necessary API keys and endpoints for your chosen payment gateway.
  3. Specify Google Sheet: In the "Google Sheets Trigger" node, select the spreadsheet and worksheet that contains your client and invoicing data. Configure the trigger to listen for new rows or updates as needed.
  4. Adjust Filter Logic: Customize the "Filter" node to match your specific business logic for processing invoices (e.g., only process rows with "Status" as "Pending Invoice").
  5. Customize Google Drive Operations: Configure the "Google Drive" node to create folders, upload invoice PDFs, or store other relevant documents.
  6. Configure HTTP Request: Update the "HTTP Request" node with the correct API calls and data mapping to interact with your payment gateway (e.g., creating a new invoice, fetching payment details).
  7. Personalize Gmail: Customize the "Gmail" node to send appropriate email content, including dynamic data from your Google Sheet and payment gateway.
  8. Activate the Workflow: Once configured, activate the workflow to start automating your invoicing and payment processes.

Related Templates

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitorโ€™s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger โ€” Manually start the workflow or schedule it to run periodically. Input Setup โ€” Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) โ€” Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring โ€” Clean and convert GPT output into JSON format. Data Storage (Google Sheets) โ€” Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the โ€œSet Input Fieldsโ€ node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors โ†’ Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection โ†’ Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report โ†’ Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization โ†’ Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs โ†’ Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting Itโ€™s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chatโ€”turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. ๐Ÿ“‹ What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing ๐Ÿ”ง Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation ๐Ÿ”‘ Required Credentials OpenAI API Setup Go to platform.openai.com โ†’ API keys (sidebar) Click "Create new secret key" โ†’ Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai โ†’ Dashboard โ†’ API Keys Generate a new API key โ†’ Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) โš™๏ธ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflowโ€”chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" ๐ŸŽฏ Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration โš ๏ธ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601

Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review

This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.

gotoHumanBy gotoHuman
353