首页 > 解决方案 > 如何在 DialogFLow 中使用 Class Token

问题描述

我第一次使用 DialogFlow,我正在尝试使用 Class Tokens。我该如何使用它们?在 Fulfillment 的内联编辑器中?先感谢您。

标签: dialogflow-esdialogflow-es-fulfillment

解决方案


为了使用类标记,您必须在speechContexts参数中的短语数组中添加标记,该参数recognitionConfig作为输入传递给 webhook 代码中的 detectIntent 或 detectStreamingIntent 函数。

查看这些链接以供参考。

  1. https://cloud.google.com/speech-to-text/docs/speech-adaptation#class_tokens
  2. https://cloud.google.com/dialogflow/es/docs/speech-adaptation
  3. https://cloud.google.com/dialogflow/es/docs/how/detect-intent-stream

推荐阅读