Is Action Builder Supported by Jovo?

google-assistant

#1

Does the new Action Builder work with Jovo?

Action Builder

I tried using Jovo today and got this error in LAUNCH:
Code: ERR_NO_MATCHING_PLATFORM Message: Can't handle request object.

Here’s the Main Invocation Route in Actions Builder.

  • Webhook: checked.
  • Event Handler: LAUNCH


#2

Thx to @omenocal for replying via Twitter:
Screenshot%20from%202020-09-30%2015-35-08

Looks like @AlexSwe added an npm package here.

We then added the package with:
npm i jovo-platform-googleassistant

Inside our app.js code we changed the import of GoogleAssistant
Screenshot%20from%202020-09-30%2015-37-08
// const { GoogleAssistant } = require('jovo-platform-googleassistant');
const { GoogleAssistant } = require('jovo-platform-googleassistantconv');


#3

Works with Bugs

Looks like some features on Jovo haven’t been implemented yet.

Features still needing implemented to Action Builder:

  • Suggestion Chips
  • MediaResponse

Error:
Message: this.$googleAction.showSuggestionChips is not a function


#4

With help from @AlexSwe I have MediaResponse working for Action Builder.

Try this code:

this.$googleAction.$audioPlayer.playAudio(
			{
				name: 'Media name',
				description: 'Media description',
				url:
					'https://storage.googleapis.com/automotive-media/Jazz_In_Paris.mp3',
				image: {
					large: {
						alt: 'Jazz in Paris album art',
						height: 0,
						url:
							'https://storage.googleapis.com/automotive-media/album_art.jpg',
						width: 0,
					},
				},
			},
		);
		this.ask('start audio');

CALLBACK FUNCTIONS

AUDIOPLAYER: {
 'GoogleAction.Paused'() {
  // no response posible
  this.tell('Playback paused');
 },
 'GoogleAction.Stopped'() {
  // no response posible
 },
 'GoogleAction.Finished'() {
  this.tell('Playback finished');
 },
 'GoogleAction.Failed'() {
  this.tell('Playback failed');
 },
},

With MediaPlayer beware:

But the behavior is weird sometimes. Some events don’t get called in the simulator.
It’s more of a Google thing. Unfortunately we can’t fix that - @AlexSwe


#5

You can find a getting started tutorial here: