Pesan RCS
RCS (Rich Communication Services) adalah generasi berikutnya dari pesan untuk perangkat Android, menawarkan rich media, interaktivitas, dan fitur canggih di luar SMS tradisional.
Ikhtisar
RCS menyediakan kemampuan pesan yang ditingkatkan:
- Rich media (gambar, video, GIF)
- Tombol interaktif dan carousel
- Tanda baca dan indikator mengetik
- Batas karakter lebih tinggi (hingga 3072 karakter)
- Pelacakan pengiriman yang lebih baik
- Identifikasi pengirim bermerek
Ketersediaan
- Platform: Hanya perangkat Android
- Jaringan: Memerlukan dukungan RCS dari operator
- Fallback: Otomatis beralih ke SMS jika RCS tidak tersedia
Pesan RCS Dasar
Permintaan
{
"from": "YourBrand",
"to": "+380XXXXXXXXX",
"type": "rcs",
"text": "Your RCS message text with rich formatting"
}
Parameter
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
from | string | Ya | ID pengirim alfanumerik |
to | string | Ya | Nomor telepon penerima (E.164) |
type | string | Ya | Atur ke "rcs" |
text | string | Ya | Isi pesan (hingga 3072 karakter) |
messageData | object | Tidak | Rich media dan tombol |
Jenis Pesan
Hanya Teks
Pesan teks sederhana dengan batas karakter yang diperluas:
{
"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."
}
Teks + Gambar
{
"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
}
}
}
Teks + Gambar + Tombol
{
"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"
}
}
]
}
}
Teks + Video
{
"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"
}
}
}
Teks + Beberapa Tombol
{
"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"
}
}
]
}
}
Carousel RCS
Tampilkan beberapa item dalam carousel yang dapat digulir:
{
"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"
}
}
]
}
]
}
}
}
Aksi Tombol
Buka URL
{
"text": "Visit Website",
"action": {
"type": "openUrl",
"url": "https://example.com"
}
}
Panggil Nomor Telepon
{
"text": "Call Us",
"action": {
"type": "dial",
"phoneNumber": "+380XXXXXXXXX"
}
}
Kirim Lokasi
{
"text": "Share Location",
"action": {
"type": "shareLocation"
}
}
Acara Kalender
{
"text": "Add to Calendar",
"action": {
"type": "createCalendarEvent",
"title": "Appointment",
"startTime": "2025-01-25T14:00:00Z",
"endTime": "2025-01-25T15:00:00Z"
}
}
Spesifikasi Media
Gambar
- Format: JPEG, PNG, GIF
- Ukuran maks.: 2MB
- Resolusi yang disarankan: 800x600 atau 1200x800
- Rasio aspek: 16:9 atau 4:3
Video
- Format: MP4, 3GP
- Ukuran maks.: 10MB
- Durasi maks.: 2 menit
- Resolusi yang disarankan: 1280x720
Audio
- Format: MP3, AAC
- Ukuran maks.: 5MB
- Durasi maks.: 5 menit
Fallback ke SMS
RCS otomatis beralih ke SMS ketika:
- Penerima tidak memiliki RCS
- RCS dinonaktifkan di perangkat penerima
- Jaringan tidak mendukung 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"
}
}
Kasus Penggunaan
E-commerce
{
"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"
}
}
]
}
}
Perbankan
{
"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"
}
}
]
}
}
Perjalanan
{
"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"
}
}
]
}
}
Praktik Terbaik
Konten
- ✅ Gunakan gambar berkualitas tinggi (minimum 800x600)
- ✅ Buat teks tombol singkat (2-3 kata)
- ✅ Sediakan fallback SMS untuk konten rich
- ✅ Uji di berbagai perangkat Android
- ❌ Jangan melebihi 4-5 tombol per pesan
- ❌ Hindari file video besar (>5MB)
Media
- Gunakan URL HTTPS untuk semua media
- Optimalkan gambar untuk seluler
- Sertakan teks alternatif untuk aksesibilitas
- Uji URL media sebelum mengirim
Tombol
- Maksimum 4 tombol per pesan
- Teks ajakan bertindak yang jelas
- Uji semua aksi tombol
- Pertimbangkan fallback untuk aksi yang tidak tersedia
Branding
- Gunakan ID pengirim yang konsisten
- Sertakan logo merek bila sesuai
- Pertahankan suara dan nada merek
- Pastikan konsistensi visual
Status Pengiriman
RCS menyediakan pelacakan pengiriman yang ditingkatkan:
- Terkirim ke operator (Sent): Pesan dikirim ke operator
- Tersampaikan (Delivered): Pesan tersampaikan ke perangkat
- Dibaca (Read): Pesan dibuka oleh penerima
- Gagal (Failed): Pengiriman gagal, fallback dipicu
Periksa status menggunakan endpoint status.
Langkah Berikutnya
- Pesan Viber - Pesan rich alternatif
- Pesan SMS - Pesan fallback
- Periksa Status - Lacak pengiriman
- Strategi Fallback - Konfigurasikan fallback