ข้อความ RCS
RCS (Rich Communication Services) คือการส่งข้อความยุคใหม่สำหรับอุปกรณ์ Android ที่มอบสื่อมัลติมีเดีย การโต้ตอบ และฟีเจอร์ขั้นสูงที่เหนือกว่า SMS แบบดั้งเดิม
ภาพรวม
RCS มอบความสามารถในการส่งข้อความที่เหนือกว่า:
- สื่อมัลติมีเดีย (รูปภาพ วิดีโอ GIF)
- ปุ่มและแคร์รูเซลแบบโต้ตอบได้
- การแจ้งว่าอ่านแล้วและตัวบ่งชี้การพิมพ์
- จำกัดจำนวนตัวอักษรสูงขึ้น (สูงสุด 3072 ตัวอักษร)
- ติดตามการส่งได้ดีขึ้น
- การระบุตัวตนผู้ส่งด้วยแบรนด์
ความพร้อมใช้งาน
- แพลตฟอร์ม: เฉพาะอุปกรณ์ Android
- เครือข่าย: ต้องมีการรองรับ RCS จากผู้ให้บริการเครือข่าย
- ช่องทางสำรอง: สลับไปใช้ SMS โดยอัตโนมัติหากใช้ RCS ไม่ได้
ข้อความ RCS พื้นฐาน
คำขอ
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your RCS message text with rich formatting"
}
พารามิเตอร์
| พารามิเตอร์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
from | string | ใช่ | Sender ID แบบตัวอักษรผสมตัวเลข |
to | string | ใช่ | หมายเลขโทรศัพท์ผู้รับ (E.164) |
type | string | ใช่ | ตั้งค่าเป็น "rcs" |
text | string | ใช่ | เนื้อหาข้อความ (สูงสุด 3072 ตัวอักษร) |
messageData | object | ไม่ | สื่อมัลติมีเดียและปุ่ม |
ประเภทข้อความ
ข้อความอย่างเดียว
ข้อความธรรมดาที่มีขีดจำกัดตัวอักษรสูงขึ้น:
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Welcome to our service! RCS allows us to send much longer messages with rich formatting and interactive elements."
}
ข้อความ + รูปภาพ
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg",
"height": 600,
"width": 800
}
}
}
ข้อความ + รูปภาพ + ปุ่ม
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Summer Sale - Up to 50% off!",
"messageData": {
"media": {
"url": "https://example.com/sale-banner.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/sale"
}
}
]
}
}
ข้อความ + วิดีโอ
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Watch our product demo",
"messageData": {
"media": {
"url": "https://example.com/demo.mp4",
"type": "video/mp4",
"thumbnail": "https://example.com/thumbnail.jpg"
}
}
}
ข้อความ + หลายปุ่ม
{
"from": "YourService",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order #12345 is ready for pickup",
"messageData": {
"buttons": [
{
"text": "Track Order",
"action": {
"type": "openUrl",
"url": "https://example.com/track/12345"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
},
{
"text": "Cancel Order",
"action": {
"type": "openUrl",
"url": "https://example.com/cancel/12345"
}
}
]
}
}
แคร์รูเซล RCS
แสดงหลายรายการในแคร์รูเซลที่เลื่อนได้:
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Featured Products",
"messageData": {
"carousel": {
"cards": [
{
"title": "Product A",
"description": "Premium quality product",
"media": {
"url": "https://example.com/product-a.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a"
}
},
{
"text": "Details",
"action": {
"type": "openUrl",
"url": "https://example.com/product-a/details"
}
}
]
},
{
"title": "Product B",
"description": "Best seller",
"media": {
"url": "https://example.com/product-b.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Buy Now",
"action": {
"type": "openUrl",
"url": "https://example.com/product-b"
}
}
]
}
]
}
}
}
การดำเนินการของปุ่ม
เปิด URL
{
"text": "Visit Website",
"action": {
"type": "openUrl",
"url": "https://example.com"
}
}
โทรออกไปยังหมายเลขโทรศัพท์
{
"text": "Call Us",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
ส่งตำแหน่งที่ตั้ง
{
"text": "Share Location",
"action": {
"type": "shareLocation"
}
}
เหตุการณ์ในปฏิทิน
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Appointment",
"startTime": "2025-01-25T14:00:00Z",
"endTime": "2025-01-25T15:00:00Z"
}
}
ข้อกำหนดของสื่อ
รูปภาพ
- รูปแบบ: JPEG, PNG, GIF
- ขนาดสูงสุด: 2MB
- ความละเอียดที่แนะนำ: 800x600 หรือ 1200x800
- อัตราส่วนภาพ: 16:9 หรือ 4:3
วิดีโอ
- รูปแบบ: MP4, 3GP
- ขนาดสูงสุด: 10MB
- ความยาวสูงสุด: 2 นาที
- ความละเอียดที่แนะนำ: 1280x720
เสียง
- รูปแบบ: MP3, AAC
- ขนาดสูงสุด: 5MB
- ความยาวสูงสุด: 5 นาที
สลับไปใช้ SMS
RCS จะสลับไปใช้ SMS โดยอัตโนมัติเมื่อ:
- ผู้รับไม่มี RCS
- RCS ถูกปิดใช้งานบนอุปกรณ์ของผู้รับ
- เครือข่ายไม่รองรับ RCS
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Check out our new product!",
"messageData": {
"media": {
"url": "https://example.com/product.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Shop Now",
"action": {
"type": "openUrl",
"url": "https://example.com/shop"
}
}
]
},
"fallback": {
"type": "sms",
"text": "Check out our new product! Visit: https://example.com/shop"
}
}
กรณีการใช้งาน
อีคอมเมิร์ซ
{
"from": "YourStore",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your order has been shipped!",
"messageData": {
"media": {
"url": "https://example.com/package.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Track Package",
"action": {
"type": "openUrl",
"url": "https://example.com/track/ABC123"
}
},
{
"text": "Contact Support",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
]
}
}
ธนาคาร
{
"from": "YourBank",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Low balance alert: Your account balance is $50",
"messageData": {
"buttons": [
{
"text": "View Balance",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/balance"
}
},
{
"text": "Transfer Money",
"action": {
"type": "openUrl",
"url": "https://bank.example.com/transfer"
}
}
]
}
}
การท่องเที่ยว
{
"from": "YourAirline",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your flight is departing in 3 hours",
"messageData": {
"media": {
"url": "https://example.com/boarding-pass.jpg",
"type": "image/jpeg"
},
"buttons": [
{
"text": "Check-in",
"action": {
"type": "openUrl",
"url": "https://airline.example.com/checkin"
}
},
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Flight Departure",
"startTime": "2025-01-25T10:00:00Z"
}
}
]
}
}
แนวปฏิบัติที่ดีที่สุด
เนื้อหา
- ✅ ใช้รูปภาพคุณภาพสูง (ขั้นต่ำ 800x600)
- ✅ ใช้ข้อความบนปุ่มให้สั้น (2-3 คำ)
- ✅ จัดให้มี SMS สำรองสำหรับเนื้อหามัลติมีเดีย
- ✅ ทดสอบบนอุปกรณ์ Android ที่หลากหลาย
- ❌ อย่าใส่เกิน 4-5 ปุ่มต่อข้อความ
- ❌ หลีกเลี่ยงไฟล์วิดีโอขนาดใหญ่ (>5MB)
สื่อ
- ใช้ URL แบบ HTTPS สำหรับสื่อทั้งหมด
- ปรับรูปภาพให้เหมาะกับมือถือ
- ใส่ข้อความทดแทน (alt text) เพื่อการเข้าถึง
- ทดสอบ URL ของสื่อก่อนส่ง
ปุ่ม
- สูงสุด 4 ปุ่มต่อข้อความ
- ข้อความกระตุ้นการดำเนินการ (call-to-action) ที่ชัดเจน
- ทดสอบการดำเนินการของปุ่มทั้งหมด
- พิจารณาช่องทางสำรองสำหรับการดำเนินการที่ใช้ไม่ได้
การสร้างแบรนด์
- ใช้ Sender ID ที่สม่ำเสมอ
- ใส่โลโก้แบรนด์ในที่ที่เหมาะสม
- รักษาน้ำเสียงและบุคลิกของแบรนด์
- ดูแลให้ภาพลักษณ์มีความสอดคล้องกัน
สถานะการส่ง
RCS มอบการติดตามการส่งที่ดีขึ้น:
- ส่งแล้ว (Sent): ส่งข้อความไปยังผู้ให้บริการเครือข่ายแล้ว
- ส่งถึงแล้ว (Delivered): ส่งข้อความถึงอุปกรณ์แล้ว
- อ่านแล้ว (Read): ผู้รับเปิดข้อความแล้ว
- ล้มเหลว (Failed): การส่งล้มเหลว ระบบสลับไปใช้ช่องทางสำรอง
ตรวจสอบสถานะโดยใช้endpoint สถานะ
ขั้นตอนถัดไป
- ข้อความ Viber - การส่งข้อความสื่อมัลติมีเดียทางเลือก
- ข้อความ SMS - การส่งข้อความสำรอง
- ตรวจสอบสถานะ - ติดตามการส่ง
- กลยุทธ์สำรอง - กำหนดค่าช่องทางสำรอง