July 2018
Intermediate to advanced
404 pages
9h 5m
English
Previously, Default Welcome intent simply greeted the user with Hello, Welcome to Henry's Fortune Cookie! by setting fulfillmentText in the response object. Let's enhance this by using the simpleResponses object in the fulfillmentMessages property of the response object. The simpleResponses object contains properties called ssml and displayText. The ssml property contains SSML speech and also part of SSML speech the audio sound can be incorporated. displayText is displayed if the device does not have the audio capability.
In ssml, the speech will start with the thunder sound <audio src="https://actions.google.com/sounds/v1/weather/thunder_crack.ogg" /> and then there will be a pause of ...
Read now
Unlock full access