July 2018
Intermediate to advanced
404 pages
9h 5m
English
You will be adding quotes to the Inline Editor that you just worked on. Go to Fulfillment in Dialogflow and add an array of nine quotes to the code. Notice here that there is author information and tags, which you will use to build the Get Author Quote intent.
The following variable array, named quotes, contains nine quotes, from which you will randomly select one and respond to the user when the Get Quote intent is triggered:
const quotes = [ { "author": "T. S. Eliot", "tags": "happy", "quote": "Do not stop to ask what is it; Let us go and make our visit." }, { "author": "J. B. White", "tags": "happy", "quote": "at least I thought I was dancing, til somebody stepped on my hand." }, { "author": ...Read now
Unlock full access