gpt4 book ai didi

dialogflow-es - 如何使用 DialogFlow 的 REST API 设置响应变体

转载 作者:行者123 更新时间:2023-12-05 07:39:37 26 4
gpt4 key购买 nike

我正在尝试使用此处提到的/intents API 资源创建文本变体: https://dialogflow.com/docs/reference/agent/intents

但是,似乎没有办法做这样的事情。如果我将 JSON 发送为:

"responses": [
{
"messages": [
{
"speech": "Okay response variant 01",
"type": 0
},
{
"speech": "Okay response variant 02",
"type": 0
}
],

它会创建 2 条完整的响应文本消息而不是文本变体,您知道我在 JSON 上可能缺少什么来将响应创建为文本变体吗?

提前致谢

最佳答案

我知道是几十年前的事了,但是碰巧碰到了,想赶紧离开这个例子。也许它会帮助下一个来看这里的人。 :)

  "messages": [
{
"type": "0",
"title": "",
"textToSpeech": "",
"lang": "en",
"speech": [
"Okay response variant 01",
"Okay response variant 02",
"Okay response variant 03"
],
"condition": ""
}
],

关于dialogflow-es - 如何使用 DialogFlow 的 REST API 设置响应变体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47008146/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com