Actions on google 当我把按钮放进旋转木马时,它会出错
它给出了错误,把我从应用程序中抛出。我想在推送所选项目时转到youtube链接。 当我删除按钮的工作,但它不去链接url。Actions on google 当我把按钮放进旋转木马时,它会出错,actions-on-google,Actions On Google,它给出了错误,把我从应用程序中抛出。我想在推送所选项目时转到youtube链接。 当我删除按钮的工作,但它不去链接url。 错误为格式错误响应无法将Dialogflow响应解析为AppResponse,因为平台响应无效:在平台响应中找不到RichResponse或SystemIntent conv.ask(new Carousel({ items: { 'item 1': { title: 'item 1',
错误为格式错误响应无法将Dialogflow响应解析为AppResponse,因为平台响应无效:在平台响应中找不到RichResponse或SystemIntent
conv.ask(new Carousel({
items: {
'item 1': {
title: 'item 1',
buttons: new Button({
title: 'This is a button',
url: 'https://www.youtube.com/',
}),
url: 'https://www.youtube.com/',
description: 'Description of item 1',
image: new Image({
url: 'https://www.youtube.com/',
alt: 'aa',
})
},
'item 2': {
title: 'item 2',
buttons: new Button({
title: 'This is a button 2',
url: 'https://www.youtube.com/',
}),
url: 'https://www.youtube.com',
description: 'Descript',
image: new Image({
url: 'https://www.youtube.com/',
alt: 'item 2',
})
},
},
}));
如果您想要一组带有链接的项目,则需要使用旋转木马而不是常规的旋转木马。请记住,BrowseCarousel没有按钮
conv.ask(new BrowseCarousel({
items: [
new BrowseCarouselItem({
title: 'Title of item 1',
url: 'https://example.com',
description: 'Description of item 1',
image: new Image({
url: 'https://storage.googleapis.com/actionsresources/logo_assistant_2x_64dp.png',
alt: 'Image alternate text',
}),
footer: 'Item 1 footer',
}),
new BrowseCarouselItem({
title: 'Title of item 2',
url: 'https://example.com',
description: 'Description of item 2',
image: new Image({
url: 'https://storage.googleapis.com/actionsresources/logo_assistant_2x_64dp.png',
alt: 'Image alternate text',
}),
footer: 'Item 2 footer',
}),
],
}));
您能否更新您的问题并包含您收到的错误?由于平台响应无效,格式错误的响应无法将Dialogflow响应解析为AppResponse:在平台响应中找不到RichResponse或SystemIntent