From 090ed9c586bff939bd380f2f82806d2eec140ba6 Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Tue, 17 Jan 2017 08:56:30 -0800 Subject: [PATCH] =?UTF-8?q?Added=20response=20with=20card=C2=A0quick=20sam?= =?UTF-8?q?ple?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d7aa412..76cf089 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ if (intentRequest.Intent.Name.Equals("MyIntentName")) } ``` -## Build the responses +## Build a simple voice response There are various types of responses you can build and this library provides a helper function to build them up. A simple one of having Alexa tell the user something using SSML may look like this: ```csharp -// build the speech response firstValue +// build the speech response var speech = new Alexa.NET.Response.SsmlOutputSpeech(); speech.Ssml = "Today is ????0922.I hope you have a good day."; @@ -53,3 +53,16 @@ speech.Ssml = "Today is ????0922.????0922."; + +// create the card response +var finalResponse = ResponseBuilder.TellWithCard(speech, "Your Card Title", "Your card content text goes here, no HTML formatting honored"); +return finalResponse; + +```