Save 70% of your time on WhatsApp customer interactions! Discover how to use ready-made regular expression templates to automatically recognize 9 key customer queries across any industry. Provide instant responses about pricing, delivery, availability, contacts, hours, payments, tracking, returns, discounts, and catalogs. For entrepreneurs and managers using WhatsApp Business and auto-replies. Get 10 ready-made templates, example queries, and auto-reply responses, saving time and increasing customer loyalty.
- 1. Price and Cost Questions – niche: clothing
- 2. Delivery Questions – niche: online store
- 3. Contact Information – niche: retail store
- 4. Working Hours / Operation Mode – niche: retail store
- 5. Payment Methods – niche: online store
- 6. Order Tracking – niche: online store
- 7. Return and Exchange Questions – niche: clothing
- 8. Discount and Promotion Questions – niche: retail
- 9. Catalog or Product Information – niche: clothing
1. Price and Cost Questions – niche: clothing
(?i)(?=.*(?:^|[^a-zA-Z])(?:price|cost|worth|how[ ]?much|amount)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:cloth|dress|jacket|jean|shirt|suit)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:expensive|high|low|chang|increas|reduc)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “What is the price of dresses?”
- ✅ “Tell me the cost of jackets”
- ✅ “How much do jeans cost?”
- ✅ “I’m interested in suit prices”
- ✅ “Please tell me the amount for shirts”
- ✅ “I need the price for clothing”
- ✅ “What are the prices for summer clothing?”
Negative examples:
- ❌ “Your prices are high”
- ❌ “Expensive clothing you have”
- ❌ “Have prices changed for suits?”
- ❌ “Why did you increase the cost?”
Response: “Our clothing prices start from $30. T-shirts: $30-50, shirts: $50-80, jeans: $60-120, dresses: $70-140, suits: $140-300. We offer a discount system for regular customers. The full price list can be viewed on our website shop.example.com/price.”
Status: “Price inquiry”
Let’s break down this regular expression part by part to understand how it works:
What is a Regular Expression?
Imagine it as a complex filter that checks whether text follows certain rules. In this case, we’re using it to automatically understand when a customer is asking about the price of clothing.
Dissecting the Regular Expression:
(?i):- This means the search will be case-insensitive. So, “Price,” “price,” and “PRICE” will be treated the same.
(?=.*(?:^|[^a-zA-Z])(?:price|cost|worth|how[ ]?much|amount)[a-zA-Z]*(?:[^a-zA-Z]|$)):- This is a “positive lookahead.” It checks if the text contains words related to price.
.*means “any number of any characters.”(?:^|[^a-zA-Z])means “the beginning of the line or any character other than English letters.” This prevents words from sticking together.(?:price|cost|worth|how[ ]?much|amount)means “one of the following words: ‘price,’ ‘cost,’ ‘worth,’ ‘how much,’ or ‘amount.'”[a-zA-Z]*means “any number of English letters.” This accounts for different word forms (e.g., “prices,” “costs”).(?:[^a-zA-Z]|$)means “any character other than English letters, or the end of the line.”
(?=.*(?:^|[^a-zA-Z])(?:cloth|dress|jacket|jean|shirt|suit)[a-zA-Z]*(?:[^a-zA-Z]|$)):- This is another “positive lookahead.” It checks if the text contains words related to clothing.
(?:cloth|dress|jacket|jean|shirt|suit)means “one of the following words: ‘cloth,’ ‘dress,’ ‘jacket,’ ‘jean,’ ‘shirt,’ or ‘suit.'”
(?!.*(?:^|[^a-zA-Z])(?:expensive|high|low|chang|increas|reduc)[a-zA-Z]*(?:[^a-zA-Z]|$)):- This is a “negative lookahead.” It checks if the text doesn’t contain words that express price evaluations (e.g., “expensive,” “cheap”).
.*:- At the end of the expression, this means “any number of any characters.”
How it Works in Practice:
When a customer writes a message, the regular expression checks if it meets all the conditions:
- Does the message contain words related to price?
- Does the message contain words related to clothing?
- Does the message not contain words that evaluate price?
If all conditions are met, the customer is likely asking about the price of clothing.
Example:
- Message: “How much is the dress?”
- Regular expression: “Yes, this is a price inquiry about clothing.”
- Message: “Your prices are too high.”
- Regular expression: “No, this is a price evaluation, not an inquiry.”
Why Is This Useful?
This allows you to automate responses to frequently asked questions. For instance, you can set up an auto-reply that automatically sends clothing price information when a customer asks a relevant question.
2. Delivery Questions – niche: online store
(?i)(?=.*(?:^|[^a-zA-Z])(?:deliver|ship|send|receiv|courier|mail|post)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:order|purchase|item|package|home|address|time|date|cost|service)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:long|bad|terrible|awful|cancel|return)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “How is the order delivery carried out?”
- ✅ “How much does product delivery cost?”
- ✅ “When will my purchase be delivered?”
- ✅ “Is home delivery possible?”
- ✅ “Do you ship via postal service?”
- ✅ “Can I receive the order by courier?”
- ✅ “Delivery times to downtown?”
Negative examples:
- ❌ “Delivery takes a very long time”
- ❌ “Your delivery is terrible”
- ❌ “I want to cancel the delivery”
- ❌ “How do I arrange a package return?”
Response: “Delivery is available throughout the country! Local city: courier ($6, 1-2 days), pick-up points (free). Nationwide: USPS ($6-10, 5-14 days), Express shipping ($8-15, 3-7 days). Free delivery for orders over $100. Order tracking is available in your personal account or by phone number.”
Status: “Delivery inquiry”
3. Contact Information – niche: retail store
(?i)(?=.*(?:^|[^a-zA-Z])(?:address|phone|contact|email|reach|mail)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:your|store|office|site|write|call|how|order)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:no[ ]?answer|chang|nobody|not[ ]?work|unavailable)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “Please tell me your store address”
- ✅ “What phone number to call?”
- ✅ “Give me the office contacts”
- ✅ “How can I contact you?”
- ✅ “Your website address”
- ✅ “Can I have a phone number for ordering?”
Negative examples:
- ❌ “The phone doesn’t answer”
- ❌ “Contact details are outdated”
- ❌ “Email doesn’t work”
- ❌ “Contact is unavailable”
Response: “Our contacts: Store address – 123 Example St. Phones: (123)456-7890 (sales department), (123)456-7891 (customer support). Email: info@example.com. Website: www.example.com. We are available daily from 9:00 to 21:00. We’ll be happy to help you with your selection!”
Status: “Contact information request”
4. Working Hours / Operation Mode – niche: retail store
(?i)(?=.*(?:^|[^a-zA-Z])(?:hours|schedule|time|when|how[ ]?long|open)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:work|open|operating|store|shop)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:not[ ]?work|not[ ]?open|closed|holiday|sick|forever)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “What are the store’s operating hours?”
- ✅ “Until what time are you open?”
- ✅ “Work schedule on Saturday?”
- ✅ “What time does your store open?”
- ✅ “What hours do you work?”
- ✅ “When is the store open?”
Negative examples:
- ❌ “Is the store closed today?”
- ❌ “Closed on weekends?”
- ❌ “Is the manager on sick leave?”
- ❌ “When are you closing for good?”
- ❌ “Why don’t you work on holidays?”
Response: “Our working hours: Mon-Fri from 10:00 to 21:00, Sat-Sun from 11:00 to 20:00. No lunch breaks or days off. The schedule may change on holidays; up-to-date information can be verified by phone (123)456-7890 or on our website. We look forward to seeing you in our store!”
Status: “Working hours inquiry”
5. Payment Methods – niche: online store
(?i)(?=.*(?:^|[^a-zA-Z])(?:pay|payment|card|cash|credit|invoice|method)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:how|way|option|can|accept|method|invoice)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:fail|error|problem|refund|cancel)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “How can I pay for the order?”
- ✅ “What payment methods do you accept?”
- ✅ “Can I pay by card?”
- ✅ “Do you accept cash?”
- ✅ “Payment options?”
- ✅ “Is invoice payment possible?”
- ✅ “Do you accept Apple Pay?”
Negative examples:
- ❌ “Payment failed, what should I do?”
- ❌ “Problems with the card”
- ❌ “How to cancel a payment?”
Response: “We offer the following payment methods: credit/debit cards (Visa/MasterCard/Amex), digital wallets (PayPal, Apple Pay, Google Pay), payment upon delivery (cash, card), bank transfer for business clients. All payments are protected by encryption. No commission is charged for online payments.”
Status: “Payment methods inquiry”
6. Order Tracking – niche: online store
(?i)^(?!.*(not[ ]?receiv|cancel|problem|return|complaint))(?=.*(?:order|package|track|parcel|shipment|location))(?=.*(?:where|status|how|check|track|number|want|see|find)).*$
Positive examples:
- ✅ “Where is my order?”
- ✅ “How can I check the order status?”
- ✅ “Tracking number for tracking?”
- ✅ “I want to track my package”
- ✅ “How to see where my order is?”
- ✅ “Find out about the package location”
Negative examples:
- ❌ “Order not received”
- ❌ “Problems with tracking”
- ❌ “I want to cancel the order”
- ❌ “Complaint about order status”
- ❌ “How to arrange an order return”
Response: “You can track your order in several ways: 1) In your personal account on our website in the ‘My Orders’ section; 2) Via SMS notifications that come when the status changes; 3) By order number or tracking number through the form on our website. Please provide your order number, and I will provide up-to-date information.”
Status: “Order tracking request”
7. Return and Exchange Questions – niche: clothing
(?i)(?=.*(?:^|[^a-zA-Z])(?:change|return|exchange|refund|send[ ]?back|switch)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:how|item|cloth|purchase|order|size)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:not[ ]?return|forbid|cannot|against|denied)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “How to return an item?”
- ✅ “Can I exchange clothing?”
- ✅ “I want to return a purchase”
- ✅ “How to send back an item?”
- ✅ “Order return conditions”
- ✅ “Can I change the size?”
- ✅ “Item exchange procedure”
Negative examples:
- ❌ “Why don’t you refund money?”
- ❌ “Returns are prohibited for you?”
- ❌ “Are you against exchanges?”
- ❌ “I received a return rejection”
Response: “Returns and exchanges are possible within 30 days of purchase. You need to keep the receipt and tags; the item must be without signs of use. Exchange due to unsuitable size or style is free. Refunds are processed within 5-7 business days. To process, fill out the form on the website or visit the store.”
Status: “Return/exchange inquiry”
8. Discount and Promotion Questions – niche: retail
(?i)(?=.*(?:^|[^a-zA-Z])(?:discount|promo|sale|coupon|code|bonus)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:any|when|how|what|active|get|birthday|card|program)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:not[ ]?work|none|ended|scam|fake)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “What discounts are currently available?”
- ✅ “Are there any promotions this week?”
- ✅ “When will the sale be?”
- ✅ “How to get a promo code?”
- ✅ “Do discount cards work?”
- ✅ “Do you have a bonus program?”
- ✅ “Do you offer birthday discounts?”
Negative examples:
- ❌ “Discounts don’t work”
- ❌ “You have no promotions”
- ❌ “Fake promo code”
- ❌ “Bonuses are a scam”
- ❌ “Is the sale over?”
Response: “We currently have the following promotions: 20% off the entire summer range, 30% off the second item in the receipt, ‘Buy 2 Get 1 Free’ on accessories. Our rewards program is also active – 5% of the purchase is returned as points. For new clients – promo code WELCOME gives a 10% discount on the first order. Follow updates on our Instagram and Facebook pages!”
Status: “Discount inquiry”
9. Catalog or Product Information – niche: clothing
(?i)(?=.*(?:^|[^a-zA-Z])(?:catalog|range|product|model|selection|collection|assortment)[a-zA-Z]*(?:[^a-zA-Z]|$))(?=.*(?:^|[^a-zA-Z])(?:where|browse|show|send|link|new|range)[a-zA-Z]*(?:[^a-zA-Z]|$))(?!.*(?:^|[^a-zA-Z])(?:old|poor|terrible|not[ ]?like|defect)[a-zA-Z]*(?:[^a-zA-Z]|$)).*
Positive examples:
- ✅ “Where can I see the clothing catalog?”
- ✅ “Show me the assortment”
- ✅ “Send me a link to the products”
- ✅ “Send me the catalog”
- ✅ “Where is the new collection?”
- ✅ “I want to see the model range”
- ✅ “Where can I see the entire selection?”
Negative examples:
- ❌ “Your catalog is old”
- ❌ “Poor assortment”
- ❌ “I didn’t like the models”
- ❌ “Terrible collection”
- ❌ “You sent defective goods”
Response: “Our full catalog is available on the website www.example.com/catalog. We’re also sending you a link to the current season’s collection: www.example.com/new. The catalog includes all categories: men’s and women’s clothing, footwear, accessories with photos, descriptions, and prices. For convenience, there are filters by size, color, and style. What specifically are you interested in from our assortment?”
Status: “Catalog request”