发送轮播消息,但 smooch 将其渲染为文本,仅描述 link

sending carousel message but smooch rendering it as text, description link only

我正在向 smooch 发送轮播消息,轮播在 smooch 中呈现为文本,但在 facebook Messenger 轮播中呈现。需要在 smooch web messanger 中轮播。

这里是json

msg = {
"role": 'appMaker',
"type": 'carousel',
"items": [{
    "title": 'Tacos',
    "description": 'Description',
    "mediaUrl": 'https://example.com/img.png',
    "actions": [{
        "text": 'Select',
        "type": 'postback',
        "payload": 'TACOS'
    }, {
        "text": 'More info',
        "type": 'link',
        "uri": 'https://example.com'
    }]
}, {
    "title": 'Ramen',
    "description": 'Description',
    "mediaUrl": 'https://example.com/img.png',
    "actions": [{
        "text": 'Select',
        "type": 'postback',
        "payload": 'RAMEN'
    }, {
        "text": 'More info',
        "type": 'link',
        "uri": 'https://example.com'
    }]
}]
}

在撰写本文时,Smooch SDK(Web Messenger、iOS 和 Android)目前不支持轮播消息。有关轮播如何在每个频道上呈现的详细信息,请参阅 Post 轮播消息 API 文档中的 Channel Support 部分。

您还可以使用 Smooch channel capabilities grid 获取有关跨渠道功能支持的概览信息。对于那些标记为 "partial channel support" 的内容,这意味着轮播将呈现文本回退,如您所描述的。