< script >
chatHeyNow ({
platformId : "identificador_brindado_por_Hey" ,
header : "Chat" ,
});
</ script
< script >
chatHeyNow ({
platformId : "identificador_brindado_por_Hey" ,
auth: [] , // ingreso anónimo al chat
});
</ script >
< script >
chatHeyNow ({
platformId : "identificador_brindado_por_Hey" ,
marging: {l:10,t:40,r:10,b:30} ,
});
</ script >
< script >
chatHeyNow ({
platformId : "identificador_brindado_por_Hey" ,
botConfig: { autoInit: { state: "init", value: "xxx" }}
});
</ script >
< script >
chatHeyNow ({
platformId : "identificador_brindado_por_Hey" ,
botConfig: { initmsg: {
"attachment":{
"type":"template",
"payload":{
"template_type":"generic",
"image_aspect_ratio":"square",
"elements":[
{
"title":"¡Hola !",
"subtitle":"Para comenzar indícanos:",
"image_url":"url de la imagen",
"buttons":[
{
"type":"postback",
"title":"Soy cliente nuevo",
"payload":{ "state":"clienteNuevo" }
},
{
"type":"postback",
"title":"Ya soy cliente",
"payload":{"state":"yaEsCliente"}
}]
}]
}
},
"date":"2019-02-06T19:35:43.027Z",
"messageId":"1234",
"Hey":{
"state":{"name":"menuPrincipal","count":1}
},
"msgType":"message"
}
}
});
</ script >
< div id = "loading" ></ div >
< div id = "container" class = "" >
< div id = "login" class = "hidden" ></ div >
< div id = "chat" class = "" >
< div class = "messages" statename = "init" statecount = "1" >
</ div >
< div class = "sendBox" >
< div id = "menu" class = "close" ></ div >
< input type = "text" >
</ div >
</ div >
</ div >