JSON input in Amazon Lex test console

0

I'm beginner of AWS. I've made a small test function in Lambda. I want to test it in Lex bot. The Lambda function's in put JSON should look like "{ "messageVersion": "1.0", "invocationSource": "FulfillmentCodeHook", "userId": "John", "sessionAttributes": {}, "bot": { "name": "OrderFlowers", "alias": "$LATEST", "version": "$LATEST" }, "outputDialogMode": "Text", "currentIntent": { "name": "LocateCity", "slots": { "City": "Tianjin" }, "confirmationStatus": "None" } }" I've tested it in Lambda test tool and I've got expected response. But in the bot test console, the input JSON is like { "botAliasId": "TSTALIASID", "botId": "UZEZI19JLY", "localeId": "en_US", "text": "hi", "sessionId": "587464913703324" } So I've got error like "Invalid Lambda Response: Received error response from Lambda: Unhandled". I think it is very obvious issue, but I can't find anyone talking about it. What should I do?

Thanks, Andy

  • Hi Andy, thanks for reaching out. You may find Using an AWS Lambda function page useful in debugging your issue. Lex expects a response from your Lambda function in a certain format. Thanks!

질문됨 2년 전90회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