actions-on-google-nodejs icon indicating copy to clipboard operation
actions-on-google-nodejs copied to clipboard

Action on Google product / beta release cannot recognize Dialogflow SessionEntity

Open thecloain opened this issue 7 years ago • 1 comments

I make service about IoT Service action that users can view their data by using action on google.

It use dialogflow for using session entity to users can call their devices my their name.

I tested well on test deploying version but when i release the production version, it cannot work. I talked about this issue serveral monthes to action on google service team. but they talk to me they don't know detail schedule to fix this issue.

in below, I attatch logs that update session entity log and action call log.

  1. Welcome intent log
2019-01-17 10:53:04.995 {
  "responseId" : "9f9e73a6-e306-49c7-b8bf-e4f89ac6f5e8",
  "queryResult" : {
    "queryText" : "GOOGLE_ASSISTANT_WELCOME",
    "action" : "input.welcome",
    "parameters" : { },
    "allRequiredParamsPresent" : true,
    "fulfillmentText" : "파워매니저 확장 서비스입니다.",
    "fulfillmentMessages" : [ {
      "platform" : "ACTIONS_ON_GOOGLE",
      "simpleResponses" : {
        "simpleResponses" : [ {
          "textToSpeech" : "파워매니저 확장 서비스입니다."
        } ]
      }
    }, {
      "platform" : "ACTIONS_ON_GOOGLE",
      "simpleResponses" : {
        "simpleResponses" : [ {
          "textToSpeech" : "파워매니저 확장 서비스입니다."
        } ]
      }
    }, {
      "text" : {
        "text" : [ "파워매니저 확장 서비스입니다." ]
      }
    } ],
    "outputContexts" : [ {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/google_assistant_welcome"
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_screen_output"
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_audio_output"
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_web_browser"
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_media_response_audio"
    } ],
    "intent" : {
      "name" : "projects/powermanager-extend-df/agent/intents/bff9c895-a084-4eed-9756-53e768e2c88b",
      "displayName" : "welcome"
    },
    "intentDetectionConfidence" : 1.0,
    "languageCode" : "ko"
  },
  "originalDetectIntentRequest" : {
    "source" : "google",
    "version" : "2",
    "payload" : {
      "surface" : {
        "capabilities" : [ {
          "name" : "actions.capability.WEB_BROWSER"
        }, {
          "name" : "actions.capability.MEDIA_RESPONSE_AUDIO"
        }, {
          "name" : "actions.capability.AUDIO_OUTPUT"
        }, {
          "name" : "actions.capability.SCREEN_OUTPUT"
        } ]
      },
      "inputs" : [ {
        "rawInputs" : [ {
          "query" : "AI 파워매니저한테 말하기"
        } ],
        "intent" : "actions.intent.MAIN"
      } ],
      "user" : {
        "lastSeen" : "2018-11-20T00:29:26Z",
        "accessToken" : "20c4a901a9ccf9ce59155b90f574f9679fd9b577",
        "locale" : "ko-KR",
        "userId" : "ABwppHE6zHp51E2nmYcKV6S59MG0enDrC6ndSkQn6q4aRi15uJW3YEnp-BlCwMES8p659ykfKWsM4lAWIarY1ntvucLWIg"
      },
      "conversation" : {
        "conversationId" : "ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ",
        "type" : "NEW"
      },
      "availableSurfaces" : [ {
        "capabilities" : [ {
          "name" : "actions.capability.WEB_BROWSER"
        }, {
          "name" : "actions.capability.AUDIO_OUTPUT"
        }, {
          "name" : "actions.capability.SCREEN_OUTPUT"
        } ]
      } ]
    }
  },
  "session" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ"
}
  1. update session entity log
2019-01-17 10:53:05.803 {
  "name": "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/entityTypes/deviceInfo",
  "entityOverrideMode": "ENTITY_OVERRIDE_MODE_OVERRIDE",
  "entities": [
    {
      "value": "DAWONDNS-B530_W-620194603832",
      "synonyms": [
        "플러그 2",
        "620194603832"
      ]
    },
    {
      "value": "DAWONDNS-B530_W-620194603863",
      "synonyms": [
        "플러그 1",
        "620194603863"
      ]
    },
    {
      "value": "DAWONDNS-P110_W-beddc2ffa18d",
      "synonyms": [
        "벽전원",
        "단상 1"
      ]
    }
  ]
}

