Help Center Mesej RCS

Mesej RCS

RCS (Rich Communication Services) ialah pemesejan generasi seterusnya untuk peranti Android, yang menawarkan media kaya, interaktiviti dan ciri lanjutan melebihi SMS tradisional.

Gambaran Keseluruhan

RCS menyediakan keupayaan pemesejan yang dipertingkat:

  • Media kaya (imej, video, GIF)
  • Butang interaktif dan karusel
  • Resit baca dan penunjuk menaip
  • Had aksara lebih tinggi (sehingga 3072 aksara)
  • Penjejakan penghantaran yang lebih baik
  • Pengenalan penghantar berjenama

Ketersediaan

  • Platform: Peranti Android sahaja
  • Rangkaian: Memerlukan sokongan RCS pembawa
  • Sandaran: Kembali secara automatik kepada SMS jika RCS tidak tersedia

Mesej RCS Asas

Permintaan

{
  "from": "YourBrand",
  "to": "+380XXXXXXXXX",
  "type": "rcs",
  "text": "Your RCS message text with rich formatting"
}

Parameter

ParameterJenisDiperlukanPenerangan
fromstringYaID penghantar abjad angka
tostringYaNombor telefon penerima (E.164)
typestringYaTetapkan kepada "rcs"
textstringYaKandungan mesej (sehingga 3072 aksara)
messageDataobjectTidakMedia kaya dan butang

Jenis Mesej

Teks Sahaja

Mesej teks ringkas dengan had aksara dilanjutkan:

{
  "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 + Imej

{
  "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 + Imej + Butang

{
  "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 + Berbilang Butang

{
  "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"
        }
      }
    ]
  }
}

Karusel RCS

Paparkan berbilang item dalam karusel yang boleh digulung:

{
  "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"
              }
            }
          ]
        }
      ]
    }
  }
}

Tindakan Butang

Buka URL

{
  "text": "Visit Website",
  "action": {
    "type": "openUrl",
    "url": "https://example.com"
  }
}

Dail Nombor Telefon

{
  "text": "Call Us",
  "action": {
    "type": "dial",
    "phoneNumber": "+380XXXXXXXXX"
  }
}

Hantar Lokasi

{
  "text": "Share Location",
  "action": {
    "type": "shareLocation"
  }
}

Acara Kalendar

{
  "text": "Add to Calendar",
  "action": {
    "type": "createCalendarEvent",
    "title": "Appointment",
    "startTime": "2025-01-25T14:00:00Z",
    "endTime": "2025-01-25T15:00:00Z"
  }
}

Spesifikasi Media

Imej

  • Format: JPEG, PNG, GIF
  • Saiz maksimum: 2MB
  • Resolusi disyorkan: 800x600 atau 1200x800
  • Nisbah bidang: 16:9 atau 4:3

Video

  • Format: MP4, 3GP
  • Saiz maksimum: 10MB
  • Tempoh maksimum: 2 minit
  • Resolusi disyorkan: 1280x720

Audio

  • Format: MP3, AAC
  • Saiz maksimum: 5MB
  • Tempoh maksimum: 5 minit

Sandaran kepada SMS

RCS kembali secara automatik kepada SMS apabila:

  • Penerima tidak mempunyai RCS
  • RCS dilumpuhkan pada peranti penerima
  • Rangkaian tidak menyokong 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"
  }
}

Kes Penggunaan

E-dagang

{
  "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"
        }
      }
    ]
  }
}

Pelancongan

{
  "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"
        }
      }
    ]
  }
}

Amalan Terbaik

Kandungan

  • ✅ Gunakan imej berkualiti tinggi (minimum 800x600)
  • ✅ Pastikan teks butang pendek (2-3 perkataan)
  • ✅ Sediakan sandaran SMS untuk kandungan kaya
  • ✅ Uji pada pelbagai peranti Android
  • ❌ Jangan melebihi 4-5 butang bagi setiap mesej
  • ❌ Elakkan fail video besar (>5MB)

Media

  • Gunakan URL HTTPS untuk semua media
  • Optimumkan imej untuk mudah alih
  • Sertakan teks alt untuk kebolehaksesan
  • Uji URL media sebelum menghantar

Butang

  • Maksimum 4 butang bagi setiap mesej
  • Teks seruan tindakan yang jelas
  • Uji semua tindakan butang
  • Pertimbangkan sandaran untuk tindakan yang tidak tersedia

Penjenamaan

  • Gunakan ID penghantar yang konsisten
  • Sertakan logo jenama jika sesuai
  • Kekalkan suara dan nada jenama
  • Pastikan konsistensi visual

Status Penghantaran

RCS menyediakan penjejakan penghantaran yang dipertingkat:

  • Sent: Mesej dihantar kepada pembawa
  • Delivered: Mesej dihantar ke peranti
  • Read: Mesej dibuka oleh penerima
  • Failed: Penghantaran gagal, sandaran dicetuskan

Semak status menggunakan titik akhir status.

Langkah Seterusnya