tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

When form submission received in Contact Form 7, Create a DNS record in Cloudflare and send WhatsApp Notification

When a Contact Form 7 form is submitted, this workflow creates a DNS record in your Cloudflare account from the submitted values and then sends a WhatsApp template message, so a request form can set up a record and confirm it.

Contact Form 7 Cloudflare WhatsApp Cloud API

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

The When form submission received in Contact Form 7, Create a DNS record in Cloudflare and send WhatsApp Notification workflow on the FlowMattic canvas, with 3 steps across Contact Form 7, Cloudflare, WhatsApp Cloud API
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Some teams take requests for DNS changes through a simple internal form: a new subdomain for a client site, a record for a staging server. Someone then has to log in to Cloudflare and add it by hand. This workflow lets a Contact Form 7 form on your WordPress site create the record directly, then confirms it on WhatsApp.

The Contact Form 7 trigger starts a run for every request sent through the form. FlowMattic passes the answers to Cloudflare, whose Create DNS Record action creates a DNS record for a domain in your account, using the values you map from the form. Then WhatsApp Cloud API Send Template Message sends an approved template to the number you set, with form or Cloudflare details filled in.

Treat this as a staff-only tool. Every submission creates a record, and nothing checks who sent it or what they typed, so a public form would let anyone change your DNS. Put the form on a page only your team can reach, and test it on a domain you can afford to experiment with.

Agency adding client subdomains

A project manager fills in an internal form with the client's subdomain and target. The Cloudflare record is created and the developer gets a WhatsApp template confirming it.

Staging servers for a dev team

Developers request a DNS record for a new staging box through a members-only form, and the request is confirmed on WhatsApp once Cloudflare has the record.

Hosting reseller with simple requests

Staff enter a customer's record request into a back-office form instead of logging in to Cloudflare, and the customer gets a WhatsApp template saying it's done.

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
    Contact Form 7 New Form Submission

    Starts when a team member sends the DNS request form built with Contact Form 7. Each form field becomes available to map into the Cloudflare and WhatsApp steps.

  2. Step 2Action
    Cloudflare Create DNS Record

    Creates a DNS record for a domain in your Cloudflare account. Connect Cloudflare and map the form values that describe the record. Check the result in a test on a spare domain first.

  3. Step 3Action
    WhatsApp Cloud API Send Template Message

    Sends an approved WhatsApp template message through your WhatsApp Cloud API account. Pick the template, set the recipient and map any form or Cloudflare details into its variables.

What you need

  • FlowMatticCore
  • Contact Form 7 PluginPlugin
  • Cloudflare AccountAccount
  • WhatsApp Cloud API AccountAccount

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.

  • Add a Filter after the trigger that continues only when a staff code field matches a value you choose, as an extra guard against stray submissions.
  • Use dropdowns or radio buttons in the Contact Form 7 form for values like the record type, so people can't type something Cloudflare will reject.
  • Map the response from the Cloudflare step into the WhatsApp template, so the confirmation shows what Cloudflare actually created rather than what was requested.

Questions about this workflow

Can anyone who submits the Contact Form 7 form create a Cloudflare DNS record?

Yes, as imported. Every submission runs the Cloudflare step. Keep the form on a page only your team can reach and consider a Filter as a second check.

What happens if Cloudflare rejects the DNS record?

Task History shows Cloudflare's error on that step. The WhatsApp step still runs, so map Cloudflare's response into the message if the confirmation should reflect the result.

Why is the Cloudflare confirmation sent as a WhatsApp template?

Free-form WhatsApp text only reaches someone who wrote to your business number in the past day. An approved template can be sent outside that window, so you need one set up in your WhatsApp Business account.

Can this workflow change or remove an existing Cloudflare record?

No. It only creates records. Cloudflare in FlowMattic also has Update DNS Record and Delete DNS Record actions if you build a separate workflow for those.

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

Ease of use and terrific support from the founder. Tons of integrations and regular updates. The Flowmattic custom app is great especially if you want to integrate apps that aren't available yet inside Flowmattic.

Cliede C.

Flowmattic is a noteworthy option for businesses looking for a self-hosted alternative to Zapier. With its user-friendly interface and a strong set of features, it is a top pick for those in need of a reliable WordPress automation solution.