Skip to content

Commit

Permalink
Tweak Lex responses
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 29, 2023
1 parent 78de25f commit 91715b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChatGPT/src/main/java/cloud/cleo/squareup/ChatGPTLambda.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private LexV2Response buildQuitResponse(LexV2Event lexRequest) {
// Retain the current session attributes
.withSessionAttributes(lexRequest.getSessionState().getSessionAttributes())
// Send back Quit Intent
.withIntent(Intent.builder().withName("Quit").withState("Fulfilled").build())
.withIntent(Intent.builder().withName("Quit").withState("InProgress").build())
// Indicate the Action
.withDialogAction(DialogAction.builder().withType("Close").build())
.build();
Expand Down Expand Up @@ -338,7 +338,7 @@ private LexV2Response buildTransferResponse(LexV2Event lexRequest, String transf
// Retain the current session attributes
.withSessionAttributes(attrs)
// Send back Transfer Intent and let lex know that caller will fullfil it (namely Chime SMA Controller)
.withIntent(Intent.builder().withName("Transfer").withState("Fulfilled").build())
.withIntent(Intent.builder().withName("Transfer").withState("InProgress").build())
// Indicate the action as delegate, meaning lex won't fullfill, the caller will (Chime SMA Controller)
.withDialogAction(DialogAction.builder().withType("Close").build())
.build();
Expand Down

0 comments on commit 91715b8

Please sign in to comment.