Integrate BotPenguin with Magento
Connect your WhatsApp Chatbot to Magento so customer events — abandoned carts, new orders, order updates, refunds, cancellations, and new customer signups — automatically trigger WhatsApp messages, wi
What is Magento Integration?
Magento is an e-commerce platform businesses use to run their online stores. By connecting Magento to your WhatsApp Chatbot on BotPenguin, you can automatically send WhatsApp messages to customers based on events happening in your Magento store — such as an abandoned cart, a new order, an order update, a refund, a cancellation, or a new customer signing up — without anyone on your team having to trigger these manually.
When Should You Use This?
Use Magento Integration when:
You want to automatically recover abandoned carts by sending a WhatsApp reminder to customers
You want customers notified over WhatsApp automatically as their order is created, updated, refunded, or canceled
You want new Magento customers captured as leads in your BotPenguin Inbox
How It Works
The setup has two parts:
Install and connect Magento — You install the BotPenguin connector module in your Magento store, then connect it to BotPenguin using a webhook URL and secret. This tells Magento where to send event data.
Configure automated messages — Once connected, you choose which Magento events should trigger a WhatsApp message, and select the approved template to send for each one.
Before You Begin
A WhatsApp Chatbot already set up in BotPenguin that you want to configure Magento with
Admin access to your Magento store
Meta-approved WhatsApp templates for the messages you want to send
Step-by-Step Instructions
Part A: Connect Magento from Third Party Integration
Step 1: Find Magento in Third Party Integration
Select the WhatsApp bot you want to configure Magento with.
Go to "Third Party Integration."
Search for Magento. Its status will show as "Not Connected," with the option to "Connect."
Click "Connect."

Step 2: Copy Your Webhook URL and Secret
You'll be redirected to a screen showing your Webhook URL and Webhook Secret.

Part B: Install and Configure the Connector in Magento
Step 1: Install the BotPenguin Connector Module
BotPenguin's Magento connector isn't currently listed on the Magento Marketplace. Until then, install it via Composer:
Follow the required and recommended installation commands listed on that page.
Once installed, the connector will be available under your Magento configuration.
Step 2: Connect the Webhook in Magento
Log in to your Magento admin dashboard.
Go to Stores in the side bar.

In the Settings, Find configurations and click on it.

Find BotPenguin and click on “Connector”.

Set "Enabled" to "Yes."

Paste the Webhook URL you copied from BotPenguin.

Paste the Webhook Secret you copied from BotPenguin.

Click "Save Configuration."

Part C: Verify the Connection and Configure Messaging
Step 1: Confirm the Connection
Return to BotPenguin and click "Refresh."
The screen should update to show the Connected state, along with a "Disconnect" option.

Step 2: Turn On Create Inbox Leads
Use the "Create Inbox Leads" toggle to control whether Magento customers are added as leads.

On: Customers from Magento events are added as leads in your BotPenguin Inbox.
Off: No new leads are created.
Step 3: Configure Magento Automated Messages
Each Magento event appears as its own expandable section. Six events are available: Abandoned Cart Recovery, Order Created, Order Updated, Order Refunded, Order Canceled, and Customer Created.
Abandoned Cart Recovery works a little differently from the rest, since it needs a reply message configured:
Expand "Abandoned Cart Recovery."

Turn on "Enable Abandoned Cart Recovery."

Click "Add Reply Message" to open the "Configure Automated Messages" pop-up.
In the pop-up:
Select Template: choose your Meta-approved template.
Send After: enter a number, then choose the unit — Minutes or Hours — for how long after the cart is abandoned the message should send.

Click "Save" on the pop-up.
Repeat steps 3–5 if you want to add more than one reply message.
Click "Save Changes" on the main screen.
The remaining events — Order Created, Order Updated, Order Refunded, Order Canceled, and Customer Created — are simpler:
Expand the event.
Turn on its toggle to enable it.
Select the Meta-approved template to send.

Best Practices
💡 Copy your Webhook Secret immediately when it's generated — it can't be retrieved again later
💡 Get your WhatsApp templates approved by Meta in advance, so they're ready to select when configuring each event
⚠️ Set a reasonable "Send After" time for Abandoned Cart Recovery so customers aren't messaged too soon after leaving their cart
🎯 Test the integration with a demo order before relying on it for real customer notifications
Troubleshooting
FAQs
Support
If everything is correct and you are still unable to move forward, write to us at support@botpenguin.com. We will respond back within 48 business hours.
Last updated