đź’¬ Automated post-purchase product delivery & upsell with Jotform, GDrive, Gemini

⚡ 223 views · 💬 Lead Nurturing & AI Sales Agents

Description

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:

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:

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”

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”

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”

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”

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:

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”

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.

đź”— Nodes Used

Google Sheets, Google Drive, Jotform Trigger, Gmail, AI Agent, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup