This guide shows you how to add a WhatsApp Send Text Message action to a Zaplane workflow, so a WhatsApp message is sent automatically whenever your trigger fires. You will first create a Meta app and get your WhatsApp credentials, then connect them to Zaplane and build the workflow.
Step 1: Create a Meta App
Go to Meta for Developers and log in, then click My Apps at the top right.
Step 2: Get Your Access Token and Phone Number ID
Step 3: Create the Connection in Zaplane
Step 4: Create a Workflow
Go to Zaplane > Workflows from your WordPress dashboard, then click Create Workflow to open the workflow editor.
Before adding a WhatsApp action, you need to set up a trigger first. Here is how to do it quickly:
Step 5: Add an Action
Click the + button next to your trigger. In the Add Action panel, choose Apps.
Step 6: Select the WhatsApp App
Find WhatsApp in the app list, select it, and click Continue.
Step 7: Choose the Action Type and Connection
On the Select tab, open the Action Type dropdown and pick what you want WhatsApp to do. In this example we choose Send Text Message. Then open the Select Connection dropdown, choose the WhatsApp connection you created in Step 3, and click Continue.
Step 8: Configure the Action
On the Configure tab, enter the Recipient Phone Number and the Message Body (both are required). Use the If this customer is in the Inbox dropdown to choose between Send only when workflows answer them (avoids double replies) and Always send (order updates and other notifications). Click Continue when you are done.
Step 9: Test the Action
On the Test tab, click Test Action to check that WhatsApp responds as expected, then click Save.
Step 10: Update and Activate the Workflow
Back in the workflow editor, set the workflow status to Active and click Update to publish your changes. You can use Logs to review every run.
Every time your trigger fires, Zaplane now sends a WhatsApp text message automatically.
Done!
WhatsApp is now connected to your workflow, and the Send Text Message action will run automatically whenever your trigger fires.
