Hotmart
Have every Hotmart purchase, renewal, cancellation, or refund create or complete the contact and trigger your flows.
If you sell your products through Hotmart, it connects in two steps: paste the purchase notification URL from the panel into Hotmart (Tools → Webhook), and paste your hottok here. From that moment on, every Hotmart notification goes into your account.
With each notification, the buyer is searched for among your contacts by their email and phone number. If they already exist, their profile is updated with any missing information; if not, a new contact is created. Purchase details —product, offer, amount, currency, affiliate, status— are saved in contact fields to use in your messages. When someone cancels, the status is set to CANCELLED.
Then you decide what triggers each notification: 'when an approved purchase of this offer arrives, run this flow'. There are rules for approved purchase, completed purchase, late payment, canceled subscription, refund, chargeback, and dispute. The flow you choose in a rule must start with the payment trigger and only runs through its rule: other payments in your account, regardless of the gateway they come from, will not launch it. It receives the same data as the payment trigger (amount, currency, status, email, offer...), so {{payload.amount}} works the same way. The product name goes in {{payload.description}}, and what happened goes in {{payload.evento}} (PURCHASE_APPROVED, SUBSCRIPTION_CANCELLATION...); the 'What this node returns' panel in the trigger lists them all. Your other flows with a payment trigger are notified of every new payment and every status change (approved, refunded, canceled...). The completed purchase, which Hotmart sends days later with the payment already approved, only triggers its rule: this way the 'Payment received' welcome message is not sent twice to the buyer, nor is the sale counted twice in your ads.
What you can do
- Send the welcome message via WhatsApp as soon as someone buys.
- Remind those with late payments to settle them.
- Have a different flow per offer, or one for all of them by leaving the offer blank.
- Use the purchase amount, product, or affiliate within your messages.
- Also react to cancellations, refunds, and chargebacks.
An example
A course with a monthly membership
- Connect Hotmart: paste the URL into Hotmart and its hottok here.
- Add a rule: approved purchase of their offer → welcome flow.
- A student purchases using their email and phone number: their contact is created with the purchase details.
- The flow messages them on WhatsApp with the course link.
- If a payment is late one month, another rule sends them a reminder.
Recommendations
- Ask for the phone number at the Hotmart checkout: without it, there is no WhatsApp to write to.
- Set up rules for late payments and cancellations as well, not just for purchases. That is where you recover money.
- Use the offer code in the rule if you sell multiple products: each with its own welcome.
Watch out for this
- It does not grant or revoke access to your course or product: Hotmart handles that. Here, contacts are created and flows are triggered.
- If your plan has reached its contact limit, the purchase is registered but the new contact is not created.
- If someone buys multiple products at once, Hotmart sends a notification for each one: a rule that applies to any offer can run multiple times.
- If the buyer uses a different email and phone number in Hotmart than the ones you already have, they will be registered as a separate contact.
- Changing the hottok does not affect your rules: they stay as they were.
- A subscription cancellation does not include a transaction or price: it is recorded in your payments with an amount of 0 and in the currency of that person's last payment, and the field integracion_hotmart_transaccion keeps the transaction of that last payment.
- If you disconnect Hotmart, your rules are not deleted: they are saved and their flows are turned off, so they do not run with payments from other gateways. When you reconnect, they return automatically, with their flows turned on, and the card will let you know; if you no longer want them, click 'Discard' and they will be removed and their flows turned off again.
