↑↓ selectEnter openEsc close

    1. Elbuz
    2. Autonomous support
    3. Order actions

    How AI issues a compensation promo code

    3 min readUpdated

    Elbuz gives customers a single-use promo code for their next order when a parcel is late or damaged. The amount follows your percentages; low-markup orders go to an employee.

    When you need this:

    • A parcel was late — 5% of the order total, if the customer agrees.
    • An item arrived dented, but is kept — 10% instead of a return.
    • You fear a loss — no promo code if the markup after the discount is below a threshold.
    • The code is needed on your website — in the Elbuz storefront or on OpenCart 3.

    Where to start: “Autonomous support” → “Policy” → “Action types” → “Compensation promo code”.

    What the AI promo code does

    The “Yes/No” confirmation, the code and the limits are shared by all actions: How AI handles customer order requests on its own.

    Where the promo code is created and when the type is unavailable

    A promo code has to be redeemable somewhere, so the type works only with one of two sources:

    • The built-in Elbuz storefront with orders in the last year — the promo code is created in the storefront.
    • An OpenCart 3 website connected via Elbuz Tunnel with order import — the promo code is created directly in the website database. The tunnel must respond: the program checks availability once an hour.

    If the order came from the OpenCart 3 website, the promo code is created there. With neither a storefront nor a website, the type card shows “Not available in this account”, the mode cannot be switched, and an employee issues the promo code.

    The “Compensation promo code” action type card in Autonomous support → Policy, showing the “Not available in this account” state
    1Platform note
    2Min. markup after discount, %
    3For a delay, % / For damage, %
    1. Platform note — says where the promo code can be issued; here it explains there is nowhere to issue one in this account.
    2. Min. markup after discount, % — the code never gives a discount that leaves the order below this markup.
    3. For a delay, % and For damage, % — the share of the order value offered as compensation in each case.

    The promo code is for a fixed amount, single-use, and valid for “Valid for, days” from today (30 by default). The code has 10 characters, starts with “SA” and avoids look-alike characters such as O and 0.

    How the promo code amount is calculated

    AI works out the reason from the customer's words: a delay or damage. If there is no such reason, AI asks what happened. Then the program calculates:

    1. The percentage for the reason: “For a delay, %” (5) or “For damage, %” (10), but no more than “Promo code up to, %” (10).
    2. The amount is that percentage of the order total, rounded down to a whole number.
    3. The amount is capped at “Promo code up to, UAH” (200).

    Example: a UAH 3,400 order, damaged. 10% is UAH 340, capped at UAH 200. For a delay it is 5%, UAH 170.

    AI writes: “Sorry for the trouble with order #…. We can send you a promo code for … off your next order. Shall we? Reply “Yes” or “No”.” On “Yes”: “Your promo code for order #…: SA… — … off your next order, valid until …. Enter it in the cart's “Promo code” field before checkout. The code is single-use.”

    How the promo code keeps you out of the red

    Before issuing, the program calculates the order markup after the discount: (sale total − promo code − cost price) / cost price. If it is below “Min. markup after discount, %” (15 by default, up to 90), an employee decides.

    Cost price comes from the product cards. If any product in the order has no cost price, or its cost price is not below the sale price, the program cannot calculate and also hands the ticket over to an employee.

    In a catalog without cost prices, a promo code is never issued: every ticket goes to an employee. Fill in cost prices at least for products that often ship late.

    Settings in “Compensation promo code”

    Type fields
    FieldDefaultMaximum
    “Promo code up to, UAH”2005000
    “Promo code up to, %”1050
    “For a delay, %”, “For damage, %”5, 1050
    “Valid for, days”30365
    “Per customer in 90 days”110
    “Min. markup after discount, %”1590
    “Identity check”“L1: contact from the order”—

    One promo code is issued per order. The backtest does not compare promo codes, so the “Live” mode is turned on with the “Enable without verification” checkbox.

    How to disable an issued promo code

    “Undo action” in the “AI actions” block disables the promo code in the storefront or on the website if it has not been used yet.

    A used promo code cannot be disabled: the button replies “The promo code has already been used — undo the action manually”. If the OpenCart 3 website does not respond, the promo code stays active — disable it in the website admin panel.

    Scenarios

    Delays during the sales season

    What to do. Set “For a delay, %” to 5 and “Promo code up to, UAH” to 150.

    What you get. A customer who writes “why is it taking so long” gets an apology and a promo code offer. Employees see the issued codes in “AI actions” and do not have to answer each customer themselves.

    Low-markup electronics

    What to do. Keep “Min. markup after discount, %” at 15 and fill in cost prices.

    What you get. For high-markup accessories, the promo code is issued automatically. For a laptop with an 8% markup, the ticket goes to an employee.

    A store on OpenCart 3

    What you get. Orders come from the website via the tunnel — the promo code is created among the website's coupons, and the customer applies it in the cart on the website.

    FAQ

    Why is the “Compensation promo code” type unavailable?

    There is nowhere to create a promo code: you need the Elbuz storefront with orders in the last year or an OpenCart 3 website via the tunnel with order import (requirements).

    Can I give a percentage promo code instead of a fixed amount?

    No. The percentage only calculates the amount; the promo code is always created for a fixed amount (amount).

    Why didn't AI issue a promo code when there is a reason?

    Most often, the markup after the discount is below the threshold or a product has no cost price. The ticket goes to an employee (markup).

    Does the promo code work on Shopify or Horoshop?

    No. The promo code is created only in the Elbuz storefront or on an OpenCart 3 website; for other platforms, an employee issues it.

    Can I issue a promo code for a wrong item?

    No, the only reasons are a delay and damage. A wrong item is handled as a return or exchange (returns).

    Where it is and who has access

    Menu
    Tickets → gear → “Autonomous support” → “Policy” → “Compensation promo code”
    Access right
    the “Autonomous support” window
    Prepare
    product cost prices; the Elbuz storefront or an OpenCart 3 website via the tunnel

    Related topics

    Was this article helpful?

    Missing a feature? Tell us.

    We will add it for free if other users need it too.

    If only you need it, we will agree on it separately.

    Article contents

    Suggest an improvement

    Try Elbuz free