Fill Name and Email in Messaging Chat via API (mobile app related)
Hi there,
I'm wondering maybe somebody has the solutions for a proper Messaging chat integration where end-user email would be visible to agents.
I'm going to write what I have discovered during various attempts to add Messaging chat to mobile app.
Integration with Zendesk SDKs
We followed the guidelines here Enabling authenticated visitors for messaging with Zendesk SDKs
This integration allows to create chats and even has email property in the payload:
{
"external_id": “test_12345”,
"email": “janes@soap.com”,
"exp": “1639608035”,
"name": “Jane Soap”,
"scope": “user”
}
The chat gets created in Zendesk but email is not visible anywhere in requester profile. Here is an example from user's profile:
This is also confirmed in their documentation here:Enabling authenticated visitors for messaging with Zendesk SDKs
Problem:
Chat conversation/ticket is not going to get associated with already existing end-user's profile. When chat conversation/ticket is created in Zendesk, a new requester gets created despite the fact that the we already have the end-user with that email in our account. So we cannot locate the user in other system and we cannot use any integrations because we don't have main user's identification - email.
API Integration
It's possible to make API integration with Classic widget where email can be provide.
Ref Chat API
zE('webWidget', 'prefill', {
name: {
value: {name},
readOnly: false,
},
email: {
value: {email},
readOnly: false,
}
});
We were able to take name and email from mobile and fill the details in Classic chat form, the app is placed in a separate web page and that web page is placed so called mobile view. Couple of elements are removed with CSS but in general it works fine.
Problem:
It's not possible to pass name and email via API to Messaging Chat. There is no documentation for it developer.zendesk.com/api-reference neither here developer.zendesk.com/api-reference/widget-messaging/web/core/
I would appreciate if somebody has a solution for it or if Zendesk could allow to fill name and email via API.
Thank you
-
Hello Administration Account,
Unfortunately, this is a known issue that existed since the beginning: While you can prefill ticket custom fields, you cannot prefill name and email with Messaging. Basically, you have 2 options:
- Provision your end users to Zendesk as they are created. Do not rely on JWT authentication to create users only when they get in touch because it will ignore email addresses (probably the best solution).
- Create custom app/integration that retrieves user email from SunCo. A workaround provided by another community moderator.
Hopefully none of this will be needed when Zendesk starts to sync user email from the JWT, which we all hope is soon.
Vous devez vous connecter pour laisser un commentaire.
1 Commentaires