Loop

Executa uma condição de ramal repetida por um número especificado de vezes.

O ramal Repetir será executado quantas vezes for indicado pela propriedade Repeat. Por exemplo, se Repeat for 5, exatamente 5 iterações das ações após a condição do ramal Repeat serão executadas. Depois que as iterações definidas no ramal Repeat forem concluídas, na próxima vez que o Loop for executado, o ramal Finish será acionado.

Por exemplo, em um menu de IVRFechado Menu de telefone automatizado que permite que os chamadores interajam por meio de comandos de voz, entradas de teclas ou ambos para obter informações, encaminhar uma chamada de voz de entrada ou ambos., você pode adicionar uma Loop para que contatos possam tentar novamente caso pressionem um número inválido. Você pode definir o loop de forma que ele dê aos contatos três tentativas antes de enviá-los a um operador.

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

Input Properties

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

Propriedade

Descrição

Repeat O número de vezes que o loop será repetido antes que o ramal OnFinished seja tomado.
CounterName Nome de uma variável para receber o valor atual de FromValue mais Step.

Result Branch Conditions

Condições de ramal resultante permitem que você crie ramais no seu script para atender diferentes resultados quando uma ação é executada.

Condição

Descrição

OnFinished

Caminho percorrido quando a contagem de repetições excede o número especificado.

OnRepeat

Caminho percorrido enquanto a contagem atual de repetições é menor ou igual ao número especificado.

Script Example

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

fter the script is triggered, Voiceparams sets the text-to-speech voice and Hours sets the hours of operation (using the Hours of Operation profile). When the script reaches the Menu action, a message is played, asking the caller to press 1 to request an agent. If 1 is not pressed in 5 seconds (set in the Menu Timeout property), then the Loop will be triggered, at which time a message will play, telling the contact to try again. The loop will occur three times, and on the fourth time, the loop will follow the Finished branch instead of the Repeat branch. On the Finished branch, a different message will play, telling the contact to call back later and then hangs up the call.

Would you like to download this script?

In a simple event, when a call is placed on hold a loop will occur in which music plays, followed by a message, followed by music and another message and so on until the call is taken off hold.

Would you like to download this script?