Runscript

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

Zet de scriptuitvoering voort in een ander script, alsof dit een vervolg op het aanroepende script is.

Een van de voordelen van het gebruik van Runscript is dat u meerdere kleinere scripts kunt maken in plaats van één groot script.

Dependencies

  • Het hoofdscript en het subscript moeten in dezelfde map staan.
  • Het type van het hoofdscript en het subscript moet gelijk zijn. Als het hoofdscript bijvoorbeeld een telefoonscript is, moet het subscript ook een telefoonscript zijn.
  • De ContactIDis hetzelfde voor zowel het hoofdscript als het subscript.
  • Nadat Runscript een subscript triggert, geeft het hoofdscript de uitvoering door aan het tweede script en is het hoofdscript niet meer actief. Als u wilt dat beide scripts gelijktijdig worden uitgevoerd, gebruikt u een Spawn action. Alle variabelen uit het eerste script blijven intact in het tweede script.
  • Als u van plan bent een ander script uit te voeren en na voltooiing terug te keren naar het eerste script, met de mogelijkheid om waarden door te geven en te retourneren (zoals bij een subroutine in programmeertalen), gebruik dan Runsub action.
  • Het hoofdscript wordt beëindigd wanneer Runscript het subscript triggert.
  • Alle scripts die door RunScript , Spawn, Runsub of soortgelijke scriptacties worden aangeroepen, moeten geldig en actief zijn. Studio valideert tijdens het opslaan alle scripts die door acties worden aangeroepen. Als een van de scripts ongeldig of inactief is, geeft Studio een foutbericht weer en kunt u niet opslaan.

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.

Generiek

E-mail Chat Telefoon Voicemail Werkitem SMS Digitaal

Comparison of Similar Actions

De volgende acties hebben vergelijkbare functies, maar met enkele belangrijke verschillen:

  • Runscript: wanneer Runscript een subscript triggert, is er geen manier om vanuit het aangeroepen subscript terug te keren naar het eerste script.
  • Runsub: wanneer Runsub een subscript triggert, kan het script terugkeren naar het eerste script, zolang het subscript een Return-actie heeft. De Return-actie retourneert een waarde naar de Runsub-actie wanneer het subscript is voltooid.

Input Properties

Deze eigenschappen definiëren gegevens die de actie gebruikt bij het uitvoeren.

Vertakking

Beschrijving

bijschrift toe

Voer een korte woordgroep in die deze actie in het script uniek identificeert. Het bijschrift verschijnt op het scriptcanvas onder het actiepictogram. The default is the action name.

ScriptName

Het script dat u wilt spawnen. U kunt op de link Choose Script boven aan het eigenschappenvenster van de actie klikken om een script te selecteren dat is opgeslagen voor uw bedrijfseenheid.

Result Branch Conditions

None

Script Example

Dit voorbeeld is geen volledig script. Er is extra scriptwerk vereist om deze actie te gebruiken.

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 IDGesloten Een unieke numerieke identificatiecode die aan een contact is toegewezen 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?