Runscript

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

Setzt die Skriptausführung mit einem neuen Skript fort, als wäre es eine Erweiterung des aufrufenden Skripts.

Einer der Vorteile von Runscript ist der, dass Sie kleinere Skripts erstellen können, anstatt ein großes Skript.

Dependencies

  • Hauptskript und Subskript müssen sich im gleichen Ordner befinden.
  • Der Hauptskripttyp und der Subskripttyp müssen gleich sein. Wenn zum Beispiel das Hauptskript ein Telefonskript ist, muss das Subskript ebenfalls ein Telefonskript sein.
  • Die ContactID ist für Hauptskript und Subskript gleich.
  • Nachdem Runscript das Subskript ausgelöst hat, übergibt das Hauptskript die Ausführung an das zweite Skript und wird nicht mehr ausgeführt. Wenn beide Skripte gleichzeitig ausgeführt werden sollen, verwenden Sie eine Spawn action. Alle Variablen aus dem ersten Skript bleiben im zweiten Skript erhalten.
  • Wenn Sie beabsichtigen, ein anderes Skript auszuführen und anschließend zum ersten Skript zurückzukehren, einschließlich der Möglichkeit, Werte zu übergeben und zurückzugeben (wie bei einer Programmierunterroutine), verwenden Sie die Runsub-action.
  • Das Hauptskript wird beendet, sobald Runscript das Subskript auslöst.
  • Alle Skripte, die von RunScript , Spawn, Runsub oder ähnlichen Skripten aufgerufen werden, müssen gültig und aktiv sein. Während des Speichervorgangs validiert Studio alle von Aktionen aufgerufenen Skripte. Wenn eine davon ungültig oder inaktiv ist, zeigt Studio eine Fehlermeldung an und Sie können nicht speichern.

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.

Allgemein

E-Mail Chat Telefon Voicemail Arbeitselement SMS Digital

Comparison of Similar Actions

Die folgenden Aktionen haben ähnliche Funktionen, aber mit einigen wichtigen Unterschieden:

  • Runscript: Wenn Runscript ein Subskript auslöst, gibt es keine Möglichkeit, vom Subskript zum ersten Skript zurückzukehren.
  • Runsub: Wenn Runsub ein Subskript auslöst, kann das Skript zum ersten Skript zurückkehren, sofern das Subskript eine Return-Aktion hat. Die Return-Aktion liefert einen Wert an die Runsub-Aktion zurück, wenn das Subskript beendet ist.

Input Properties

Diese Eigenschaften definieren Daten, die von der Aktion bei der Ausführung verwendet werden.

Eigenschaft

Beschreibung

Caption

Geben Sie eine kurze Phrase ein, mit der diese Aktion im Skript eindeutig identifiziert wird. Die Beschriftung wird im Skript-Arbeitsbereich unter dem Symbol der Aktion angezeigt. The default is the action name.

ScriptName

Das Skript, das Sie erzeugen möchten. Sie können oben im Eigenschaften-Feld der Aktion auf den Link Choose Script klicken, um ein Skript auszuwählen, das für Ihre Geschäftseinheit gespeichert ist.

Result Branch Conditions

None

Script Example

Bei diesem Beispiel handelt es sich nicht um ein vollständiges Skript. Zur Verwendung dieser Aktion muss das Skript vervollständigt werden.

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 IDGeschlossen Eindeutige numerische Kennung, die jedem Kontakt zugewiesen wird 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?