Google Actions: Multiple Locale Support

This page describes how you could have one project with multiple locales. This lets users from all over the world connect using their language.

googleActions.PNG

Warning: Google is sunsetting Conversational Actions on June 13, 2023. This Endpoint will no longer function after this date, and will also be deprecated.

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

See here for more information. 


Comments

0 comments

Please sign in to leave a comment.

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