Latenode

Automatically send personalized Gmail emails for new Trainerize purchases

This template receives a new ABC Trainerize purchase on a Latenode webhook, reads the customer name, email, product, and amount in JavaScript, and sends a Gmail message to that customer. Point Trainerize at the webhook URL. Connect Gmail. Put any Trainerize shared secret in the JavaScript node if you verify the payload.

Updated Sep 16, 2026Est. run: 9sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Emails the customer as soon as Trainerize records a purchase
  • Maps name, product, and amount in JavaScript
  • Sends through Gmail from the account you connect
  • Keeps any Trainerize shared secret in the JavaScript node

How it works

1
Trigger

Receive the purchase

The scenario starts when Trainerize posts a new purchase to your Latenode webhook URL.

2
Logic

Build the message

JavaScript maps customer name, email, product, and amount into the email. Put a Trainerize shared secret in that node if you verify the request.

3
Action

Send with Gmail

Gmail sends the message to the customer email from the payload.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL into Trainerize as the destination for new purchases.

2

Connect Gmail

Add a Gmail connection for the account that should send purchase emails.

3

Map and send

In JavaScript, set the recipient from the customer email, greet them by name, and include product and amount. Put any Trainerize shared secret in that JavaScript node. Send with Gmail. Run a test purchase and confirm the inbox.

Requirements

A Trainerize account that can POST new purchases to a URL
A Latenode webhook URL to paste into Trainerize
A Gmail account Latenode can send from

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.