Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature end live chat utterance - Send an utterance to the bot when the user disconnects from Amazon Connect live chat #757

Merged

Conversation

bobpskier
Copy link
Contributor

Issue #, if available:
No Issue

Description of changes:

This pull request allows the lex-web-ui to send an utterance to the configured bot on completion of a live chat. The standard use case would be to kick off a post live chat survey by sending an utterance to the bot. On receipt of the utterance, the bot, for example AWS QnABot, could ask the user for feedback in the form of one or more survey questions. When the utterance is sent, several session attributes are set that provide Amazon Connect context for processing in bot: connect_initial_contact_id, connect_contact_id, and connect_participant_id. The handlers in the bot would typically store this information along with post live chat survey responses.

In addition, to sending the utterance, this pull request allows transcript entries to be redacted before sending to the agent during live chat startup. The use case here is that amazon connect supports reconnecting to an agent after live chat has completed. Without this change, the full transcript would be sent on the new request including any past survey results. Sometimes agents might be upset with seeing past poor survey responses. This feature allows a regex to be defined that when matched will redact those survey results.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ture relevant connect id information and use as session attributes such that the end live chat utterance has a handle on connect attributes when the live chat completed. This is useful if implementing a post live chat survey.
@atjohns
Copy link
Contributor

atjohns commented Nov 7, 2024

Hey, is the copy stuff on the release.sh file still necessary? I assume this came from when the build was not working correctly on Linux but that should have been cleaned up.

@bobpskier
Copy link
Contributor Author

@atjohns Correct. The copy on the release.sh is not necessary for the pr.

@atjohns atjohns merged commit a9b47d2 into aws-samples:development Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants