Introducing Google Actions Builder Support for Jovo


#1

New integration! You can now build Google Actions with the newly introduced Actions Builder and Jovo.

Learn more here:

Or follow the tutorial to get started:


pinned globally #2

made this a banner . It will appear at the top of every page until it is dismissed by the user. #3

#4

Yay! :tada:


removed this banner . It will no longer appear at the top of every page. #5

#6

@AlexSwe @jan
How do I migrate an existing Jovo project that used DialogFlow to Actions Builder?

What changes do I need to make in the Jovo Model file to support Actions Builder?

How do you handle mapping in the Jovo Model to built-in intents such as actions_intent_CANCEL?

How does Jovo map NO_INPUT and NO_MATCH to FallbackIntent?

What do I do with the dialogflow properties in Jovo Model?

How to create a entity/type in Jovo Model to support @sys.any (any free form text) when converting to Actions Builder?

Do Jovo States automatically map to Actions Builder scenes?


#7

Hey @marktucker

Thank you for your patience.

How do I migrate an existing Jovo project that used DialogFlow to Actions Builder?

The concepts can be pretty different (scenes etc). Therefore, it is hard to provide a seamless migration. Happy to answer specific questions.

What changes do I need to make in the Jovo Model file to support Actions Builder?

As always, It depends on the model.
You can find some examples in our repo:

How do you handle mapping in the Jovo Model to built-in intents such as actions_intent_CANCEL?

Add this to your model:

"googleAssistant": {
		"custom": {
                     "global": {
				"actions.intent.CANCEL": {
					"handler": {
						"webhookHandler": "Jovo"
					}
				}
			}
                    }
}

And update the intentMap in your config.js

 intentMap: {
    'AMAZON.StopIntent': 'END',
    'actions.intent.CANCEL': 'END',
  },

What do I do with the dialogflow properties in Jovo Model?

Any specific in mind? They obviously won’t work, but maybe there is an equivalent function.

How to create a entity/type in Jovo Model to support @sys.any (any free form text) when converting to Actions Builder?

We found a bug here. @rubenaeg is working on it.

Do Jovo States automatically map to Actions Builder scenes?

No, unfortunately, Jovo states can’t be mapped. Here’s an example of how they can be used.

The other questions will be answered tomorrow.


#8

@AlexSwe If I am using Jovo States and it was working using Dialogflow, will States keep working with Actions Builder even if I don’t use Scenes?

I think it will because all intents will be treated as global just like Alexa. Is that correct?


#9

No worries, states work like before.

Just for some use cases like Account linking or push notifications, you have to use scenes.


#10

@rubenaeg fixed a bug in the FreeText functionality

Here’s an example

{
			"name": "MyNameIsIntent",
			"phrases": [
				"{name}",
				"my name is {name}",
				"i am {name}",
				"you can call me {name}"
			],
			"inputs": [
				{
					"name": "name",
					"type": {
						"googleAssistant": "actions.type.FreeText"
					}
				}
			]
		}

New Actions Builder Jovo Model Support for @sys.any
#11

What do I do with the old Default Fallback Intent from dialogflow when moving to actions builder?
@AlexSwe @rubenaeg

  "dialogflow": {
    "intents": [
      {
        "name": "Default Fallback Intent",
        "auto": true,
        "webhookUsed": true,
        "fallbackIntent": true
      }
    ]
  }

In my package.json file, do I remove:

    "jovo-platform-dialogflow"
    "jovo-platform-googleassistant"

and instead add:

"jovo-platform-googleassistantconv"

#13

@AlexSwe @rubenaeg

If I want to use Google features such as Suggestion Chips and lists with Actions Builder, do I include jovo-platform-googleassistant in addition to jovo-platform-googleassistantconv?

I’ve included both packages and then called showList:

this.$googleAction.showList(list);

I am getting the error:

  Message:
  this.$googleAction.showList is not a function

  Stack:
  TypeError: this.$googleAction.showList is not a function

What is the solution?


#14

Are you using the dialogflow platform for anything else? New Actions Builder Jovo Model Support for @sys.any

If yes, it should stay in there. If not, it should be removed.

jovo-platform-googleassistant has to be replaced with jovo-platform-googleassistantconv. They don’t work in parallel, different response formats.

You can find a few examples for rich content here: https://github.com/jovotech/jovo-framework/blob/4bdf07c893c67d103f1c10d4207d8737220f453d/examples/typescript/02_googleassistantconv/rich/src/app.ts

@CraigH also provided a sample repo that implements lists: