Loop

Exécute une condition de tronçon répété un nombre de fois spécifié.

La branche Répéter sera exécutée autant de fois que l'indique la propriété Repeat. Par exemple, si Repeat vaut 5, il y aura exactement 5 itérations d’actions suivant la condition de la branche Repeat qui s’exécuteront. Une fois que les itérations définies dans la branche Repeat sont terminées, dès que Loop est exécutée une nouvelle fois, la branche Finish est déclenchée.

Par exemple, dans un menu IVRFermé Menu téléphonique automatisé qui permet aux appelants d'interagir via des commandes vocales, des entrées de touches, ou les deux, pour obtenir des informations, acheminer un appel vocal entrant, ou les deux. , vous pouvez ajouter un menu Loop pour que les contacts réessayent s'ils appuient sur un numéro non valide. Vous pouvez configurer la boucle de façon à ce que les contacts puissent faire de trois tentatives avant d'être transmis à un opérateur.

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.

Générique

Email Conversation Téléphone Messagerie vocale Élément de travail SMS Digital

Input Properties

Ces propriétés définissent les données que l'action utilise lors de son exécution.

Propriété

Description

Repeat Le nombre de fois que la boucle se répétera avant la branche OnFinished soit suivie.
CounterName Nom d'une variable pour recevoir la valeur courante de FromValue plus Step.

Result Branch Conditions

Les conditions de branche de résultat vous permettent de créer des branches dans votre script afin de gérer différents résultats lors de l'exécution d'une action.

Condition

Description

OnFinished

Chemin emprunté lorsque le nombre de répétitions dépasse le nombre spécifié.

OnRepeat

Chemin emprunté alors que le nombre de répétitions actuel est inférieur ou égal au nombre spécifié.

Script Example

Cet exemple n’est pas un script entier. Une rédaction de script complémentaire est requise pour l’utilisation de cette action.

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?