Formatting Lex output String

0

Formatting Lex output String I'm using the C# implementation for Lambda and my code looks like this: Step1: string response = "Hi.. I'm Jenie your virtual assistant.'\n'Test"; Step2: string response = "Hi.. I'm Jenie your virtual assistant.\nTest";

Rakesh
asked 2 years ago336 views
1 Answer
0

Hi Rakesh,

Amazon Lex requires a very specific JSON output response from Lambda. Please look at the following Lex documentation to see the expected response, and make sure your C# code formats the output in a JSON format.

Link: https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html#using-lambda-response-format

Lukas_A
answered 2 years ago
AWS
SUPPORT ENGINEER
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions