Jonathan Smith
Jonathan Smith

Reputation: 2599

Capture "yes" and "no" in AWS Connect "Get Customer Input" block

This seems like a fairly basic requirement, but how do you capture a simple "yes" or "no" chat response in AWS Connect?

I have created a simple "Confirm" Lex intent which accepts utterances of "yes", "y" and "yeah" but the intent still returns a positive outcome even if the user types "no".

Upvotes: 1

Views: 1574

Answers (1)

Aossey
Aossey

Reputation: 935

This can easily be accomplished by created a bot with 2 intentions, one of "yes" and the other for "no". intent list

Add sample utterances for the "yes" intent, for example:

yes utterances

Then do the same for the "no" intent, for example:

no utterances

Then use the Get Customer Input block with your bot, adding both the "Yes" and "No" intents to the block, like this:

Contact Flow

This sample contact flow produces this response, confirming that "no" is recognized, when tested with Amazon Connect chat.

chat test result

Upvotes: 4

Related Questions