Content Object Type
Type: text
{
"type": "text",
"message": "Halo, ada yang bisa saya bantu?"
}
Type: random randomText
{
"type": "randomText",
"messages": [
"Tentu, silakan.",
"Baik, akan saya periksa.",
"Oke, mohon ditunggu sebentar."
]
}
Type: quickReplies
{
"type": "quickReplies",
"message": "Silakan pilih salah satu menu di bawah ini:",
"quickReplies": [
{
"title": "Cek Status Pesanan",
"value": "payload_cek_status"
},
{
"title": "Bicara dengan CS",
"value": "payload_ke_cs"
}
]
}
Quick Reply Item Structure:
Field
Type
Description
title
String
Button text displayed to user.
value
String
Payload value sent when button is clicked.
Type: cards
Displays one or more interactive cards.
{
"type": "cards",
"elements": [
{
"title": "Produk A",
"subtitle": "Deskripsi singkat mengenai Produk A.",
"buttons": [
{
"type": "postback",
"title": "Pilih Produk A",
"value": "product_a_selected"
}
]
}
]
}
Card Element Structure
Field
Type
Description
title
String
Card title.
subtitle
String
Card subtitle or description.
buttons
Array
Array of button objects.
Button Object Structure
Field
Type
Description
type
String
Button type (e.g., postback).
title
String
Button text.
value
String
Payload value when clicked.
Type: image
{
"type": "image",
"imageUrl": "<https://example.com/promo.jpg>",
"caption": "Promo spesial bulan ini!"
}
Type: audio
{
"type": "audio",
"audioUrl": "<https://example.com/guide.mp3>",
"caption": "Panduan audio"
}
Type: video
{
"type": "video",
"videoUrl": "<https://example.com/tutorial.mp4>",
"caption": "Tutorial lengkap"
}
Type: file
{
"type": "file",
"fileUrl": "<https://example.com/document.pdf>",
"caption": "Dokumen penting"
}
Type: location
{
"type": "location",
"lat": -6.200000,
"long": 106.816666,
"address": "Jl. Medan Merdeka Barat, Jakarta Pusat",
"name": "Kantor Pusat"
}
Last updated
