CAMPO
Mensaje
Descripción
Debe ser UTF-8 y corresponde al mensaje que se enviará al cliente.
Escriba
Cuerda
DEFECTO
Nulo
OBLIGATORIO
No
CAMPO
Escriba
Descripción
Debe ser "botones" y corresponde al tipo de mensaje que se emitirá.
Escriba
Cuerda
DEFECTO
"Mensaje"
OBLIGATORIO
Sí
CAMPO
Params
Descripción
Botones Componente Objeto
Escriba
Objeto
DEFECTO
Nulo
OBLIGATORIO
Sí
Este complemento te permite agregar botones al mensaje para generar acciones. Los botones pueden enviar un mensaje del cliente al agente, abrir una URL o transferir una conversación a Live.
Ejemplo
Fields
FIELD
Message
Description
Must be UTF-8 and corresponds to the message that will be sent to the client.
Type
String
DEFAULT
Null
REQUIRED
No
FIELD
Type
Description
Must be «buttons» and corresponds to the message type that will be rendered.
Type
String
DEFAULT
«Message»
REQUIRED
Yes
FIELD
Params
Description
Buttons Component Object
Type
Object
DEFAULT
Null
REQUIRED
Yes
Buttons Component Object
FIELD
BlockInput
Description
Block the text field to send message. It can be true or false.
Type
Boolean
DEFAULT
False
REQUIRED
No
FIELD
OneChoice
Description
Allow select a single option. After selecting an option the complement will be blocked. It can be true or false.
Type
Boolean
DEFAULT
False
REQUIRED
No
FIELD
QuickReplies
Description
Show buttons like a quick replies
Type
Boolean
DEFAULT
False
REQUIRED
No
FIELD
Data
Description
Array of Button Objects
Type
Array
DEFAULT
Null
REQUIRED
Yes
Button Object
FIELD
type
Description
Type of actions that will be dispatched for buttons.
It can be «message», «link», «transferToLive», «step» or «call».
If quickReplies is true, button type must by «message» or «link».
Type
String
DEFAULT
«message»
REQUIRED
No
FIELD
label
Description
Text to show into button.
Type
String
DEFAULT
Null
REQUIRED
Yes
FIELD
value
Description
Value to be sent when dispatch the button event.
Type
String
DEFAULT
Null
REQUIRED
Yes
FIELD
conditions
Description
Array of Conditions
Type
Array
DEFAULT
Null
REQUIRED
No
El FormData Complement te permite solicitar datos a un cliente para disparar un evento. El formulario puede transferir la conversación a Live o realizar otros eventos que aún no están disponibles.
Ejemplo
Fields
FIELD
Message
Description
Must be UTF-8 and corresponds to the message that will be sent to the client.
Type
String
DEFAULT
Null
REQUIRED
No
FIELD
Type
Description
Must be «formData» and corresponds to the message type that will be rendered.
Type
String
DEFAULT
«Message»
REQUIRED
Yes
FIELD
Params
Description
FormData Component Object
Type
Object
DEFAULT
Null
REQUIRED
Yes
FormData Component Object
FIELD
type
Description
Type of actions that will be dispatched to submit form. It can be «transfer» or «step».
Type
String
DEFAULT
«transfer»
REQUIRED
No
FIELD
blockinput
Description
Block the text field to send message. It can be true or false.
Type
Boolean
DEFAULT
False
REQUIRED
No
FIELD
groupld
Description
Group Id of AgentIQ to send form data.
Type
integer
DEFAULT
null
REQUIRED
No
FIELD
Data
Description
Array of Input Field Objects.
Type
Array
DEFAULT
Default
Input
Fields
Array
REQUIRED
No
FIELD
nextStep
Description
For forms of steps
Type
string
DEFAULT
Null
REQUIRED
No
Input Field Object
FIELD
ref
Description
Input field reference keyword. Should be on lowerCamelCase and written in English.
Type
string
DEFAULT
Null
REQUIRED
Yes
FIELD
label
Description
Text to show into input field. (like a placeholder).
Type
string
DEFAULT
Null
REQUIRED
Yes
FIELD
type
Description
Type of field. It can be «text», «email», «number», «checkbox», «select» or «search».
Type
string
DEFAULT
«text»
REQUIRED
No
FIELD
required
Description
Required field. Validate that the field is not empty. Validate that the text entered corresponds with the type of field. It can be true or false.
Type
boolean
DEFAULT
False
REQUIRED
No
FIELD
regex
Description
Regular expression for validation. Not include the / at the beginning and end of the string.
Type
String
DEFAULT
Null
REQUIRED
No
FIELD
options
Description
Only to inputs with type «select» and «search» Array of Option Objects.
Type
Array
DEFAULT
Null
REQUIRED
No
FIELD
conditions
Description
Only to inputs with type «select» and «search» is condition field.
Type
boolean
DEFAULT
Null
REQUIRED
No
FIELD
error
Description
All inputs of any type. This field set the error tooltip message shown when the validation fail.
If isn’t setted, a default message will be shown.
Type
string
DEFAULT
Null
REQUIRED
No
FIELD
dependency
Description
This object set a relationship between two fields. When the parent match the value, the child field is shown.
Type
object
DEFAULT
Null
REQUIRED
No
Dependency Object
Un input con esta property object se mostrará cuando el valor del componente padre coincida con el del hijo. El object tiene dos propiedades:
La property requerida en un input con dependency property sólo se valida cuando el input es mostrado.
En el siguiente ejemplo, si el usuario hace click en la casilla de verificación, los dos campos (nombre e email) se mostrarán.