tr Skip to content

When new form submitted in Kadence Forms, create a new coupon in WooCommerce and email it to the user

When someone submits a Kadence Forms form, this workflow creates a WooCommerce coupon and emails the code to the address they entered, so each person gets their own discount.

Kadence Forms WooCommerce Email

3 steps Setup ~5 min Used on 1.7k sites Free to import

The When new form submitted in Kadence Forms, create a new coupon in WooCommerce and email it to the user workflow on the FlowMattic canvas, with 3 steps across Kadence Forms, WooCommerce, Email
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Offering a discount in return for a sign-up only works if the code reaches people quickly. Creating coupons by hand for each entry is slow, and one shared code gets passed around. This workflow creates a coupon in your store for each Kadence Forms submission and sends it to the person who filled in the form.

It starts with the Kadence Forms trigger, which runs on every new submission on your WordPress site. FlowMattic then uses WooCommerce Create Coupon to add a coupon to your store, built from the details you map, including the code. Last, the Email step sends a message to the address from the form, with the new code mapped into it from the coupon step.

WooCommerce needs every coupon code to be unique, so build the code from something that changes with each submission rather than typing a fixed word. Every submission runs all three steps, and Task History shows each run, including any error from WooCommerce or the mail server.

First-order discount for newsletter sign-ups

A Kadence sign-up form on your shop's homepage sends each new subscriber a personal coupon for their first purchase.

Thank-you code after a survey

Customers who complete a feedback form built with Kadence Forms receive a coupon by email as thanks for their answers.

Event or giveaway entries

People who enter a giveaway through your Kadence form each receive a small discount code, so every entrant gets something.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    Kadence Forms New Form Submission

    Runs every time a visitor submits a Kadence Forms form on your site. The submitted fields, including the email address, are passed to the next two steps.

  2. Step 2Action
    WooCommerce Create Coupon

    Adds a fresh WooCommerce coupon for this submission. Map the coupon details, using a code that differs per submission so WooCommerce accepts each one, and check the result in a test run.

  3. Step 3Action
    Email Send Email

    Sends an email through FlowMattic's Email module, using WordPress mail or your SMTP account. Map the form's email address as the recipient and include the coupon code from the previous step in the message.

What you need

  • FlowMatticCore
  • Kadence Forms PluginPlugin
  • WooCommerce PluginPlugin

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Make the email field required in your Kadence form. Without an address, the coupon is still created but the email step has nobody to send it to.
  • Add a Filter after the trigger that continues only when a consent or opt-in field is ticked, so coupons go only to people who agreed to hear from you.
  • Submit a test entry with your own address after import. Then check the coupon in WooCommerce and the email in your inbox before you turn the workflow on for visitors.

Questions about this workflow

Can the same person submit the Kadence form twice and get two coupons?

Yes. Nothing in the template checks for earlier entries, so every submission creates a coupon and sends an email. Add your own check, such as a Filter, if that matters to you.

Do I need WooCommerce on the same site as Kadence Forms?

Yes. Kadence Forms, WooCommerce and FlowMattic all run on your WordPress site, and the coupon is created in that store.

Which mail service sends the WooCommerce coupon email?

FlowMattic's Email module, which sends through WordPress mail or through the SMTP account you set up in the step. Pick whichever your site already uses for outgoing mail.

What happens if WooCommerce rejects the coupon?

The run carries on, and the email step still sends, but without a valid code to include. Task History shows the WooCommerce error, so use a code that changes with every submission to avoid duplicates.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

An excellent replacement to Zapier with unlimited tasks and full control over data. Customer service is fantastic! Have had hands-on support from owner who is ultra helpful and they have even been integrating new SAAS options continuously.

Brad

It's an exceptional product. Works great and extremely valuable. I saved thousands of dollard on Zapier, as Flowmattic makes me able to host the automation myself. And very deeply integrates with the products I need.