Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Customer Support & Helpdesk

Customer Support & Helpdesk

Train a WhatsApp Support Bot from Product Pages

When a WhatsApp message arrives, a train: command scrapes a product page into Google Sheets with OpenAI, and other messages get customer support answers from that data.

What it does

## 🔴 STEP 2 – Product Data Training (Triggered by train:) Triggered when the message starts with train:. OpenAI API keys : Here 1. Extract URL from Message Uses regex to detect and extract the product link. 2. Fetch HTML Content Sends an HTTP request to retrieve the full page content. 3. Clean HTML Data Strips HTML tags, scripts, and formats the text. 4. Save Raw Product Info Appends the cleaned content and URL into Google Sheets. 5. AI: Enhance Product Details - Extracts Product Name - Detects Price (subscription or one-time) - Identifies Product Topic - Generates FAQs 6. Update Product Sheet Enriches the row in Sheets with structured product data.

The steps

  1. WhatsApp Business Cloud
  2. Incoming Message Trigger
  3. Check If Training
  4. Extract URL from Text
  5. Fetch HTML Page
  6. Clean HTML Content
  7. Save Raw Product Info
  8. OpenAI Model
  9. Short-Term Memory
  10. Update Product Sheet
  11. AI Agent - Customer Support Agent
  12. AI Agent - Enhance Product Details
  13. OpenAI Model1
  14. Conversation Memory

16 steps in total.

Similar automations