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

Prevent ChatWidget from disappearing after client clicks 'End Chat' #207

Open
outplex opened this issue Apr 25, 2024 · 5 comments
Open

Prevent ChatWidget from disappearing after client clicks 'End Chat' #207

outplex opened this issue Apr 25, 2024 · 5 comments
Labels
✨ Enhancement Non-essential updates

Comments

@outplex
Copy link

outplex commented Apr 25, 2024

Hi team,

I hope this is the right place to bring this issue.

We are using the customChatWidget solution and we have implemented this post chat survey functionality, and it works great. However, clients don't have a chance to see the survey if they are the ones ending the conversation, as the ChatWidget disappears soon as they click the "End chat" button.

We haven't been able to locate the End Chat's onClick function in order for us to change this behavior and prevent the ChatWidget from disappearing, so clients are able to see the post chat survey.

Is this something that can be customized using the customChatWidget solution? or should we use a different solution with less abstraction and more low level code access?

Thanks,

@doreechi
Copy link
Contributor

Hi, we currently don't support the ability to give post chat survey if clients are the ones ending the conversation.

@doreechi doreechi added the ✨ Enhancement Non-essential updates label Apr 26, 2024
@outplex
Copy link
Author

outplex commented Apr 30, 2024

@doreechi thanks for your response.

Do you know if we can customize the End Chat button using this solution? If not, could you point me to the solution that would allow me to do that, please?

I'm trying to find a way to circumvent this by maybe calling a Lex bot when a client clicks on End Chat.

Thanks for your help.

@xiajon
Copy link
Contributor

xiajon commented Sep 6, 2024

One option is to start a new chat with a related contact id when the user clicks the end chat button and pass in a contact attribute postChatSurvey = true. You can setup your contact flow to check this attribute and route to the same lexbot block as your disconnect flow. By using related contact id, you can associate this new contact to the initial contact that was started by the customer so that the form submission result can be associated

@mrajatttt
Copy link
Collaborator

Hi @outplex , did John's suggestion solve your problem?

@outplex
Copy link
Author

outplex commented Sep 27, 2024

Hi @mrajatttt . We ended up creating a custom survey solution leveraging Amazon API Gateway and a Lambda function. Thanks for follwoing up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Enhancement Non-essential updates
Projects
None yet
Development

No branches or pull requests

4 participants