- When the Get Author Quote intent is triggered, the request will come into the webhook with the Action name input.author.quote, and input.author.quote needs to be added to intentHandler, which will execute the sendAuthorQuote function.
The following code handles the request with the Action name input.author.quote triggered by the Get Author Quote intent and will execute the sendAuthorQuote function:
'input.author.quote': () => { sendAuthorQuote(); },
- Now create a sendAuthorQuote function, which will build a response with the request author. When Get Author Quote is triggered, either by the user saying the author's name or by selecting from the list of the authors, the request will be sent with ...