德语版Google助手和Dialogflow

时间:2018-01-03 14:16:46

标签: actions-on-google dialogflow

我创建了一个Google智能助理应用,就像教程中的“Silly Name Maker”一样。

但作为默认语言,我选择了德语。我把它命名为“Spitzname”。 当我进入模拟器页面测试我的应用程序“Spitzname”时,我无法调用该应用程序。

当我触发:“Mit meiner Test-App sprechen”(与德语中的“与我的测试应用程序对话”相同)时,我得到的响应为“Hallo”(与Hello相同)或“Ichgrüßedich”但不是我编写的WELCOME消息。 (我确实删除了所有这些标准的欢迎信息)

我在Welcome-INTENT中编写了一些“用户说”句子,用这些句子启动应用程序。但即使这样我使用完全相同的句子,我也会收到错误:

  

很抱歉,此操作无法在模拟中使用。

它看起来像一些标准代码(“Hallo”欢迎表示它)被执行,但不是我手写的代码。有没有人有想法?

英文教程版本可以正常使用。

这是调试输出:

{
  "agentToAssistantDebug": {
    "agentToAssistantJson": {
      "conversationToken": "[]",
      "expectUserResponse": true,
      "expectedInputs": [
        {
          "inputPrompt": {
            "richInitialPrompt": {
              "items": [
                {
                  "simpleResponse": {
                    "textToSpeech": "Hallo!"
                  }
                }
              ]
            }
          },
          "possibleIntents": [
            {
              "intent": "assistant.intent.action.TEXT"
            }
          ]
        }
      ],
      "responseMetadata": {
        "status": {},
        "queryMatchInfo": {
          "queryMatched": true,
          "intent": "73fd8852-77fd-4199-bcf0-7dd4337cfbfe"
        }
      }
    }
  },
  "assistantToAgentDebug": {
    "assistantToAgentJson": {
      "user": {
        "userId": "ABwppHHaBma7a2MnJ3VTkiOFruguuPJdgJ0q89UpM5vGiiu_cpfzqMGLHIFLCLWmLzDWASivNH6RoTOK82ihgy2PieI",
        "locale": "de-DE",
        "lastSeen": "2018-01-03T15:12:10Z",
        "userStorage": "{\"data\":{}}"
      },
      "conversation": {
        "conversationId": "1514992981116",
        "type": "NEW"
      },
      "inputs": [
        {
          "intent": "actions.intent.MAIN",
          "rawInputs": [
            {
              "inputType": "VOICE",
              "query": "Mit meiner Test-App sprechen"
            }
          ]
        }
      ],
      "surface": {
        "capabilities": [
          {
            "name": "actions.capability.MEDIA_RESPONSE_AUDIO"
          },
          {
            "name": "actions.capability.AUDIO_OUTPUT"
          }
        ]
      },
      "isInSandbox": true,
      "availableSurfaces": [
        {
          "capabilities": [
            {
              "name": "actions.capability.AUDIO_OUTPUT"
            },
            {
              "name": "actions.capability.SCREEN_OUTPUT"
            }
          ]
        }
      ]
    },
    "curlCommand": "curl -v 'https://api.api.ai/api/integrations/google?token=a65b4c9aeb7646d295e19697de9f9593' -H 'Content-Type: application/json;charset=UTF-8' -H 'Google-Actions-API-Version: 2' -H 'Authorization: eyJhbGciOiJSUzI1NiIsImtpZCI6IjFkYjAxNzVkMWM1ZjQ1YTlkZGEyNzlmYzkxYjY3YTEzOGJjMjA1NTUifQ.eyJhdWQiOiJzaWxseW5hbWVtYWtlci01YmI5ZiIsImlzcyI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbSIsImp0aSI6IjNjM2U5N2I2ODYzNGM5OTZiZmYxZWUwMDMwZDkyZmUwMWQ2NTZkNGYiLCJpYXQiOjE1MTQ5OTI5ODEsImV4cCI6MTUxNDk5MzEwMSwibmJmIjoxNTE0OTkyNjgxfQ.XVAMf1B11-KF0OGFGXvq45UOM2CURSshl7GR8B188NCwII_zpJnY9lGJjRE315_j1tSX9IeiTXFGLUQic93IMtAg1VHHyINcuEBdIqRSh4oiZ_7iIiFfZCDDE0AObMQE3r90d3dW4mkaSJ7YoKaXJBL5SpRs_8BVbGkIHMKD5lYmq1MC02HkxH2bLoGYTRthx-Jjpt0jVCFxYfBG1Z-lj3unEwWyufk3D8arlwLdDfeRafQdkLScF2WUaN9rcPDtIViwzOFWGcKOt4W30w27zwe-PMopJA1vEtKY0mA-pxgj1Aqx-40Tn6qx-dQPTdmd4Te6939OGI-fbW8kfHEVxQ'  -A 'Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)' -X POST -d '{\"user\":{\"userId\":\"ABwppHHaBma7a2MnJ3VTkiOFruguuPJdgJ0q89UpM5vGiiu_cpfzqMGLHIFLCLWmLzDWASivNH6RoTOK82ihgy2PieI\",\"locale\":\"de-DE\",\"lastSeen\":\"2018-01-03T15:12:10Z\",\"userStorage\":\"{\\\"data\\\":{}}\"},\"conversation\":{\"conversationId\":\"1514992981116\",\"type\":\"NEW\"},\"inputs\":[{\"intent\":\"actions.intent.MAIN\",\"rawInputs\":[{\"inputType\":\"VOICE\",\"query\":\"Mit meiner Test-App sprechen\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]},\"isInSandbox\":true,\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.AUDIO_OUTPUT\"},{\"name\":\"actions.capability.SCREEN_OUTPUT\"}]}]}'"
  }
}

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

我找到了答案。我必须填写应用程序信息,并为不同的应用程序提供唯一的名称。现在它有效。