Skip to main content

Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini

Workflow preview

Workflow preview
100%
Automated post-purchase product delivery & upsell with Jotform,  GDrive, Gemini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Explanation video: https://youtu.be/QjbA tFYCFE?si= C36KlSgABzteoB Workflow Overview This automation handles what happens right after a customer m...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.jotformtrigger, n8n-nodes-base.googledrive, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.gmail, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by iamvaar.

Original n8n.io source

1.1 Workflow description

Title
Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini
Workflow name
Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini

Explanation video: https://youtu.be/QjbA-tFYCFE?si=--C36KlSgABzteoB

Workflow Overview

This automation handles what happens right after a customer makes a purchase on your online form. It automatically shares a document with them, records the sale in a spreadsheet, uses AI to write a personalized thank-you email, and then sends it to their inbox.

Prerequisites

Before you can use this workflow, you'll need to have a few things set up and ready:

1. A Configured JotForm You need an active JotForm account with a form that is set up to sell a product. The form must include:

  • Required Fields: Full Name, Email Address, and Phone Number.
  • Product List: An element where customers can select and pay for a product.
  • Active Payment Integration: A payment gateway (like Stripe or PayPal) must be connected and activated so the form can process live transactions.

2. A Google Sheet Create a blank Google Sheet to log your sales. It should have columns (headers) prepared to receive the customer data, such as:

  • name
  • email
  • phone
  • products
  • amount of sale

3. A Digital Product in Google Drive The digital product you want to deliver to your customers (e.g., a PDF guide, a document, a link to a video) must be uploaded to your Google Drive. You'll need this file ready to be selected within the workflow.


Here is the node by node explanation:

1. JotForm Trigger: "Wait for a New Order"

  • Node: JotForm Trigger

This is the starting point. The workflow is constantly watching a specific JotForm you've set up. As soon as a customer fills out the form and submits their purchase, this node catches their information and kicks off the automation.

It passes along all the customer's details—like their name, email, and what they bought—to the next step.


2. Google Drive: "Share a File"

  • Node: Share file

Once an order comes in, this step automatically shares a specific file from your Google Drive with the customer. It takes the customer's email address from the form and instantly gives them "editor" access to a pre-selected document, like a welcome guide or a digital product.


3. Google Sheets: "Log the Sale"

  • Node: Append or update row in sheet

Next, the workflow logs the purchase details in a Google Sheet. It neatly organizes the customer's name, email, and order information into a new row. This keeps your sales records automatically updated.

If a customer with the same email buys again, the node is smart enough to just update their existing row instead of creating a duplicate entry.


4. AI Agent: "Write a Thank-You Email"

  • Node: AI Agent (using Google Gemini)

This is the creative part of the workflow. This node acts like an AI assistant that writes a brand new, personalized thank-you email for each customer. It follows a specific set of instructions (a prompt) you've given it, which includes:

  • Greeting the customer by their name.
  • Mentioning the specific product they just purchased.
  • Inviting them to join an exclusive online community (like Discord) with a clickable link.
  • Signing off with your company's name.

The AI is specially configured to generate a ready-to-send email, complete with a subject line and a professionally formatted HTML body.


5. Gmail: "Send the Email"

  • Node: Send a message

This is the final step. The workflow takes the personalized email written by the AI and sends it directly to the customer from your Gmail account. It automatically fills in the "To" field with the customer's email, uses the AI-generated subject line, and adds the custom message body.

After this step, the automation is complete for that customer.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - JotForm Trigger

Type / Role
n8n-nodes-base.jotFormTrigger - jotFormTrigger
Config choices
Version 1

Block 2 - Share file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - Append or update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 5 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 6 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

3. Summary Table

Workflow Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini
Complexity intermediate
Nodes 8
Categories Lead Nurturing, AI Chatbot
Author iamvaar
Published 13 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9582/9582.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini do?

Explanation video: https://youtu.be/QjbA tFYCFE?si= C36KlSgABzteoB Workflow Overview This automation handles what happens right after a customer m...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, AI Chatbot use case.