🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

How can we help you?

Find answers, tutorials, and guides to get the most out of Gravity Extra add-ons. (DEV Preview)

Gravity Forms Whatsapp Integration Premium Add-on

Last updated: October 6, 2026 • Author: admin
Table of Contents

1. Overview & System Requirements

The Gravity Forms WhatsApp Integration Premium Add-on connects your WordPress forms directly to the WhatsApp Business Cloud API. With open rates exceeding 98% and average response times under 90 seconds, WhatsApp is the world’s most effective messaging channel for business-to-consumer communication. Relying exclusively on email notifications for urgent customer inquiries or order confirmations frequently leads to missed opportunities and spam filter issues.

With this integration, every form submission on your website can trigger real-time, automated WhatsApp notifications directly to the submitter’s mobile phone or your internal team’s dispatch numbers. Utilizing official Meta pre-approved template messages, you can dynamically insert customer names, booking dates, appointment times, order numbers, and tracking links into personalized messages. Operating directly over Meta’s Graph API infrastructure, notifications arrive within seconds with enterprise reliability.

Gravity Forms WhatsApp Business Integration Architecture
Figure 1: Automated Gravity Forms to WhatsApp Cloud API Message Delivery Architecture

System Environment Prerequisites

Ensure your infrastructure satisfies these baseline prerequisites:

  • WordPress Environment: WordPress 5.8 or higher.
  • Gravity Forms Core: Gravity Forms 2.5 or higher installed and active.
  • PHP Version: PHP 7.4 through PHP 8.3 with cURL and JSON extensions enabled.
  • Meta Developer Account: Verified Meta Business Manager account with WhatsApp Business Cloud API enabled.
  • API Credentials: WhatsApp Business Account ID (WABA ID), Phone Number ID, and Permanent System User Access Token.

2. Authentication & Meta Cloud API Credentials Setup

The integration communicates with Meta’s official WhatsApp Business Cloud API via Graph API endpoints:

Obtaining Meta WhatsApp API Credentials

  1. Log in to the Meta for Developers Portal at developers.facebook.com.
  2. Navigate to My Apps and select your WhatsApp Business App.
  3. Under the left sidebar, click WhatsApp → API Setup.
  4. Copy your Phone Number ID and WhatsApp Business Account ID.
  5. In Business Manager Settings, navigate to System Users, generate a Permanent Access Token with whatsapp_business_messaging and whatsapp_business_management scopes, and copy the token string.

Configuring in WordPress Dashboard

  1. In WordPress, navigate to Forms → Settings → WhatsApp.
  2. Enter your Phone Number ID, WhatsApp Business Account ID, and paste your Permanent Access Token.
  3. Click Test Connection. The system verifies API connectivity and fetches your registered WhatsApp templates. A green success message will confirm validation.
  4. Click Save Settings.

Meta Developer Portal App Setup
Figure 1: Creating a WhatsApp Business App in Meta for Developers.
Meta WhatsApp API Credentials
Figure 2: Generating permanent System User Token and locating Phone Number ID.
Gravity Forms WhatsApp Settings Menu
Figure 3: Navigating to Forms → Settings → WhatsApp.
WhatsApp Cloud API Configuration
Figure 4: Entering Token, Phone Number ID, and WABA Account ID.

3. Feed Configuration & Template Mapping

Feeds allow you to configure custom WhatsApp outbound notifications for each form across your site:

Recipient Phone & Template Selection

  • Recipient Phone Number: Map the user’s phone field or enter a static administrative number. Numbers must include the international country code (e.g. +1 for USA, +44 for UK).
  • Template Selection: Choose from your Meta pre-approved WhatsApp message templates (e.g. booking_confirmation, lead_notification, order_alert).
  • Language Code: Select the template language (e.g. en_US, es_ES, fr_FR).

Dynamic Variable Parameter Mapping

Meta templates use positional parameters (such as {1}, {2}). The add-on features an intuitive variable mapper:

  • Variable Mapping Table: Map parameter {1} to Customer First Name, {2} to Appointment Date, and {3} to Service Package.
  • Media Headers: If your template includes an image or document header, map a form file upload field or provide an image URL.
  • Conditional Logic: Enable conditional rules so WhatsApp messages only dispatch when users explicitly opt-in or select WhatsApp as their preferred contact method.

