• Latest
  • Trending
  • All
Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

October 9, 2025
How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

October 2, 2025
Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

September 27, 2025
🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

May 8, 2025
How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

April 6, 2025
Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

February 28, 2025
How to Connect WooSMS API with OTP Login Woocommerce Plugin

How to Connect WooSMS API with OTP Login Woocommerce Plugin

February 1, 2025
How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

January 27, 2025
How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

December 21, 2024
Shipment Tracker for WooCommerce: Simplify Your Shipping Process

Shipment Tracker for WooCommerce: Simplify Your Shipping Process

December 16, 2024
How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

November 14, 2024
The Core Principles of SEO: A Comprehensive Guide

The Core Principles of SEO: A Comprehensive Guide

October 18, 2024
How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

November 14, 2024
  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy
Thursday, October 9, 2025
  • Login
Wp Hacks4u
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub
No Result
View All Result
Wp Hacks4u
No Result
View All Result
Home AI

Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

by RAHUL
October 9, 2025
in AI, N8N, woocommerce
0
Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required
492
SHARES
1.4k
VIEWS
Share on FacebookShare on Twitter

A comprehensive n8n workflow that enables customers to browse products, place orders, track shipments, and make payments directly through WhatsApp. This bot integrates WooCommerce, Razorpay payment gateway, and AI-powered customer support to create a seamless conversational commerce experience.

✨ Key Features

  • 🛍️ Product Discovery: Share product URLs via WhatsApp to get instant product details, pricing, and stock status
  • 📦 Order Creation: Place orders directly through WhatsApp with natural language commands
  • 🚚 Order Tracking: Real-time order status updates and tracking information
  • 📍 Address Management: Easy address collection and update through structured messages
  • 💳 Payment Processing: Automated Razorpay payment link generation
  • 🖼️ Payment Confirmation: Image/screenshot upload support for payment verification
  • 🤖 AI Support: OpenAI-powered general customer support for queries
  • 📱 Multi-scenario Routing: Intelligent query detection and routing

🔧 Prerequisites

Required Accounts & Services

  1. n8n Instance (self-hosted or cloud)
  2. WooCommerce Store with REST API access
  3. Razorpay Account (for payment processing)
  4. WhatsApp API Provider (e.g., WootSap or similar)
  5. OpenAI API Key (for AI-powered support)

API Credentials Needed

  • WooCommerce Consumer Key
  • WooCommerce Consumer Secret
  • Razorpay API Key & Secret
  • WhatsApp API Token & Instance ID
  • OpenAI API Key

📋 Setup Instructions

Step 1: Clone the Workflow

  1. Download the entire JSON workflow

    WhatsApp N8N

  2. In n8n, go to Workflows → Import from File/URL
  3. Paste the JSON and import

Step 2: Configure WooCommerce Credentials

Replace placeholders in the following nodes:

  • Fetch Product by URL
  • Fetch Order
  • Create Order
  • Fetch Order by ID
  • Update Order Address

Replace:

[YOUR-DOMAIN].com → your-store.com
[YOUR_WOOCOMMERCE_KEY] → ck_xxxxxxxxxxxxx
[YOUR_WOOCOMMERCE_SECRET] → cs_xxxxxxxxxxxxx

Step 3: Configure Razorpay

In the Create Razorpay Payment Link node:

  1. Add HTTP Basic Auth credentials (Razorpay Key ID & Secret)
  2. Update the callback_url to your store’s thank-you page
  3. Replace [YOUR-DOMAIN].com with your actual domain

Step 4: Configure WhatsApp API

In the Send Message node:

  • Replace [YOUR_WHATSAPP_API_TOKEN] with your API token
  • Replace [YOUR_WHATSAPP_INSTANCE_ID] with your instance ID

Step 5: Configure OpenAI

In the OpenAI Model node:

  • Add your OpenAI API credentials
  • Adjust temperature (default: 0.7) if needed

Step 6: Activate the Webhook

  1. Open the Incoming WhatsApp webhook node
  2. Copy the webhook URL
  3. Configure your WhatsApp API provider to send incoming messages to this URL

Step 7: Test the Workflow

  1. Activate the workflow
  2. Send a test message to your WhatsApp number
  3. Verify responses are being sent correctly

🔄 Workflow Logic

Query Type Detection

The workflow intelligently detects different query types:

Query Type Detection Pattern Example
Product URL Domain product links https://yourstore.com/product/awesome-item
Order Lookup “track”, “status”, “order” + number Track order 1234
Create Order “order product [ID] quantity [N]” Order product 567 quantity 2
Update Address “order [ID]” + address fields Order 1234\nName: John...\nPincode: 400001
Payment Screenshot Image message [Uploads payment screenshot]
General Query Everything else What's your return policy?

Workflow Branches

Incoming Message
    ↓
Extract Data → Detect Query Type → Route to Handler
    ↓                                      ↓
    ├─→ Product URL ────→ Fetch & Display Product
    ├─→ Order Lookup ───→ Track & Show Status
    ├─→ Create Order ───→ Create WooCommerce Order
    ├─→ Update Address ─→ Update Order → Generate Payment Link
    ├─→ Payment Image ──→ Acknowledge Receipt
    ├─→ Ask Order ID ───→ Prompt for Details
    └─→ General ────────→ AI Support Response
                              ↓
                         Send WhatsApp Message

💬 Customer Usage Examples

1. Browse Product

Customer sends:

https://yourstore.com/product/wireless-headphones

Bot responds:

✨ *Wireless Headphones*

