简体   繁体   English

如何在不选择任何一项的情况下在Google Assistant中显示产品列表?

[英]How to show list of products in google assistant without selecting any of them?

Currently i am building a chatbot where i need to display list of products with its description. 目前,我正在构建一个聊天机器人,我需要在其中显示带有其描述的产品列表。 I tried Carousel, Browsable Carousel and List but they all allow to select any options from the list. 我尝试了“轮播”,“浏览轮播”和“列表”,但是它们都允许从列表中选择任何选项。

I want to display the products but do not allow to select any of them. 我想展示产品,但不允许选择其中任何一个。 在此处输入图片说明

I am using dialogflow as NLP and sending fulfillment using action-on-google's dialogflow node.js library. 我将dialogflow用作NLP,并使用Google行动上的dialogflow node.js库发送履行。

Can anyone help me implementing this ? 谁能帮我实现这一目标?

You can try sending a single Basic Card with an image, if that is suitable for the response. 如果适合响应,则可以尝试发送一张带有图像的基本卡 You can also look into using a Table Card , however it doesn't allow for images in the cells - just a single image for the table. 您也可以考虑使用桌卡 ,但是它不允许在单元格中显示图像-仅用于表中的单个图像。

There is no way to prevent a List or Carousel item from being selected, but you can certainly handle the response by ignoring what they've selected and re-prompting them with whatever you've prompted them with after showing the carousel/list. 无法阻止选择“列表”或“轮播”项,但是您可以通过忽略他们选择的内容并在显示轮播/列表后提示您的提示来提示他们,来处理响应。 (Or even just re-showing the list and re-prompting them.) (甚至只是重新显示列表并重新提示。)

However, it really isn't clear why the items are for information only and that speaking them isn't intended to continue the conversation. 但是,目前还不清楚为什么这些项目仅用于提供信息,而说这些项目并不是为了继续进行对话。 Would it make sense that, if a user selected one, you might provide additional information that can be useful? 如果用户选择了一个,您可能会提供有用的其他信息是否有意义? What would a user expect? 用户会期望什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM