Recent searches


No recent searches

Fill Name and Email in Messaging Chat via API (mobile app related)



Posted Aug 03, 2023

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


4

0

0 comments

Please sign in to leave a comment.

Didn't find what you're looking for?

New post