2
votes

I am creating a chatbot using Amazon Lex, and AWS Lambda as the back end. I am trying to do so that when a user asks the chatbot, the chatbot will reply with more than one message. Below is my code.

enter image description here

Is it possible for the chatbot to reply user with separate messages?

An example of it would be something like this. enter image description here

2

2 Answers

3
votes

I think you have to use the Responses section to build dynamic, engaging conversations for your bot. You can create one or more message groups for a response. At runtime, Amazon Lex builds a response by selecting one message from each message group.

Look into the Responses section from below attached link. Replying with Separate Messages

1
votes

Amazon Lex does not support this functionality, but you can apply a workaround which I have used.

You can get complete message from Lex, put some delimiter in between the message where you want to split, and on the client side you can split the message based on the delimiter using javascript. Make sure to give something unique as delimiter.