Versions Compared

Key

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

Esta acción te permite realizar operaciones matemáticas con información enviada previamente por tus contactos, precargada o que hayas obtenido de un sistema externo.

El cálculo permanece oculto para el usuario final.

Te permite realizar cálculos aritméticos que después puedes referenciar para activar un flujo o mostrar datos calculados “al vuelo” a tus contactos.

 

Las opciones de configuración de esta acción 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.

...

Descripción

...

Añade una nota de uso interno para describir el comportamiento de la acción. El texto que captures no se envía a tus usuarios.

...

Fórmula matemática

Suma, resta, multiplica y divide números. Puedes hacer referencia al valor de una pregunta tipo “Entero”, así como agrupar operaciones utilizando paréntesis.

 

...

OPERADOR

...

SINTAXIS

...

SUMA

...

+

...

RESTA

...

-

...

MULTIPLICACIÓN

...

*

...

DIVISIÓN

...

/

...

 

This action allows you to perform basic mathematical operations with information previously sent by your contacts, preloaded or that you have obtained from an external system.

...


 


Tip

TIP: Mathematical operations can be used to activate a flow or to display to the user some "live" calculation.

A "Basic Math" action remains hidden during the conversation,  unless you invoke its value within the text of a question. To invoke the value, all you have to do is start typing the name of the "Basic Math" ID and SmartChat will show a selection list from which you can choose.


Here is an example of the designer view when you invoke "Basic Math" and how the message arrives to the user:

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.

 

Tip

If you are going to store the data you get from your chatbot in a business database, make sure that the unique identifier of the questions match those that are already defined for the fields in your database; This will give you a seamless integration through the API.


Description
Add a note for internal use to describe the behavior of the action. This text is not sent to your users.
Basic math

Add, subtract, multiply and divide numbers. You can reference the IDs of previous Integer type questions and group operations using round brackets; 

 

OPERATOR

SINTAX

ADD

+

SUBSTRACT

-

MULTIPLY

*

DIVIDE

/

GROUP AN OPERATION

( )