Case

Hiermee kunt u meerdere aangepaste vertakkingen instellen op basis van de waarde van de Variable-eigenschap van de actie.

De Case-actie kan bijvoorbeeld worden gebruikt in een chatscript waarin het chatvenster een pre-chat formulier toont aan de klant. Uit een vervolgkeuzelijst op het formulier selecteert de klant een product om over te chatten. De producten worden ingesteld als variabelen in de Begin-actie voor het script en vervolgens wordt de Case-actie gebruikt om verschillende vertakkingen in te stellen, afhankelijk van het product dat de klant heeft geselecteerd.

Er is geen maximum voor het aantal vertakkingen dat kan worden gebruikt in een enkele Case-actie.

Dependencies

  • Voor elke mogelijke variabele waarde, moet u een aangepaste vertakkingsvoorwaarde maken.
  • Verbind altijd de Default-vertakking van de Case -actie. Dit is vooral belangrijk als de variabele in de Variable-eigenschap soms een verschillende of onverwachte waarde bevat. Het verbinden van de Default-vertakking geeft het script een manier voor het afhandelen van onverwachte waarden.

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

Input Properties

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

Vertakking

Beschrijving

Voeg 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.

Variable De naam van de variabele waarvan u wilt dat CASE de waarde ervan haalt.

Result Branch Conditions

Met Resultaatvertakkingsvoorwaarden kunt u vertakkingen maken in uw script om verschillende resultaten te behandelen wanneer de actie wordt uitgevoerd.

Voorwaarde

Beschrijving

Default Het pad dat altijd wordt gevolgd, behalve als het script voldoet aan een voorwaarde die vereist dat het een van de andere vertakkingen volgt. Dit pad wordt ook gevolgd als de andere vertakkingen van de actie niet zijn gedefinieerd.

Add a Variable Branch to a CASE Action

Case variables are added by using the connector or link to the appropriate action.

  1. On the canvas, drag a connector from the Case action to a different action.

    The Pick Branch window will open, as follows:

  2. Click the Plus sign (+) to create a new branch.

  3. Enter the value of the variable that will trigger this branch to be taken, for example '1.'
  4. Click OK.
  5. Repeat as needed for each branch.

Script Example

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

In this example, Case is connected to three different Runscript actions. If a call comes in with a DNISGesloten Dit is het nummer dat een klant heeft gebeld om uw organisatie te bereiken (inbound), of het nummer dat de agent of het systeem heeft gebeld om een klant te bereiken (outbound). of 8881234567, then the Sales Runscript action runs a designated subscript. If the DNIS is 8771234567, then the Collections Runscript action runs a different script. Finally, if call does not come in on either of those DNIS numbers, the Customer Service Runscript action triggers a subscript.

Would you like to download this script?