WideChat / Rocket.Chat

Have your own Slack like online chat, built with Meteor.
https://rocket.chat/
Other
3 stars 1 forks source link

[Customer Survey] Navigate to the Customer Survey url within the widget after a session with live agent is closed. #1126

Closed ear-dev closed 2 years ago

ear-dev commented 2 years ago

The salesforce API now includes a postChatUrl attribute that we can use to redirect our visitors to the customer survey after a live agent chat has been closed.

image

Full user journey designs will be available soon..... but....

ear-dev commented 2 years ago

Question: How and when does the postChatUrl arrive?

Can we present text and a button at the end of a chat. The button needs to trigger a link.

Web:

Mobile:

ear-dev commented 2 years ago

current test survey page: https://viasat.az1.qualtrics.com/jfe/preview/SV_5u8rNKWJdqi5r5c?Q_CHL=preview&Q_SurveyVersionID=

ear-dev commented 2 years ago

@bhardwajaditya image

ear-dev commented 2 years ago

@bhardwajaditya Steve found this link for the salesforce API, and it includes some response body's with postChatUrl: https://developer.salesforce.com/docs/atlas.en-us.live_agent_rest.meta/live_agent_rest/live_agent_rest_response_bodies.htm

Maybe that helps some? Seems like it's contained in a few early responses we might have a handle on...

ear-dev commented 2 years ago

https://github.com/widechat/apps.salesforce.liveagent/blob/4fe5162ea6cda55aa1c3a2d2a338509d636708e1/handlers/InitiateSalesforceSessionHandler.ts#L146

That response will have the postChatUrl....... :-)

bhardwajaditya commented 2 years ago

@ear-dev that's great it should solve what I was looking for . Thanks

ear-dev commented 2 years ago

@Shailesh351 can you review these PRs please... thanks