3. action intent log
2019-01-17 10:53:38.826 {
  "responseId" : "d05f70bd-f054-4cca-ad4f-26b1e69d3e55",
  "queryResult" : {
    "queryText" : "벽전원 사용량 알려줘",
    "parameters" : {
      "term" : "",
      "device" : "",
      "command" : "usage"
    },
    "fulfillmentText" : "장치이름을 다시 한번 말해주세요",
    "fulfillmentMessages" : [ {
      "platform" : "ACTIONS_ON_GOOGLE",
      "simpleResponses" : {
        "simpleResponses" : [ {
          "textToSpeech" : "장치이름을 다시 한번 말해주세요"
        } ]
      }
    }, {
      "text" : {
        "text" : [ "장치이름을 다시 한번 말해주세요" ]
      }
    } ],
    "outputContexts" : [ {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_screen_output",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/information_use_dialog_params_device",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/information_use_dialog_context",
      "lifespanCount" : 2,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/f7607779-5180-4eb9-b56a-a0ab3622a3d1_id_dialog_context",
      "lifespanCount" : 2,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_audio_output",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/google_assistant_input_type_keyboard",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_media_response_audio",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    }, {
      "name" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ/contexts/actions_capability_web_browser",
      "lifespanCount" : 1,
      "parameters" : {
        "command.original" : "사용량",
        "term.original" : "",
        "device.original" : "",
        "term" : "",
        "device" : "",
        "command" : "usage"
      }
    } ],
    "intent" : {
      "name" : "projects/powermanager-extend-df/agent/intents/f7607779-5180-4eb9-b56a-a0ab3622a3d1",
      "displayName" : "information_use"
    },
    "intentDetectionConfidence" : 0.75,
    "languageCode" : "ko"
  },
  "originalDetectIntentRequest" : {
    "source" : "google",
    "version" : "2",
    "payload" : {
      "surface" : {
        "capabilities" : [ {
          "name" : "actions.capability.SCREEN_OUTPUT"
        }, {
          "name" : "actions.capability.AUDIO_OUTPUT"
        }, {
          "name" : "actions.capability.MEDIA_RESPONSE_AUDIO"
        }, {
          "name" : "actions.capability.WEB_BROWSER"
        } ]
      },
      "inputs" : [ {
        "rawInputs" : [ {
          "query" : "벽전원 사용량 알려줘",
          "inputType" : "KEYBOARD"
        } ],
        "arguments" : [ {
          "rawText" : "벽전원 사용량 알려줘",
          "textValue" : "벽전원 사용량 알려줘",
          "name" : "text"
        } ],
        "intent" : "actions.intent.TEXT"
      } ],
      "user" : {
        "lastSeen" : "2018-11-20T00:29:26Z",
        "accessToken" : "20c4a901a9ccf9ce59155b90f574f9679fd9b577",
        "locale" : "ko-KR",
        "userId" : "ABwppHE6zHp51E2nmYcKV6S59MG0enDrC6ndSkQn6q4aRi15uJW3YEnp-BlCwMES8p659ykfKWsM4lAWIarY1ntvucLWIg"
      },
      "conversation" : {
        "conversationId" : "ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ",
        "type" : "ACTIVE",
        "conversationToken" : "[]"
      },
      "availableSurfaces" : [ {
        "capabilities" : [ {
          "name" : "actions.capability.SCREEN_OUTPUT"
        }, {
          "name" : "actions.capability.AUDIO_OUTPUT"
        }, {
          "name" : "actions.capability.WEB_BROWSER"
        } ]
      } ]
    }
  },
  "session" : "projects/powermanager-extend-df/agent/environments/__aog-35/users/-/sessions/ABwppHEbu4gtFsSMrduv1EBt3e-fMnnuhpYFYfoJAkzBrBVGJc9TDzlmwXSgjfA8pM_XqH48RAVgrdbXK6W0KUHK6xOpMQ"
}

thecloain avatar Jan 17 '19 02:01 thecloain

Have you tried to redeploy recently? We may have fixed the issue since.

Otherwise, a possible workaround is to create a new project and transfer the invocation name.

Canain avatar Mar 25 '19 20:03 Canain