https://i.stack.imgur.com/oqT5V.png https://i.stack.imgur.com/r3thU.png
{
"currentPage": {
"displayName": "Start Page",
"name": "projects/agent3-293107/locations/global/agents/5ca68c8a-abfc-4b35-a06a-f50cd4b697bd/flows/00000000-0000-0000-0000-000000000000/pages/START_PAGE"
},
"diagnosticInfo": {
"Triggered Transition Names": [
"e03439ef-fc0c-49f1-943e-2b5d46d68474"
],
"Execution Sequence": [
{
"Step 1": {
"InitialState": {
"FlowState": {
"Name": "Default Start Flow",
"PageState": {
"Name": "Start Page",
"Status": "TRANSITION_ROUTING"
}
},
"MatchedIntent": {
"Type": "NLU",
"DisplayName": "Default Welcome Intent",
"Active": true,
"Id": "00000000-0000-0000-0000-000000000000",
"Score": 1
}
},
"Type": "INITIAL_STATE"
}
},
{
"Step 2": {
"Type": "STATE_MACHINE",
"StateMachine": {
"TriggeredIntent": "Default Welcome Intent",
"FlowState": {
"PageState": {
"Name": "Start Page",
"Status": "TRANSITION_ROUTING"
},
"Version": 0,
"Name": "Default Start Flow"
},
"TransitionId": "e03439ef-fc0c-49f1-943e-2b5d46d68474"
}
}
},
{
"Step 3": {
"Type": "FUNCTION_EXECUTION",
"FunctionExecution": {
"Responses": [],
"Webhook": {
"Status": "OK",
"Latency": "95 ms"
}
}
}
},
{
"Step 4": {
"Type": "STATE_MACHINE",
"StateMachine": {
"FlowState": {
"Name": "Default Start Flow",
"Version": 0,
"PageState": {
"Name": "Start Page",
"Status": "TRANSITION_ROUTING"
}
}
}
}
}
],
"Transition Targets Chain": [],
"Webhook Latencies (ms)": [
95
],
"Alternative Matched Intents": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Default Welcome Intent",
"Type": "NLU",
"Score": 1,
"Active": true
}
]
},
"intent": {
"displayName": "Default Welcome Intent",
"name": "projects/agent3-293107/locations/global/agents/5ca68c8a-abfc-4b35-a06a-f50cd4b697bd/intents/00000000-0000-0000-0000-000000000000"
},
"intentDetectionConfidence": 1,
"languageCode": "en",
"match": {
"confidence": 1,
"intent": {
"displayName": "Default Welcome Intent",
"name": "projects/agent3-293107/locations/global/agents/5ca68c8a-abfc-4b35-a06a-f50cd4b697bd/intents/00000000-0000-0000-0000-000000000000"
},
"matchType": "INTENT",
"modelType": "MODEL_TYPE_STANDARD",
"resolvedInput": "hi"
},
"sentimentAnalysisResult": {
"magnitude": 0.3,
"score": 0.3
},
"text": "hi",
"webhookPayloads": [
{}
],
"webhookStatuses": [
{}
]
}
我正在学习如何在 dialogflow CX 实现中使用 webhook。上面的代码是 dialogflow CX 的测试代理模拟器中的“原始响应”。第 3 步说我的 webhook 状态正常,但没有响应。返回的 JSON 内容是否正确?dialogflow CX 如何解析其响应与 ES 不同?