How to add Table Card in Dialogflow Fulfillment?

时光毁灭记忆、已成空白 提交于 2019-12-11 15:03:45

问题


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:

  • Basic Card
  • Card
  • Carousel Select
  • Image
  • Link Out Suggestion
  • List Select
  • Payload
  • Quick Replies
  • Simple Responses
  • Suggestions
  • Text

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'.

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?

Am I misunderstanding something somewhere along the lines?

Help / Advice appreciated.


回答1:


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.



来源:https://stackoverflow.com/questions/57599794/how-to-add-table-card-in-dialogflow-fulfillment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!