LINE Chatbot Case Study: Auto-Replies That Actually Work - CLEARPATH
CLEARPATH [BKK]
January 2026 • 7 min read

LINE Chatbot Case Study: Auto-Replies That Actually Work

A retail client came to me with a problem: their LINE Official account was getting 200+ messages per day, and their team couldn't keep up. Response times were slipping, customers were getting frustrated, and they were losing sales.

Here's how we built a chatbot that handles 80% of questions automatically—and hands off the rest gracefully.

80%
Auto-resolved
<3s
Response time
24/7
Availability
฿0
Ongoing cost

The Problem

Before: 4-person team responding to LINE messages. Average response time: 2-4 hours during business hours. No responses after 6pm or weekends. Staff spending 3+ hours/day on repetitive questions.

Most messages were the same questions over and over:

Staff were answering the same questions 50+ times per day. They were burned out, and complex customer issues weren't getting the attention they deserved.

The Solution

After: Chatbot handles 80% of questions instantly. Staff focus only on complex issues and sales conversations. Response time: under 3 seconds, 24/7.

Technical Architecture

Built with a hybrid approach: rule-based matching for common questions + AI fallback for complex ones.

  • LINE Messaging API: Receives webhooks, sends replies
  • Supabase: Knowledge base (products, FAQs, business info)
  • Vector search: Matches questions to relevant answers
  • AI layer: Groq API for questions that need reasoning
  • Handoff system: Escalates to humans when needed

How It Works

Step 1: Intent Detection

When a message comes in, the system first tries to identify what the customer wants. Common patterns are matched immediately—"ราคา", "shipping", "สั่งซื้อ", etc.

Step 2: Knowledge Base Search

The message is searched against a database of products, FAQs, and business information. If there's a high-confidence match, that answer is used.

Step 3: AI Enhancement (if needed)

For questions that need interpretation, the AI takes the retrieved context and generates a natural response. This handles variations like "how much does the blue one cost" when the product is called "Navy Linen Shirt".

Step 4: Handoff (if needed)

If confidence is low, or the customer asks to talk to a person, the system tags the conversation for human follow-up and lets the customer know someone will respond.

Key insight: The best chatbots know when they don't know. A bad guess is worse than saying "let me get someone to help you."

The Knowledge Base

The chatbot is only as good as its data. We built a comprehensive knowledge base with:

Staff can update the knowledge base through a simple admin panel. New product? Add it. New FAQ? Add it. Changes reflect instantly.

Timeline

Week 1 Research, LINE API setup, basic webhook working
Week 2 Knowledge base structure, admin panel, data import
Week 3 Search logic, intent matching, AI integration
Week 4 Handoff system, testing, soft launch
Week 5-6 Refinement based on real conversations

Results After 3 Months

Metrics
  • Messages handled: 15,000+ per month
  • Auto-resolved: 80% (no human needed)
  • Escalated: 20% (complex questions, sales)
  • Customer satisfaction: Up from 3.2 to 4.5 stars
  • Staff time saved: ~15 hours/week

Staff now spend their time on conversations that actually need a human—sales discussions, complaints, complex orders. They're less burned out and more effective.

What Didn't Work (At First)

Transparency: we had to iterate on several things.

Costs

Monthly Operating Costs
  • LINE Messaging API: Free (under 500 messages/day)
  • Supabase: Free tier (easily handles this load)
  • Groq AI API: Free tier (8,000+ requests/day)
  • Hosting: Free (Vercel)
  • Total: ฿0/month

At higher volume, Groq costs ~$0.05 per 1M tokens. Would need 500k+ messages/month to exceed free tier.

Should You Build One?

A LINE chatbot makes sense if:

It might not be worth it if:

Need a chatbot for your LINE?

I build LINE chatbots that actually help your customers and your team.

Let's Talk
AI_ASSISTANT
Hey. Ask me about services, pricing, or timelines. I'll give you a straight answer.