Connect LINE Official Account — step-by-step setup เชื่อมต่อ LINE Official Account — การตั้งค่าทีละขั้น
Complete LINE OA integration: channel creation, webhook wiring, multi-agent routing, auto-reply behavior, and the 4 mistakes 90% of agencies make. การเชื่อมต่อ LINE OA ครบวงจร: สร้าง channel, ตั้ง webhook, routing เอเจนต์หลายคน, พฤติกรรม auto-reply และ 4 ข้อผิดพลาดที่ 90% ของเอเจนซี่ทำ
Why this matters
On a Thai property agency, ~80% of inbound leads start in LINE. If LINE isn't in your CRM, those conversations live in the personal phone of whichever agent saw them first — invisible to the team, lost when the agent changes phone, and untraceable for commission disputes.
DevProp's LINE OA integration brings every conversation into a unified inbox: searchable, taggable, routable, and tied to a listing record + pipeline stage.
Prerequisites
- A LINE Official Account in Verified or Premium tier (free Unverified accounts work but are limited to 500 free messages/month — fine for testing, not for production).
- Admin access to the LINE OA (you can add DevProp as a co-admin if your boss owns the account).
- A LINE Messaging API channel created in LINE Developers console and linked to the OA.
Step 1 — Create the Messaging API channel
- Go to developers.line.biz/console and sign in with your LINE OA admin.
- Provider → Create new provider (use your agency name).
- Inside the provider → Create new channel → Messaging API.
- Fill: Channel name (your agency), description, category (Real Estate), upload your logo.
- Save. You're now on the channel admin page.
- Click Messaging API tab → scroll to Channel access token → Issue. Copy the token (you'll paste it into DevProp in Step 3).
Step 2 — Link channel to your OA
Same channel page, Messaging API tab, scroll up to Linked OA. Click Edit → select your LINE OA from the dropdown → save. The OA name should now appear under the channel name.
Step 3 — Paste credentials into DevProp
From your DevProp admin, navigate to Settings → Integrations → LINE Official. Three fields:
- Channel ID — visible top-right of the channel admin page
- Channel secret — Messaging API tab, copy the field
- Channel access token (long-lived) — what you just issued in Step 1
Click Connect. DevProp validates the credentials live and shows the connected OA name + profile image. If validation fails, double-check the secret has no leading/trailing spaces (the most common mistake).
Step 4 — Configure webhook
Same DevProp page, Webhook section. Copy the auto-generated URL (looks like https://your-tenant.devprop.app/api/line/webhook/abc123). Back in LINE Developers console → Messaging API tab → Webhook URL → paste it → enable the Use webhook toggle → click Verify.
If Verify succeeds, click Update. If it fails: check your DevProp tenant is reachable on HTTPS (it should be — we provision Let's Encrypt automatically) and that there's no firewall blocking LINE's egress IPs.
Step 5 — Disable LINE's auto-reply default
This is the mistake 90% of agencies make. By default, LINE OA has a Default response auto-reply ("Thanks for messaging us, an agent will reply soon"). This auto-reply blocks DevProp from receiving the message.
In manager.line.biz → your OA → Auto-reply settings:
- Turn OFF Default response (or set it to "Webhook only", not "Auto-reply").
- Turn ON Webhook at the channel level.
- If you want LINE's built-in keyword auto-reply for FAQs, configure those individually and they'll fire alongside DevProp's webhook (LINE sends to both).
Step 6 — Test the round-trip
From a personal LINE account that is NOT yet a friend of the OA, scan your OA's QR code → add as friend → send a message ("Hello, I'm interested in your Sukhumvit listings").
In DevProp inbox, within 2 seconds:
- A new conversation appears with the sender's LINE display name + profile picture.
- The default lead record is created at Inbox stage.
- Auto-assignment fires (if you configured round-robin) — otherwise, you'll see it as unassigned.
- A browser/email notification triggers for the assigned agent.
Reply from DevProp. The reply lands in the sender's LINE chat within 1 second.
Multi-agent routing
By default, the first agent to claim a conversation in DevProp owns it (and gets the lead-agent commission split). For larger agencies, configure auto-routing: Settings → LINE → Routing rules. Options:
- Round-robin — even distribution across all online agents.
- Weighted — high-performers get more leads (configurable weight per agent).
- Listing-based — if the message references a listing (by URL or listing number), routes to that listing's primary agent.
- Language-based — Thai messages → Thai-speaking agents; Chinese → Mandarin-capable agents; etc.
- Off-hours fallback — after 9pm or weekends, route to Nisa AI (if Pro plan) or to a dedicated after-hours agent.
The other 3 mistakes agencies make
- Using a personal LINE instead of a LINE OA. Personal LINEs can't connect to webhooks. You must have an Official Account.
- Forgetting to verify the channel. Unverified channels can't be added to LINE Ads — you lose paid LINE traffic.
- Not setting business hours. Your agents miss 11pm enquiries because notifications are off at home. Configure off-hours fallback to Nisa or to an on-duty agent.
ทำไมเรื่องนี้สำคัญ
บนเอเจนซี่อสังหาฯ ไทย ~80% ของลีดที่เข้ามาเริ่มต้นใน LINE ถ้า LINE ไม่อยู่ใน CRM ของคุณ การสนทนาเหล่านั้นอยู่ในโทรศัพท์ส่วนตัวของเอเจนต์คนแรกที่เห็น — มองไม่เห็นจากทีม หายเมื่อเอเจนต์เปลี่ยนโทรศัพท์ และไม่สามารถติดตามได้สำหรับข้อพิพาทค่าคอม
LINE OA integration ของ DevProp นำการสนทนาทุกครั้งเข้า inbox รวม: ค้นหาได้ tag ได้ route ได้ และผูกกับ listing record + pipeline stage
ข้อกำหนดเบื้องต้น
- LINE Official Account ในระดับ Verified หรือ Premium (Unverified ฟรีก็ใช้ได้แต่จำกัด 500 ข้อความฟรี/เดือน — สำหรับทดสอบ ไม่ใช่ production)
- Admin access กับ LINE OA (เพิ่ม DevProp เป็น co-admin ได้ถ้าหัวหน้าเป็นเจ้าของบัญชี)
- LINE Messaging API channel ที่สร้างใน LINE Developers console และ link กับ OA
ขั้นตอนที่ 1 — สร้าง Messaging API channel
- ไปที่ developers.line.biz/console และเข้าสู่ระบบด้วย LINE OA admin
- Provider → Create new provider (ใช้ชื่อเอเจนซี่ของคุณ)
- ภายใน provider → Create new channel → Messaging API
- กรอก: ชื่อ channel (เอเจนซี่ของคุณ) คำอธิบาย หมวด (Real Estate) อัปโหลดโลโก้
- บันทึก คุณอยู่บนหน้า channel admin
- คลิก tab Messaging API → เลื่อนไปที่ Channel access token → Issue Copy token (จะวางใน DevProp ใน Step 3)
ขั้นตอนที่ 2 — link channel กับ OA ของคุณ
หน้า channel เดียวกัน tab Messaging API เลื่อนขึ้นไปที่ Linked OA คลิก Edit → เลือก LINE OA จาก dropdown → บันทึก ชื่อ OA ควรปรากฏใต้ชื่อ channel แล้ว
ขั้นตอนที่ 3 — วาง credentials ใน DevProp
จาก DevProp admin ของคุณ ไปที่ Settings → Integrations → LINE Official สามฟิลด์:
- Channel ID — เห็นที่มุมขวาบนของหน้า channel admin
- Channel secret — Messaging API tab, copy ฟิลด์
- Channel access token (long-lived) — ที่ออกใน Step 1
คลิก Connect DevProp validate credentials live และแสดงชื่อ OA ที่เชื่อมต่อ + ภาพโปรไฟล์ ถ้า validation ล้มเหลว ตรวจ secret ไม่มี space นำหรือท้าย (ข้อผิดพลาดที่พบบ่อยที่สุด)
ขั้นตอนที่ 4 — ตั้งค่า webhook
หน้า DevProp เดียวกัน section Webhook copy URL ที่สร้างอัตโนมัติ (ดูเหมือน https://your-tenant.devprop.app/api/line/webhook/abc123) กลับไปที่ LINE Developers console → tab Messaging API → Webhook URL → วาง → เปิด toggle Use webhook → คลิก Verify
ถ้า Verify สำเร็จ คลิก Update ถ้าล้มเหลว: ตรวจว่า DevProp tenant ของคุณเข้าถึงได้บน HTTPS (ควรเป็น — เรา provision Let's Encrypt อัตโนมัติ) และไม่มี firewall บล็อก LINE egress IP
ขั้นตอนที่ 5 — ปิด LINE auto-reply ดีฟอลต์
นี่คือข้อผิดพลาดที่ 90% ของเอเจนซี่ทำ ดีฟอลต์ LINE OA มี Default response auto-reply ("ขอบคุณที่ส่งข้อความ เอเจนต์จะตอบเร็วๆ นี้") auto-reply นี้ บล็อก DevProp จากการรับข้อความ
ใน manager.line.biz → OA ของคุณ → การตั้งค่า Auto-reply:
- ปิด Default response (หรือตั้งเป็น "Webhook only" ไม่ใช่ "Auto-reply")
- เปิด Webhook ที่ channel level
- ถ้าคุณต้องการ keyword auto-reply ในตัวของ LINE สำหรับ FAQ ตั้งค่าแต่ละอันแยกและจะ fire ควบคู่กับ DevProp webhook (LINE ส่งไปทั้งสอง)
ขั้นตอนที่ 6 — ทดสอบ round-trip
จากบัญชี LINE ส่วนตัวที่ยังไม่เป็นเพื่อนกับ OA สแกน QR code ของ OA → เพิ่มเป็นเพื่อน → ส่งข้อความ ("สวัสดี ฉันสนใจประกาศ Sukhumvit ของคุณ")
ใน DevProp inbox ภายใน 2 วินาที:
- การสนทนาใหม่ปรากฏพร้อมชื่อแสดง LINE ของผู้ส่ง + ภาพโปรไฟล์
- lead record ดีฟอลต์ถูกสร้างที่ stage Inbox
- Auto-assignment fire (ถ้าคุณตั้งค่า round-robin) — ไม่งั้นจะเห็นเป็น unassigned
- การแจ้งเตือน browser/email ทริกเกอร์สำหรับเอเจนต์ที่ได้รับมอบหมาย
ตอบจาก DevProp การตอบเข้าไปใน chat LINE ของผู้ส่งภายใน 1 วินาที
Routing เอเจนต์หลายคน
ดีฟอลต์ เอเจนต์คนแรกที่ claim การสนทนาใน DevProp เป็นเจ้าของ (และได้ commission split lead-agent) สำหรับเอเจนซี่ใหญ่ ตั้งค่า auto-routing: Settings → LINE → Routing rules ตัวเลือก:
- Round-robin — กระจายเท่าๆ กันในเอเจนต์ออนไลน์ทั้งหมด
- Weighted — ผู้มีผลงานดีได้ลีดมากกว่า (น้ำหนักปรับได้ต่อเอเจนต์)
- Listing-based — ถ้าข้อความอ้างถึงประกาศ (โดย URL หรือเลขประกาศ) route ไปยังเอเจนต์หลักของประกาศนั้น
- Language-based — ข้อความไทย → เอเจนต์พูดไทย จีน → เอเจนต์ Mandarin ฯลฯ
- Off-hours fallback — หลัง 4 ทุ่มหรือวันหยุด route ไปยัง Nisa AI (ถ้าแพ็คเกจ Pro) หรือไปเอเจนต์ after-hours โดยเฉพาะ
ข้อผิดพลาดอีก 3 ข้อที่เอเจนซี่ทำ
- ใช้ LINE ส่วนตัว แทน LINE OA LINE ส่วนตัวไม่สามารถเชื่อมต่อกับ webhook ได้ คุณต้องมี Official Account
- ลืม verify channel Channel ที่ไม่ได้ verify เพิ่มใน LINE Ads ไม่ได้ — คุณเสียทราฟฟิก LINE ที่จ่ายเงิน
- ไม่ตั้ง business hours เอเจนต์ของคุณพลาดคำถามตอน 4 ทุ่มเพราะการแจ้งเตือนปิดที่บ้าน ตั้งค่า off-hours fallback ไป Nisa หรือเอเจนต์เวร
Stuck on this step?
Book a free 20-minute call. We'll walk through it on screen-share.
Book diagnostic