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

Make setVisitorInfo() support notes #17

Open
Elrhino opened this issue Jan 29, 2018 · 7 comments
Open

Make setVisitorInfo() support notes #17

Elrhino opened this issue Jan 29, 2018 · 7 comments

Comments

@Elrhino
Copy link

Elrhino commented Jan 29, 2018

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.

@rshokrizadeh
Copy link
Contributor

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.

junyi added a commit that referenced this issue Jan 8, 2019
RF-1403: Support real time queue position update
@josephwong13
Copy link

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})

@rshokrizadeh
Copy link
Contributor

rshokrizadeh commented Aug 3, 2020

@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

@josephwong13
Copy link

@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"?

@rshokrizadeh
Copy link
Contributor

@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.

@josephwong13
Copy link

@rshokrizadeh I am trying to build a frontend with the websdk:
https://api.zopim.com/web-sdk/#api-methods-234
which I don't think it comes with the "client" object or visitor id. So there are no way to search the visitor with zopim api.

One way I have tried is using the search chat API, and then get the visitor id from the chat:
GET /api/v2/chats/search?q={search_string}

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!

@josephwong13
Copy link

Just an update, I eventually did found the visitor id in the "id token" of the jwt authenticate api call response:
POST https://id.zopim.com/authenticated/web/jwt
The API call is triggered by zendesk sdk init with jwt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants