يتيح لك Voxys Connect إنشاء أنواع من الرسائل التفاعلية، مثل البطاقات والنماذج، داخل أداة Voxys Connect Web Widget باستخدام واجهات برمجة التطبيقات (API).
يمكنك إنشاء هذه الرسائل باستخدام واجهة برمجة التطبيقات (API) لإنشاء رسالة جديدة.

أمثلة على الحمولة
استخدم أمثلة الحمولة التالية كقيم لإنشاء رسائل تفاعلية متنوعة.
1. الخيارات
{
"content": "اختر أحد العناصر أدناه",
"content_type": "input_select",
"content_attributes": {
"items": [
{ "title": "Option1", "value": "Option 1" },
{ "title": "Option2", "value": "Option 2" }
]
},
"private":false
}
2. النموذج
{
"content": "form",
"content_type": "form",
"content_attributes": {
"items": [
{
"name": "email",
"placeholder": "يرجى إدخال بريدك الإلكتروني",
"type": "email",
"label": "البريد الإلكتروني",
"default": "[email protected]"
},
{
"name": "text_aread",
"placeholder": "يرجى إدخال نص"،
"type": "text_area",
"label": "نص كبير"،
"default": "نص نموذجي"
},
{
"name": "text",
"placeholder": "يرجى إدخال نص",
"type": "text",
"label": "نص",
"default": "نص نموذجي"
},
{
"name": "select",
"label": "اختر خيارًا",
"type": "select",
"options": [
{
"label": "🌯 بوريتو",
"value": "بوريتو"
},
{
"label": "🍝 باستا"،
"value": "باستا"
}
]
}
]
},
"private": false
}
3. البطاقات
{
"content": "رسالة البطاقة"،
"content_type":"cards"،
"content_attributes":{
"items":[
{
"media_url":"https://assets.ajio.com/medias/sys_master/root/hdb/h9a/13582024212510/-1117Wx1400H-460345219-white-MODEL.jpg",
"title":"Nike Shoes 2.0",
"description":"Running with Nike Shoe 2.0",
"actions":[
{
"type":"link",
"text":"View More",
"uri":"google.com"
},
{
"type":"postback",
"text":"إضافة إلى سلة التسوق",
"payload":"ITEM_SELECTED"
}
]
}
]
},
"private":false
}
4. المقالات
{
"content": "articles",
"content_type": "article",
"content_attributes": {
"items": [
{ "title": "API start guide", "description": "A random start api guide", "link": "http://google.com" },
{ "title": "وثائق التطوير", "description": "وثائق وإرشادات التطوير", "link": "http://google.com" }
]
},
"private":false
}