WooCommerce AI Post-Sales Chatbot with GPT-4o, RAG, Google Drive and Telegram
Created by
Last edited 56 days ago
This WooCommerce-integrated chatbot is designed to transform post-sales customer support by combining automation and artificial intelligence to deliver fast, secure, and personalized assistance.
The chatbot retrieves real-time order information, including shipping details and tracking numbers, after verifying the customer's identity through a strict email-based authentication system.
Beyond order management, the chatbot answers frequently asked questions about return policies, delivery times, and terms of service using RAG.
If a request is too complex, the system seamlessly escalates it to a human operator via Telegram, guaranteeing no customer query goes unresolved.
Key Features of the Chatbot
- Order Tracking: Retrieves real-time tracking information for WooCommerce orders, including carrier URLs and pickup dates.
- Order Details Retrieval: Provides customers with past/current order information after strict email verification.
- Policy & FAQ Assistance: Answers questions about shipping, returns, and store policies using a vectorized knowledge base (ToS tool).
- Identity Verification: Ensures privacy by requiring exact email-order matches before sharing sensitive data.
- Human Escalation: Transfers complex issues to human agents via Telegram when the AI cannot resolve them.
- Context-Aware Conversations: Maintains dialogue context using memory buffers for seamless interactions.
Who Benefits from This Chatbot?
- E-commerce Stores: WooCommerce businesses needing 24/7 automated post-sales support.
- Customer Support Teams: Reduces ticket volume by handling repetitive queries (tracking, policies).
- SMBs: Small-to-medium businesses lacking resources for full-time support staff.
- Customers: Shoppers who want instant, self-service access to order status and FAQs.
How It Works
- Customer Interaction: The workflow starts when a customer sends a chat message, triggering the AI agent.
- Identity Verification: The agent requests the order number and associated email, strictly verifying the match before proceeding.
- Order & Tracking Retrieval: Using WooCommerce API tools (
get_order
,get_tracking
), it fetches order details and tracking information. - Policy & Support: The
ToS
tool answers shipping and policy questions, whilehuman_assistance
escalates unresolved issues to a human agent via Telegram. - Memory & Context: A buffer memory retains conversation context for coherent interactions.
Set Up Steps
- Configure Qdrant Vector Store: Replace
QDRANTURL
andCOLLECTION
in the nodes to set up document storage. - Add Telegram Chat ID: Insert your Telegram
CHAT_ID
in thehuman_assistance
node for escalations. - Integrate WooCommerce Tracking Plugin: Install the YITH WooCommerce Order Tracking plugin and update the HTTP request URL in the tracking node.
- Test & Activate: Verify the workflow by testing order queries and ensuring proper email verification.
Need help customizing?
Contact me for consulting and support or add me on Linkedin.
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!