How do I customize the pre-chat form?

Return to top

4 Comments

  • Sam Oh

    Hi,

    Like contactForm, is it possible to prefill the pre-chat form?

    prechatForm: {
       fields: [
          { id: 'name', prefill: {'*': 'John Doe'}},
          { id: 'email', prefill: {'*': 'JohnDoe@gmail.com'}},
       ]
    }
    1
  • Thomas Verschoren
    Community Moderator

    Hey,

    What you're looking for is the Identify feature of the Zendesk Widget API:

    https://developer.zendesk.com/embeddables/docs/widget/core#identify

    <script type="text/javascript">
      zE('webWidget', 'identify', {
        name: 'Lex Luthor',
        email: 'ceo@lexcorp.com',
        organization: 'LexCorp'
      });
    </script>

    Note:

    Organization is optional and requires an existing organization with that name in Zendesk Support/Chat

    0
  • Benedikt Badke

    Does the Zendesk Chatbot offer the possibility that a customer must select if he is a new customer or an existing client?

    0
  • Dainne Lucena
    Zendesk Customer Care

    Hi Benedikt Badke

     

    For the Classic Chat Widget, natively it's not possible since that would entail adding another field in the pre-chat form. It can be done by using the Chat SDK though. 

    0

Please sign in to leave a comment.

Powered by Zendesk