Created
February 9, 2020 23:32
-
-
Save circa10a/c2097b2ef83122a6e71c6a2660263919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func buildFulfillment() *Response { | |
return &Response{ | |
Payload{ | |
Google{ | |
ExpectUserResponse: false, | |
RichResponse: RichResponse{ | |
Items: []Item{ | |
{ | |
SimpleResponse: &SimpleResponse{ | |
TextToSpeech: "This is the default audio response", | |
}, | |
}, | |
{ | |
CarouselBrowse: &CarouselBrowse{ | |
Items: []CarouselItem{ | |
CarouselItem{ | |
Title: "Title1", | |
Description: "Description1", | |
OpenURLAction: OpenURLAction{ | |
URL: "https://example.com/1", | |
}, | |
}, | |
CarouselItem{ | |
Title: "Title2", | |
Description: "Description2", | |
OpenURLAction: OpenURLAction{ | |
URL: "https://example.com/2", | |
}, | |
}, | |
}, | |
}, | |
}, | |
}, | |
}, | |
}, | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment