Help Centre Chat Auto-Populate name, email fields from Redirection | Community
Skip to main content

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

  • March 24, 2021
  • 5 replies
  • 0 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

Integriq
  • 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


  • Author
  • 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


Integriq
  • March 24, 2021


Where you have added the web widget?


  • Author
  • March 24, 2021

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


Integriq
  • March 24, 2021


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