Google Actions: Multiple Locale Support

With Google Actions, you can have one project with multiple locales, so that users from all over the world can connect using their language. If you e.g. want to add a German Flow as an Action to your project, you simple create a new Action package with the locale "de" that connects to your German Flow:

{
    "locale": "de",
    "actions": [{
        "description": "Default Welcome Intent",
        "name": "MAIN",
        "fulfillment": {
            "conversationName": "connectToCognigy"
        },
        "intent": {
            "name": "actions.intent.MAIN"
        }
    }],
      "conversations": {
        "connectToCognigy": {
          "name": "connectToCognigy",
            "url": "https://endpoint-dev.cognigy.com/eab9b53f72abc25dc93506afb3b09ce60b7bb66128b160bd7ab16915063aafe9",
              "inDialogIntents": [
                {
                  "name": "actions.intent.CANCEL"
                }
              ]
        }
      }
}

You can now execute the same command as before in order to add a German Action to your project. You can even update multiple packages at the same time:

./gactions update --action_package action.de.json --action_package action.en.json --project my-project-id

Go here for more information. 


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.