💰 *Price:* ₹2,499
📦 *Stock:* ✅ In Stock

📄 *Description:*
Premium wireless headphones with noise cancellation...

�Cart *To order, reply:*
"Order product 567 quantity 1"

Product ID: 567

2. Place Order

Customer sends:

Order product 567 quantity 1

Bot responds:

✅ *Order Created!*

📋 *Order #1234*
🆔 *Order ID:* 1234

📦 *Items:*
1. Wireless Headphones × 1 = ₹2,499

🚚 *Shipping:* ₹120
💰 *Total:* ₹2,619

📝 *Next: Provide Shipping Address*

Reply in this format:
Order 1234
Name: [Your Name]
Address: [Street]
City: [City]
State: [State]
Pincode: [6-digit]

3. Provide Address

Customer sends:

Order 1234
Name: Rahul Sharma
Address: 123 MG Road
City: Mumbai
State: Maharashtra
Pincode: 400001

Bot responds:

✅ *Order Confirmed!*

📋 *Order #1234*

💰 *Total Amount:* ₹2,619

📍 *Shipping To:*
Rahul Sharma
123 MG Road
Mumbai, Maharashtra
PIN: 400001

💳 *Complete Payment:*
https://rzp.io/i/ABC123XYZ

⚡ Pay securely via UPI/Card/NetBanking/Wallet
✅ After payment, send screenshot for confirmation

🙏 Thank you for your order!

4. Track Order

Customer sends:

Track 1234

Bot responds:

📦 *Order #1234*

📊 *Status:* PROCESSING
📅 *Date:* 09/10/2025
💰 *Total:* ₹2,619

📦 *Items:*
1. Wireless Headphones x1 - ₹2,499

🚚 *Shipping:*
Rahul Sharma
123 MG Road
Mumbai, Maharashtra - 400001

✨ Being prepared!

💬 Need help? Just ask!

⚙️ Customization Options

Modify Shipping Cost

In Prepare Order Data node:

javascript
const shippingCost = "120.00"; // Change this value

Adjust AI Personality

In AI Agent node, modify the system message:

javascript
"You are a customer support AI assistant. Your job is..."
// Customize tone, style, and behavior

Add Custom Order Metadata

In Prepare Order Data node, add to meta_data array:

javascript
meta_data: [
  { key: "_whatsapp_order", value: "true" },
  { key: "_custom_field", value: "your_value" }
]

Modify Product Display Format

Edit the Format Product Info node to change how products are displayed.

🐛 Troubleshooting

Issue: Webhook not receiving messages

Solution:

  • Verify webhook URL is correctly configured in WhatsApp API provider
  • Check workflow is activated
  • Test webhook URL directly using a tool like Postman

Issue: WooCommerce API errors

Solution:

  • Verify consumer key and secret are correct
  • Ensure WooCommerce REST API is enabled
  • Check API permissions in WooCommerce settings

Issue: Razorpay payment link creation fails

Solution:

  • Verify Razorpay credentials in HTTP Basic Auth
  • Ensure amount is in smallest currency unit (paise for INR)
  • Check Razorpay account is activated

Issue: AI responses not working

Solution:

  • Verify OpenAI API key is valid
  • Check OpenAI account has sufficient credits
  • Review API rate limits

Issue: Phone number validation failing

Solution:

  • Ensure phone numbers are in correct format (10 digits minimum)
  • Check remoteJid format from WhatsApp API matches expected pattern

🔒 Security Considerations

  1. API Credentials: Store all API keys as n8n credentials, not hardcoded
  2. Phone Verification: The workflow validates phone numbers against order billing phone
  3. Payment Security: Payment processing handled by Razorpay PCI-DSS compliant gateway
  4. Data Privacy: Consider adding GDPR compliance measures for customer data

📊 Monitoring & Analytics

Recommended Additions

  1. Error Logging: Add error handling nodes to catch and log failures
  2. Analytics Tracking: Store order events in a database for reporting
  3. Notification System: Alert admins for failed orders or payment issues
  4. Customer Feedback: Add post-purchase satisfaction survey

🚀 Advanced Enhancements

Potential Features to Add

  • Multi-language Support: Detect customer language and respond accordingly
  • Product Recommendations: Suggest related products based on order history
  • Promotional Campaigns: Send targeted offers via WhatsApp
  • Inventory Alerts: Notify when products are back in stock
  • Order Cancellation: Allow customers to cancel orders within a timeframe
  • Review Collection: Request product reviews after delivery

📝 License

This workflow template is provided as-is for use with n8n. Ensure you comply with all API provider terms of service.

🤝 Support

For issues or questions:

  • Check n8n community forum
  • Review API provider documentation
  • Verify all credentials and configurations

📚 Related Resources

  • n8n Documentation
  • WooCommerce REST API
  • Razorpay API Docs
  • OpenAI API Reference
Tags: AIN8NWooCommerce
Share197Tweet123
RAHUL

RAHUL

  • Trending
  • Comments
  • Latest
How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

June 18, 2022
How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

November 14, 2024
How to convert a WordPress or Woocommerce website into an App for Free

How to convert a WordPress or Woocommerce website into an App for Free

June 30, 2023
How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

4
HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

1
HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

1
Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

October 9, 2025
How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

October 2, 2025
Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

September 27, 2025
Wp Hacks4u

Copyright © 2025 Wphacks4u.com

Navigate Site

  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now
This is a test site
Build with Digits
Protected by   
No Result
View All Result
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub

Copyright © 2025 Wphacks4u.com

Enable Notifications OK No thanks