Visitor Information in Chat Conversations API


  • Sutrisno Suryajaya
    Comment actions Permalink

    Hi Apurv,


    As noted from the "Message" schema, "from" field has a type of "User" which can be either an "Agent" or "Visitor". Both agent and visitor has "email" field but with different type (non-nullable string for agent and nullable string for visitor). Because of this, you will need to use inline fragment to access visitor's email. As an example:

    Hope it helps!


Please sign in to leave a comment.

Powered by Zendesk