Learn how to automate sending a one-time token for WooCommerce purchases using Pabbly Connect. This step-by-step guide covers integration with Google Sheets and Gmail. Master proven automation processes with practical implementation examples and strategic recommendations you can apply immediately in your workflow.
Watch Step By Step Video Tutorial Below
1. Accessing Pabbly Connect for WooCommerce Integration
To begin sending a one-time token for WooCommerce purchases, the first step is to access Pabbly Connect. Go to the Pabbly Connect website and sign in with your existing account or create a new one if you are a new user.
Once logged in, navigate to the applications page where you will find various Pabbly products. Click on the ‘Access Now’ button for Pabbly Connect to reach the dashboard where you can create your workflow.
2. Creating a Workflow in Pabbly Connect
After accessing Pabbly Connect, click on the ‘Create Workflow’ button. In the dialog box that appears, name your workflow something like ‘Send One Time Token for WooCommerce Purchase’ and click on ‘Create’.
- Name your workflow appropriately.
- Select the trigger application as WooCommerce.
- Set the trigger event to ‘New Order Created’.
Once the workflow is created, you will receive a webhook URL that acts as a bridge between WooCommerce and Pabbly Connect. Copy this URL for later use in your WooCommerce settings.
3. Setting Up the WooCommerce Webhook
In this step, you will configure the webhook in WooCommerce using the URL obtained from Pabbly Connect. Log into your WordPress dashboard, navigate to WooCommerce settings, and click on the ‘Advanced’ tab. From there, select the ‘Webhooks’ option.
Click on ‘Add Webhook’ and fill in the details: name it ‘New Order’, set the status to ‘Active’, and choose the ‘Order Created’ topic. Paste the copied webhook URL into the appropriate field and save the webhook.
4. Testing the Webhook Response in Pabbly Connect
With your webhook set up, return to Pabbly Connect and click on ‘Recapture Webhook Response’. This will prompt you to perform a test submission. Go to your WooCommerce store and make a test purchase to trigger the webhook.
After completing the order, check Pabbly Connect for the webhook response. You should see details of the order including customer information and items purchased. This confirms that the integration is working correctly.
5. Sending Coupon Code via Gmail
Now that you have successfully captured the order details, the next step is to send a coupon code using Gmail. In Pabbly Connect, add a new action step and select Gmail as the application. Choose the action event ‘Send Email’.
- Connect your Gmail account to Pabbly Connect.
- Map the recipient’s email from the previous step.
- Compose the email content including the coupon code.
After configuring the email, click on ‘Save and Send Test Request’ to send the email. Verify that the email has been received by the customer with the coupon code included.
Conclusion: Updating Coupon Status in Google Sheets
Finally, to complete the process, you need to update the coupon status in Google Sheets. Add another action step in Pabbly Connect and select Google Sheets. Choose the action event ‘Update Cell Value’.
Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.
Check out Pabbly Connect – Automate your business workflows effortlessly! Sign Up Free – Start your journey with ease! 10,000+ Video Tutorials – Learn step by step! Join Pabbly Facebook Group – Connect with 21,000+ like minded people!
Connect your Google Sheets account, specify the spreadsheet and sheet name, and input the range for the coupon status. Set the status to ‘Taken’ to indicate that the coupon has been used. Click on ‘Save and Send Test Request’ to finalize the integration.
With these steps, you have successfully automated sending a one-time token for WooCommerce purchases using Pabbly Connect. This integration ensures that every time a purchase is made, a unique coupon code is sent to the customer and the status is updated in your Google Sheets.