When a visitor is logged in your website, you can pre-populate the fields using Freshchat.setVisitorDetails() function.

Here are the fields that will be pre-filled 

  • Name 

  • Email 

  • Phone number 

If your widget is installed, then skip 1 & 2

  1. Login to your Freshchat account as an Owner or Manager

  2. Go to Settings -> Installation Snippet, Copy and paste the Installation Snippet before the last body tag in your website

Once you paste the script into your website, ensure you call Freshchat functions after the script loads onto your web page. 

These are some of the ways in which you can access Freshchat functions:

window.onload = function(){

//Freshchat functions


If you are using jquery,


//Freshchat functions


Or, if you’re using Onreadystatechange event,

document.onreadystatechange = function(){

if(document.readystate === ‘complete’){

//Freshchat functions



Here is how you call the Freshchat.setVisitorDetails() function

Prefilled code 2.png

Once visitor starts the conversation, the user can view the details when he clicks on More info

Pre fill Info.png