Help Centre Chat Auto-Populate name, email fields from Redirection | The place for Zendesk users to come together and share
Skip to main content
March 24, 2021
Question

Help Centre Chat Auto-Populate name, email fields from Redirection

  • March 24, 2021
  • 5 replies
  • 30 views

I want to auto-populate the name and email field in Help Center Chat Pre Form or Offline Form whenever somebody is coming from my website to the help center -> subdomain.zendesk.com/hc/en-us?name=test-chat&email=testchat@zd.com

Is it possible to capture these details and auto-populate it in chat box?

    5 replies

    Sushant
    Contributor
    March 24, 2021

    Hi Risabh, 

    You should be able to auto-populate name and email with the help of web widget API

    <script type="text/javascript">
      zE(function() {
        zE.identify({
          name: 'John Citizen',
          email: 'john@example.com'
        });
      });
    </script>


    You can find more about web widget API here


    Hope this helps!


    -sushant

    Rishabh11Author
    March 24, 2021

    Hi Sushant, 

    I am redirecting users to the help center from my website, I think the API will work on my website but not help center

    Sushant
    Contributor
    March 24, 2021


    Where you have added the web widget?

    Rishabh11Author
    March 24, 2021

    The chat is enabled on Help Center - company_domain.zendesk.com/hc/en-us

    Sushant
    Contributor
    March 24, 2021


    This should work if you add the above snippet in the header.hbs file