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

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

  • March 24, 2021
  • 5 replies
  • 1 view

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


Sushant
  • Newcomer
  • 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


Sushant
  • Newcomer
  • March 24, 2021


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