How to Configure and Use the 'Case' Component in wolkvox Studio
Table of Contents
Introduction
The **"Case" component** in wolkvox Studio allows you to create multiple conditional routes within a flow, dividing the customer's path based on the value of a specific variable. Unlike the **"If → Then" (IF) component**, which evaluates complex conditions, the **"Case" component** evaluates only whether a variable exactly matches a defined value. This allows you to create up to **15 different routes**, plus a mandatory **No Match** route.
This component is especially useful when decisions need to be made based on categories, days of the week, states, fixed ranges, or any discrete value.
It is available in all types of routing: **Voice, Interaction, Chat, CRM + Webhook**, and **Agent Scripting**, within the **Basics** component group.
Configuration
- In the **"Variable to Evaluate"** field, enter the name of the variable to be analyzed. It must be written exactly as it was created (including the $ sign). Example: $wolkvox_day_week
- This variable will be compared with each of the values configured as cases.
- In the **"Case Text"** field, enter the exact value that the variable must have to trigger that case.
- Then, select **"Add Case"** to add it to the list.
- Each added case will appear in the table below as an independent item.
- You can delete a case by right-clicking → **"Delete Case Item"**.
- Note: The component allows a maximum of **15 cases**, plus a mandatory **"No Match"** path for when no case matches.
- Important: This component does **not** accept expressions, operations, or comparators. It only compares **variable = value**.
- Click **"Save Case Info"** to confirm the changes.

When connecting the **"Case" component** to other components, a dropdown menu will appear showing the configured cases and the mandatory **"No Match"** option.

This will allow the flow to continue through different routes depending on the evaluated value.
