如何在Dialogflow实现中添加表卡? [英] How to add Table Card in Dialogflow Fulfillment?
问题描述
我一直在通过Webhook / Web API进行Dialogflow的实现,现在正在查看响应中的实现消息部分。我已经意识到它必须是 GoogleCloudDialogflowV2IntentMessage
的列表。
I've been working on my Dialogflow Fulfillment in my Webhook / Web API and I'm now looking at the Fulfillment Messages part of the response. I've realized it has to be a list of GoogleCloudDialogflowV2IntentMessage
.
查看该类的元数据;我看到了:
Looking at the metadata of that class; I see this:
似乎支持所有这些类型的响应:
It seems to support all these types of responses:
- 基本卡
- 卡
- 轮播选择
- 图片
- 链接建议
- 列表选择
- 有效载荷
- 快速回复
- 简单响应
- 建议
- Text
- Basic Card
- Card
- Carousel Select
- Image
- Link Out Suggestion
- List Select
- Payload
- Quick Replies
- Simple Responses
- Suggestions
- Text
在Dialogflow控制台中工作时;如果我点击了 Google助手响应下的添加响应; GoogleCloudDialogflowV2IntentMessage
类中没有直接存在的选项。我感兴趣的选项是:桌卡。
When I was working in the Dialogflow Console; if I clicked on 'Add Response' under the 'Google Assistant' responses; there were options that are not directly in this GoogleCloudDialogflowV2IntentMessage
class. The option I'm interested in is: 'Table Card'.
我如何使我的API返回桌卡作为响应?
How can I make my API return a 'Table Card' as a response?
我能以某种方式在有效载荷属性中传递桌卡的详细信息吗?
Can I somehow pass details of a 'Table Card' in the 'Payload' property?
我误解了
帮助/建议得到赞赏。
推荐答案
TableCard是仅适用于Google助手。它不适用于其他集成类型。使用它会将信息放入特定于平台的 Payload
字段。
The TableCard is available for the Google Assistant only. It is not available for other integration types. Using it puts the information in the platform-specific Payload
field.
您可以在有效载荷
字段-但是它不会给您带来任何好处,除非接收它的平台知道如何处理。
You can put whatever you want in the Payload
field - but it won't do you any good unless the platform that is receiving it knows what to do with it.
这篇关于如何在Dialogflow实现中添加表卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!