How to Integrate WordPress with WhatsApp via Exldigital's API
  • May 19, 2025
  • exldigital by exldigital

How to Create WordPress Users via HTTP API Integration with Exldigital for WhatsApp

Integrating external APIs into chatbot workflows can significantly enhance automation and streamline user experiences. In this blog, we’ll walk through how to set up and use HTTP API integration in Exldigital to automatically create WordPress user accounts through WhatsApp.

By connecting WordPress with Exldigital via HTTP API, businesses can automate user registrations, provide instant feedback to users, and deliver a seamless onboarding experience without manual intervention. Let’s dive into the step-by-step process to achieve this integration.

Benefits of Integrating WordPress and Exldigital via API

Before jumping into the technical steps, here are a few key benefits of integrating WordPress user creation with Exldigital via API:

  • Automation: Automate the user registration process, saving time and minimizing human errors.

  • Instant Feedback: Send real-time responses to users after registration.

  • Seamless Workflow: Create a streamlined process for both admins and users by integrating WordPress directly into Exldigital’s chatbot flow.

Step 1: Setting Up the HTTP API in Exldigital

  • Go to your Exldigital dashboard and navigate to the "WhatsApp HTTP API" section.

  • Click "Create" to set up a new API connection.

  • Provide a name for your API connection.

  • Choose the POST method as the action type.

  • Enter the WordPress REST API endpoint for user creation.

Step 2: Setting Up the Headers

  • Use Basic Authentication with an application password from WordPress.

  • Generate an application password in your WordPress admin profile.

  • Encode your WordPress username and password in Base64 format.

  • Add appropriate headers for Content-Type and Authorization in Exldigital.

Step 3: Configuring Body Data for API Request

  • Map user input fields such as username, name, email, password, and roles in Exldigital.

  • You can use static values or dynamically collect them during the WhatsApp conversation.

  • Ensure the data fields are correctly aligned with the required inputs for WordPress.

Step 4: Verifying the API

  • After configuration, click "Verify Connection" in Exldigital.

  • If everything is correct, you’ll receive a confirmation that the API is connected and data is being sent properly.

     

    2-22.png
  • Step 5: Creating the Flow in Exldigital’s Flow Builder

  • Start the Bot Flow:

  • Create a new bot flow and add a trigger, such as a keyword (WPAPITest) that users can type to start the flow.

  • User Input:

  • Add a User Input Flow to collect the user’s information, such as their email address or name. Save this data into custom fields.

  • Text Message:

  • Send a confirmation message to the user, such as:

  • Thanks for your email. We are creating your WordPress account, please wait a moment.

  • Trigger the API Call:

  • Add the HTTP API action in the flow. Map the user input (such as email, username, etc.) to the appropriate fields in the API request body.

  • Send Success Confirmation:

  • After the API call, send a message confirming the account creation:

  • Hi, your WordPress account has been created. Your username is: #WordPressUserId# and your default password is: 123456.

  • Here, WordPressUserId is a custom field inside Exldigital.

     

    3-23.png
  • Step 6: Testing the Flow

  • Once the API is set up, run tests by interacting with your chatbot to see if the user account is being created on WordPress. Ensure that all user input fields are correctly captured and sent to the API.
Share: