Runscript

The icon for the Runscript action - a curved piece of paper.

Continúa la ejecución de la secuencia de comandos a una nueva secuencia de comandos como si fuera una extensión de la secuencia de comandos de llamada.

Uno de los beneficios de usar Runscript es que se pueden crear scripts más pequeños, en lugar de tener uno grande.

Dependencies

  • La secuencia de comandos principal y la sub-secuencia deben estar en la misma carpeta.
  • El tipo de secuencia de comandos principal y el tipo de subíndice deben ser iguales. Por ejemplo, si la secuencia de comandos principal es una secuencia de comandos de teléfono, el subíndice también debe ser una secuencia de comandos de teléfono.
  • El ContactIDserá el mismo tanto para el script principal como para el subscript.
  • Después de que Runscript active el subscript, el script principal pasa la ejecución al segundo script y ya no se ejecuta. Si desea que ambos scripts se ejecuten de forma simultánea, use un Spawn action. Todas las variables del primer script se dejan intactas en el segundo script.
  • Si quiere ejecutar otro script y volver al primer script una vez completado, incluida la capacidad de pasar y devolver los valores (como una subrutina de programación), use Runsub action.
  • El script principal finalizará cuando Runscript active el subscript.
  • Todos los scripts solicitados por RunScript , Spawn, Runsub o scripts similares deben ser válidos y activos. Durante el proceso de de guardar, Studio valida todos los scripts solicitados por acciones. Si alguno no es válido o está inactivo, Studio muestra un error y no es posible guardarlo.

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

Genérico

Correo electrónico Conversación Teléfono Correo de voz Elemento de trabajo SMS Digital

Comparison of Similar Actions

Las siguientes acciones tienen funciones similares, pero con algunas diferencias clave:

  • Runscript: Cuando Runscript ejecuta un subscript,, no hay forma de volver al primer script desde el subscript.
  • Runsub: Cuando Runsub activa un subscript, el script puede volver al primero, en tanto que el subscript tenga una acción Return. La acción Return devuelve un valor a la acción Runsub cuando finaliza el subscript.

Input Properties

Estas propiedades definen los datos que utiliza la acción al ejecutarse.

Propiedad

Descripción

Leyenda

Ingrese una frase corta que identifique de forma única esta acción en el script. La leyenda aparece en el lienzo del script debajo del ícono de acción. The default is the action name.

ScriptName

El script que quiere generar. Puede hacer clic en el enlace Choose Script en la parte superior del cuadro de propiedades de la acción para seleccionar un script almacenado para su de la unidad de negocio.

Result Branch Conditions

None

Script Example

Este ejemplo no es un script completo. Se requiere trabajo adicional en el script para usar esta acción.

The following example is a part of a much larger script. In this example, Runsub triggers a different script, in which the Return action enables the Case action in the script below to determine whether the organization is open, closed, or on holiday. If it is determined that the office is closed or on holiday, a Play action will play a specific message (either a closed message or a holiday message). The Runscript will then terminate the script and trigger the subscript.

An example script, showing Studio actions with arrows connecting them. Each action has a label beneath it to indicate what the action does in the script.

Would you like to download this script?

The subscript that Runscript triggers is shown below. The script enables the contact to leave a message. The main script passed a variable with the caller ID and contact IDCerrado Un identificador numérico único asignado a cada contacto to the subscript, which enables the contact to leave a message, review a message, take corrective action if no voice was heard, or to enable the contact to re-record their message.

An example script, showing Studio actions with arrows connecting them. Each action has a label beneath it to indicate what the action does in the script.

Would you like to download this script?