Runscript

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

Continua a execução do script para um novo script como se fosse uma extensão do script de chamada.

Um dos benefícios de usar Runscript é que você pode criar scripts menores em vez de ter um script grande.

Dependencies

  • O script principal e o subscript devem estar contidos na mesma pasta.
  • O tipo de script principal e o tipo de subscrito devem ser iguais. Por exemplo, se o script principal for um script de telefone, o subscript também deve ser um script de telefone.
  • O ContactID será o mesmo para o script principal e o subscrito.
  • Depois de Runscript acionar o subscript, o script principal passa a execução para o segundo script e não é mais executado. Se você deseja que ambos os scripts sejam executados simultaneamente, use uma Spawn action. Todas as variáveis do primeiro script são deixadas intactas no segundo script.
  • Se você pretende executar outro script e retornar ao primeiro script após a conclusão, incluindo a capacidade de passar e retornar valores (como uma sub-rotina de programação), use Runsub action.
  • O script principal será encerrado quando Runscript acionar o subscript.
  • Todos os scripts chamados por RunScript , Spawn, Runsub ou scripts semelhantes devem ser válidos e ativos. Durante o processo de salvamento, Studio valida todos os scripts chamados por ações. Se algum deles for inválido ou inativo, Studio exibe um erro e você não poderá salvar.

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

E-mail Chat Telefone Correio de Voz Item de Trabalho SMS Digital

Comparison of Similar Actions

As ações a seguir têm funções semelhantes, mas com algumas diferença importantes.

  • Runscript: quando Runscript aciona um subscript, não há como retornar ao primeiro script a partir do subscript.
  • Runsub: quando Runsub aciona um subscript, o script pode retornar ao primeiro script desde que o subscript tenha uma ação Return. A ação Return fornece um valor de volta para a ação Runsub quando o subscript é concluído.

Input Properties

Estas propriedades definem dados que a ação usa durante a execução.

Propriedade

Descrição

legenda

Insira uma frase curta que identifica exclusivamente esta ação no script. A legenda aparece na tela do script no ícone da ação. The default is the action name.

ScriptName

O script que você deseja gerar. Você pode clicar no link Choose Script na parte superior da caixa de propriedades da ação para selecionar um script armazenado para o seu da unidade de negócios.

Result Branch Conditions

None

Script Example

Este exemplo não é um script completo. Trabalho de script adicional é necessário para usar esta ação.

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 IDFechado Um identificador numérico exclusivo atribuído a cada contato. 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?