Latenode

Automatically generate and send unique Whop promo codes after Kajabi purchases

This template sends a Whop promo code after a Kajabi purchase. Point Kajabi purchase webhooks at a Latenode webhook.

JavaScript reads the buyer email and product, creates a promo through the Whop API, then Gmail sends the code. Connect Gmail. Put the Whop API key in that JavaScript node.

Updated Sep 16, 2026Est. run: 8sEst. cost: $0.0005
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

  • Sends a Whop promo after each Kajabi purchase
  • Takes Kajabi events on a webhook
  • Creates the code through the Whop API in JavaScript
  • Delivers the code with Gmail

How it works

1
Trigger

Kajabi purchase webhook

A webhook receives the Kajabi payload when a purchase completes.

2
Action

Create the Whop promo

JavaScript calls the Whop API to create a unique promo code. Put the Whop API key in that JavaScript node.

3
Action

Email the code

Gmail sends the promo to the buyer email from the Kajabi payload.

Setup guide

1

Create the Latenode webhook

Add a webhook trigger and copy the URL into Kajabi webhook settings for completed purchases.

2

Create the Whop promo

In JavaScript, read email and product from Kajabi, create a promo with the Whop API, and store the Whop API key in that node. Set discount and expiry in that call.

3

Connect Gmail and send

Add a Gmail connection. Send the promo code to the Kajabi buyer email. Send a test purchase and confirm the message arrives.

Requirements

A Kajabi site that can POST purchase-completed webhooks
A Whop API key stored in the JavaScript node
A Gmail account that can send mail

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.