Meta WhatsApp Manager Templates
Figure 5: Configuring pre-approved message templates in WhatsApp Manager.
WhatsApp Form Feeds List
Figure 6: Managing WhatsApp notification feeds.
WhatsApp Template and Field Mapping
Figure 7: Selecting approved template and mapping phone numbers.
WhatsApp Variable Parameter Mapping
Figure 8: Mapping dynamic form merge tags to template variables.
WhatsApp Conditional Logic and Opt-in Gate
Figure 9: Enforcing opt-in compliance via conditional logic.

4. Advanced Workflows & Customer Engagement

Deploying WhatsApp with Gravity Forms transforms customer responsiveness:

  • Immediate Booking Confirmations: Medical clinics, salons, and consultants provide instant confirmation with appointment details and Google Maps directions via WhatsApp seconds after booking.
  • VIP Lead Dispatch: Alert sales representatives on their mobile WhatsApp within seconds of high-value prospects submitting an enterprise RFP.
  • Interactive Quick Reply Buttons: Meta templates featuring Call-to-Action or Quick Reply buttons allow customers to confirm attendance with one tap directly in WhatsApp.
  • Audit Trail in WordPress: Every submitted entry stores the returned Meta Message ID and delivery status inside the Gravity Forms Entry Notes sidebar.

5. Troubleshooting & Diagnostic Error Matrix

When WhatsApp message delivery encounters issues, consult the following diagnostic matrix:

Error Code / Status Root Cause Exact Technical Resolution
Error 190 Access token has expired or is invalid. Generate a permanent system user access token in Meta Business Manager settings.
Error 100 Template variable parameter count mismatch or invalid language code. Verify that all template variables ({1}, {2}) have mapped form fields in the feed.
Error 131026 Recipient phone number is not registered on WhatsApp or format is invalid. Ensure phone input enforces international E.164 format with country prefix.
Error 131047 Re-engagement window expired (freeform messages require template format). Always use approved Meta template messages for business-initiated notifications.

6. Developer Extensibility & Filter Hooks

Developers can programmatically modify WhatsApp message payloads or execute custom actions upon successful transmission:




Filter WhatsApp Message Payload

PHP

/**
 * Filter: gform_whatsapp_message_payload
 * Purpose: Dynamically filter WhatsApp message payload prior to sending to Meta Cloud API.
 * 
 * @param array $payload The formatted API request body destined for /messages.
 * @param array $feed    The Gravity Forms WhatsApp feed settings.
 * @param array $entry   The submitted Gravity Forms entry object.
 * @param array $form    The active form object.
 * @return array Modified message payload.
 */
add_filter( 'gform_whatsapp_message_payload', function( $payload, $feed, $entry, $form ) {
    // Sanitize phone number to strictly digits
    if ( ! empty( $payload['to'] ) ) {
        $payload['to'] = preg_replace( '/[^0-9]/', '', $payload['to'] );
    }

    return $payload;
}, 10, 4 );



Post Message Send Action Hook

PHP

/**
 * Action: gform_whatsapp_post_message_send
 * Purpose: Record returned Meta WhatsApp Message ID into entry metadata.
 * 
 * @param string $message_id The created WhatsApp Message ID.
 * @param array  $entry      The active Gravity Forms entry.
 * @param array  $form       The form object.
 */
add_action( 'gform_whatsapp_post_message_send', function( $message_id, $entry, $form ) {
    if ( ! empty( $message_id ) ) {
        gform_update_meta( $entry['id'], '_whatsapp_message_id', sanitize_text_field( $message_id ) );
        GFFormsModel::add_note( $entry['id'], 0, 'WhatsApp', 'Message dispatched via WhatsApp. ID: ' . $message_id );
    }
}, 10, 3 );

7. Frequently Asked Questions

Do I need a verified Meta Business Account to use this integration?

For production use, Meta requires a verified business manager account. However, you can test immediately using Meta’s free developer test numbers and sandbox accounts.

Can I send WhatsApp notifications to both the customer and site administrator?

Yes. You can create multiple feeds on the same form—one mapped to the customer’s phone field and another configured with a static admin dispatch number.

Does this add-on require third-party services like Twilio?

No. It connects directly to Meta’s official WhatsApp Business Cloud API, eliminating markups, middleman fees, and third-party data access.

Where can I find the message delivery status in WordPress?

The add-on automatically logs the returned Meta Message ID and HTTP response code directly inside the Gravity Forms Entry Notes sidebar.

Ready to Supercharge Your Workflow?

Connect Gravity Forms directly to WhatsApp Business Cloud API to automate customer notifications, order alerts, and booking updates.

Was this article helpful?

Let us know how we can improve our docs.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr