Quiz Builder and Combination Mapping
Elektilo uses an explicit decision matrix rather than algorithmic scoring. Every combination of answers leads directly to a product you choose. This guide explains how the quiz builder functions, how Cartesian product combinations are calculated, and how to use wildcards to streamline large stores.
Steps and options structure
Section titled “Steps and options structure”A quiz consists of an ordered sequence of steps. Each step represents a single question:
- Title: The heading shown to the shopper (e.g., “What is your primary use case?”).
- Subtitle (optional): A clarifying note beneath the question.
- Options: The choices available to the customer. Each option has:
- Label: The customer-facing text displayed on the radio card.
- Value: A short alphanumeric slug (e.g.,
work,gaming,travel) stored as the combination identifier.
Because options function as radio groups, shoppers select exactly one option per step before advancing.
Cartesian product and combination growth
Section titled “Cartesian product and combination growth”When you click Generate combinations, Elektilo calculates the Cartesian product of all your options:
$$\text{Total Combinations} = N_1 \times N_2 \times \dots \times N_k$$
Where $N_i$ is the number of options in step $i$.
Example matrix:
Section titled “Example matrix:”| Step 1 Options | Step 2 Options | Step 3 Options | Resulting Rows |
|---|---|---|---|
| 2 choices | 2 choices | - | 4 rows |
| 3 choices | 3 choices | - | 9 rows |
| 3 choices | 3 choices | 3 choices | 27 rows |
| 4 choices | 4 choices | 4 choices | 64 rows |
Notice how adding a fourth step or five choices per question dramatically increases the number of mappings required. For the best user experience and maintainable catalogs, keep your quiz to 2 or 3 focused questions.
Wildcard matching with the “Any” option
Section titled “Wildcard matching with the “Any” option”When certain steps do not affect the product recommendation, you do not need to create dozens of redundant rows. Elektilo allows you to set any step in a combination row to Any (*).
Precedence and tie-breaking rules
Section titled “Precedence and tie-breaking rules”When a shopper completes the questionnaire, Elektilo evaluates candidate rows using strict precedence rules:
- Exact match wins: A combination row with exact values matching all answers takes first priority over rows containing wildcards.
- Fewest wildcards: If no exact match exists, the row with the fewest Any entries wins.
- List order: If two rows have the same number of wildcard matches, the row positioned higher in your settings table takes precedence.
- Product required: Only rows with an assigned, valid product ID are evaluated.
Example wildcard configuration
Section titled “Example wildcard configuration”Suppose question 1 is “Operating System” (mac, windows) and question 2 is “Form Factor” (desktop, laptop). If you offer a universal laptop stand that fits all laptops regardless of OS, you can define:
- Row 1:
Any+laptop-> Universal Laptop Stand (ID: 101) - Row 2:
mac+desktop-> Mac Studio Dock (ID: 102) - Row 3:
windows+desktop-> PC Tower Stand (ID: 103)
The single wildcard row replaces two separate rows without losing precision.
Missing rows counter
Section titled “Missing rows counter”At the top of the Combinations panel, Elektilo displays a real-time callout:
- All combinations mapped: All possible answer paths have an assigned product.
- X combinations still need a product: Indicates how many Cartesian paths are currently unmapped.
You can safely regenerate combinations at any time. Existing product selections, custom headlines, descriptions, and button labels survive regeneration; only missing rows are appended.
Fallback product architecture
Section titled “Fallback product architecture”In dynamic e-commerce catalogs, products regularly sell out, get discontinued, or get unlisted. If a shopper reaches a combination whose mapped product cannot be purchased, Elektilo does not crash or show an empty box.
Instead, Elektilo verifies live product state on every completion request:
- If the mapped product is deleted, unpurchasable, or out of stock, Elektilo instantly serves the configured Fallback Product.
- If the fallback product itself is unavailable, Elektilo shows a graceful translated notice prompting the user to adjust their choices.