-
Notifications
You must be signed in to change notification settings - Fork 61
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
Make setVisitorInfo() support notes #17
Comments
Thanks for posting the request @Elrhino. Although we currently do not have plans in the next 6 months to add this API to the Web SDK, we will monitor the demand for later in the year. We will update the thread if/when we decide to add it to a future version. |
RF-1403: Support real time queue position update
Same problem here, it would be nice to have this feature to add notes. As the web-sdk do not provide a visitor id, preventing us from using it to call the zopim api directly and update visitor info. (e.g. https://www.zopim.com/api/v2/chats/{chat_id}) |
@josephwong13 although we have no plans to add notes support to the Web SDK, you can use authenticated visitors to specify an external ID to the visitor. That external ID is recorded and available via the REST API/apps framework. To learn more about authenticated visitors and the external ID via Web SDK, please read the following docs: https://api.zopim.com/web-sdk/#visitor-authentication |
@rshokrizadeh Thanks for the response despite this is not the correct channel. I have tried authenticate user with JWT and created an "external ID" for the user, however, the API I want to use: https://developer.zendesk.com/rest_api/docs/chat/visitors#get-a-visitor require me to know the visitor id, which I don't have. Is there anyway to find user by "external id"? |
@josephwong13 currently, there is no REST endpoint to search/get via external ID. The only API that exposes the external ID today is via the apps framework as part of the visitor object: https://developer.zendesk.com/apps/docs/chat-api/chat_sidebar#visitor.externalid Depending on what you are ultimately trying to build, using a private app that gets the external ID and does other actions is an option you can explore and is something other customers are currently doing today. |
@rshokrizadeh I am trying to build a frontend with the websdk: One way I have tried is using the search chat API, and then get the visitor id from the chat: However, the chat is only available after the chat session end. There is no current way to interact with visitor during chat (e.g. update notes) when using the websdk. Anyway, really appreciate for your help! |
Just an update, I eventually did found the visitor id in the "id token" of the jwt authenticate api call response: |
This is probably not the right place to post this and I don't know if you guys accept feature requests, but it would be great if the
zChat.setVisitorInfo
options would support notes.The text was updated successfully, but these errors were encountered: