Name

This card helps to get the name of the website visitor.

AttributesMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorname
placeholderYes

Default text that is displayed before the input is given

 

{

"placeholder": "Enter your name"

}

valueNoThe value to be prefilled in the input

{

"value": "Patricia Boyle"

}

errorNoThe error message that is displayed when invalid input is given

{

error: {"Enter name as per govt issued id"}

}

​​Note:

In order to update the values obtained here inside Zoho SalesIQ, you can make use of field_name.

Channel compatibility and limitations

   

The bot will collect all general details such as name, email address, phone number, and other information as similar to the website. 

Output

Use Case

Copied{
  "type":"name",
  "placeholder" : "Enter your name", 
  "value" : "Patricia Boyle",
  "error" : ["Enter name as per govt issued id"]
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {"Great may I know your name?"});
response.put("input", {
	"type":"name",
	"placeholder" : "Enter the name", 
	"value" : "John",
	"error":{"Enter name as per govt issued id"}
});
prompt = Map(); 
prompt.put("param_name", "reply"); 
prompt.put("data", response); 
result.put("prompt", prompt); 
result.put("todo", "prompt");
return result;

//Execution function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {Great may I know your name?});
response.put("input", {
	"type":"name",
	"placeholder" : "Enter the name", 
	"value" : "John",
	"error" " "{Enter name as per govt issued id}"
});
result.put("data", response);
return result;
Copied{
  "type":"name",
  "placeholder" : "Enter your name", 
  "value" : "Patricia Boyle",
  "error" : ["Enter name as per govt issued id"]
}
Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": ["Great! May I know your name?"],
  "input" : {
	"type":"name",
	"placeholder" : "Enter your name", 
	"value" : "Patricia",
	"error" : ["Enter name as per govt issued id"]
	}
}
Copied"user_defined": {
  "zohosalesiq": {
    "replies": ["Great! May I know your name?"],
    "input" : 
   {
     "type":"name",
     "placeholder" : "Enter your name", 
     "value" : "Patricia Boyle",
     "error" : ["Enter name as per govt issued id"]
    }
  }
}
Copied"channelData": {
  "zohosalesiq": {
    "replies": ["Great! May I know your name?"],
    "input" : {
	 "type":"name",
  "placeholder" : "Enter your name", 
  "value" : "Patricia Boyle",
  "error" : ["Enter name as per govt issued id"]
    }
  }
}