【发布时间】:2021-11-30 18:11:16
【问题描述】:
仅获取意图的文本响应,但 api 响应中缺少自定义负载响应。
Dialogflow 原始响应为 Image
{
"allRequiredParamsPresent": true,
"fulfillmentText": "Thanks Dhruva, are you ?",
"fulfillmentMessages": [
{
"text": {
"text": [
"Thanks Dhruva, are you ?"
]
}
},
{
"payload": {
"richContent": [
[
{
"type": "chips",
"options": [
{
"text": "permanent employee"
},
{
"text": "probation employee"
}
]
}
]
]
}
}
]
}
Api 只接收文本而不是自定义负载 Image
从这个post 获得参考,但也无法修复,任何帮助或指出正确的方向将不胜感激。
【问题讨论】:
-
您是否在 PHP 代码中使用任何 Dialogflow 库?
-
是的,使用 ~composer 安装 Google Cloud 客户端库的 dialogflow 组件需要 google/cloud-dialogflow
标签: php api dialogflow-es dialogflow-es-fulfillment