Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

Un flujo le permite a tu chatbot tener conversaciones más inteligentes con tus contactos, al 

Highlight
activar/ocultar un grupo de preguntas específicas dentro de la conversación dependiendo de las condiciones que tú definas
 para cada flujo.

 

Por ejemplo, si estás configurando un chatbot de Evaluación del Servicio puedes definir dos flujos:

 

  • Un flujo para los contactos que otorguen una calificación igual o mayor a 8
  • Un segundo flujo para los que califiquen con 7 o menos.

 

Veamos cómo sería la configuración de este ejemplo:

Vista en el configurador

Image Removed

 

Las opciones de configuración de un flujo son:

 

...

Identificador único

...

Se trata de un identificador exclusivo de la pregunta generado de manera automática; se puede cambiar si se desea, respetando que dentro de tu chatbot no haya otra pregunta con el mismo ID.

...

Lógica

...

Esta propiedad te permite seleccionar si quieres que el flujo se active con una condición de lógica SIMPLE (si se cumple una condición) o a través de una expresión COMPLEJA (si se cumple más de una condición).

...

Mostrar si

...

Si seleccionaste que el flujo se activa usando lógica SIMPLE, en el cuadro de diálogo aparecerá esta propiedad que te permite definir el valor de la variable que activa el flujo.

...

Expresión lógica

Si seleccionaste que el flujo se activa usando lógica COMPLEJA, en el cuadro de diálogo aparecerá esta propiedad.

 

Una expresión lógica utiliza operadores relacionales para obtener un resultado de verdadero o falso. Si durante la conversación la expresión se evalúa como “verdadera”, se activa el flujo.

 

A continuación se muestra la sintaxis de los operadores relacionales que están disponibles:

 

...

OPERADOR

...

A flow allows your chatbot to have more intelligent conversations with your contacts; use flows to activate / hide a group of specific questions, depending on logical conditions that you define for each flow.

...


Fo example, if you're designing a chatbot to evaluate the service received by your contacts, you can define two flows for the dialogue:

 

  • Flow 1: for when the rating is equal or higher than 8
  • Flow 2: for when the rating is equal or less than 7

Designer view for FLOW :

Image Added

The configuration options for this type of action are:

Unique ID

This is a unique identifier generated automatically; if you want you can changed it, just remember that within your chatbot two questions can't have the same ID.

Logic

Flows help your bot to have smarter conversations with your users. The answers given by the users can activate a flow of specific questions in the conversation. You can use SIMPLE logic (if one condition is met) or COMPLEX logic (if a number of conditions are met)

Display if

If you selected that the flow is activated using SIMPLE logic this property dialog box appears.

Select a question and what value it must have to activate the flow.

Logical expression

If you selected that the flow is activated using COMPLEX logic this property dialog box appears.

 

A logical expression uses relational operators and it results in true or false. If the expression is true, the questions inside the flow will be displayed.

 

The available relational operators are:

 

OPERATOR

SINTAX

AND

&&

OR

||

IGUAL AEQUAL TO

==

DIFERENTE DEDIFFERENT THAN

!=

MAYOR QUEGREATER THAN

MENOR

QUELESS THAN

MAYOR O IGUAL AGREATER OR EQUAL TO>=MENOR O IGUAL A
LESS OR EQUAL TO<=

AGRUPAR OPERACIÓNGROUP AN OPERATION

( )

 

EJEMPLOSEXAMPLES

Code Block
languagejava
themeEmacs
VARIABLE_1>=8
 
VARIABLE_1>500 && VARIABLE_2>300

VARIABLE_1!=800 || VARIABLE_2==0
 


...