Versions Compared

Key

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

 

 

Esta acción te permite realizar 

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

Las operaciones matemáticas te pueden servir para activar un flujo o mostrar cálculos que utilicen alguna respuesta enviada por tu contacto. 

El campo de “Matemáticas básicas” permanece oculto durante la conversación, 

Highlight
invoques su valor adentro del texto de una pregunta
. Para mandar llamar una variable de “Matemáticas básicas”, lo único que tienes que hacer es empezar a escribir el nombre de su identificador y SmartChat te mostrará una lista de selección.

A continuación, un ejemplo de cómo es la vista en el diseñador de SmartChat cuando usas "Matemáticas básicas" y cómo llega el mensaje:

Image Removed

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.

 

Tip
Si vas a almacenar los datos que obtengas de tu chatbot en una base de datos de tu negocio, asegúrate de que el identificador único de las preguntas coincida con los que ya tienes definidos para los campos de tu base de datos; de esta forma tendrás una integración transparente y sencilla a través de la API.

...

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

( )