Email

This card helps to get the email address in a placeholder.

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

Default text that is displayed before the input is given

 

{

"placeholder": "Enter your email"

}

valueNoThe value to be prefilled in the input

{

"value": "patriciaboyle@zylker.com"

}

errorNoThe error message that is displayed when invalid input is given

{

error: {"Please enter a valid email"}

}

​​Note:

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

Channel compatibility and limitations

     

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

Output

Use Case

Copied{
  "type":"email",
  "placeholder" : "Enter your email", 
  "value" : "patriciaboyle@zylker.com",
  "error" : ["Enter a valid email"]
}
Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {And your email address?});
response.put("input", {
"type":"email",
"placeholder" : "Enter the email address", 
"value" : "john@zylker.com",
"error" :{"Enter a valid email address"}
});
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", {And your email address?});
response.put("input", {
"type":"email",
"placeholder" : "Enter the email address", 
"value" : "john@zylker.com",
"error" :{"Enter a valid email address"}
});
result.put("data", response);
return result;
Copied{
  "type":"email",
  "placeholder" : "Enter your email", 
  "value" : "patriciaboyle@zylker.com",
  "error" : ["Enter a valid email"]
}
Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": ["And your email address?"],
  "input" : {
        "type":"email",
        "placeholder" : "Enter the email address", 
        "value" : "zillium.pboyle@zylker.com",
        "error" :["Enter a valid email address"]
    }
}
Copied"user_defined": {
  "zohosalesiq": {
    "replies": ["And your email address?"],
    "input" : 
   {
     "type":"email",
     "placeholder" : "Enter your email", 
     "value" : "patriciaboyle@zylker.com",
     "error" : ["Enter a valid email"]
    }
  }
}
Copied"channelData": {
  "zohosalesiq": {
    "replies": ["And your email address?"],
    "input" : {
	  "type":"email",
  "placeholder" : "Enter your email", 
  "value" : "patriciaboyle@zylker.com",
  "error" : ["Enter a valid email"]
    }
  }
}