Browse Vivid Relay for Shopify and Telegram documentation
Guide

Ordering in Telegram

How customers write orders, how lines are matched and clarified, what the preview shows, and how Confirm, cancellation, and repeat orders work.

Last verified
Product
Vivid Relay for Shopify and Telegram

A connected customer orders in a private chat with your bot. /start or /help shows the bot's guide How to order, and /orders shows the customer's recent orders.

Write an order

Customers can write the way they would write to a sales rep, in any language, with a quantity for each product:

Please send 10 boxes of A4 copy paper and 3 black toners

Or they can send one product code per line, with its SKU or barcode and the quantity:

ABC-123 x 5

4006381333931: 12

Rules for both forms:

  • up to 50 lines in one message and in one order;

  • quantities from 1 to 999,999;

  • messages up to 4,096 characters;

  • several messages add to the same open order, in the order they were sent.

Units and packaging words such as "boxes" stay part of the product description. The quantity applies to the matched variant; no unit conversion is done. A line without a stated quantity becomes a question, because quantities are never guessed.

The product-code form is read exactly, without AI, when every line uses it and every code is a SKU, barcode, or store-wide alias of your store. Codes are matched regardless of letter case. Any other message is read by AI-powered matching.

How lines are matched

Each line is matched in this order:

  1. an exact SKU or barcode;

  2. a store-wide alias that you created;

  3. a phrase this account linked to a product in an earlier order;

  4. matching from the customer's words, which also considers what the account ordered before.

A product is placed automatically only when one match is clearly the best. Customers are offered only products their account can order: for a company location, products that are not published to it are never shown. Unknown products are reported as not available; they are never replaced with similar products or added as custom lines.

Questions

When a line is unclear, the preview comes first and a question follows, one at a time, headed Question 1 of 2 and so on:

  • Which product did you mean? Up to five options. The customer taps an option, replies with its number or a detail such as a size or color, taps None of these to describe it differently, or taps Remove line.

  • How many? The customer types a whole number.

  • Already in your order. The customer chooses Add, Replace, or Keep as is.

  • Which line of your order do you mean? When a change could apply to several lines.

  • Not available or not found. The customer can describe it differently, send its product code, or remove the line.

The order preview

The preview lists each line with its product and variant, code, quantity, price, total, and availability, followed by the subtotal. Prices come from Shopify's Draft Order calculation, and taxes and shipping are finalized by the store.

Availability follows your Shopify inventory settings:

  • Available when inventory is not tracked;

  • the quantity available now and the quantity on backorder when overselling is allowed;

  • Only N available now when overselling is not allowed, which must be fixed before confirming;

  • B2B quantity rules, such as a minimum, maximum, or multiple, which must also be met.

Lines matched from the customer's words are labelled with those words, and lines matched from earlier choices or history say so. A PO number, requested delivery date, or note appears under Order details.

The preview has three buttons:

  • Confirm submits the order to your store;

  • Modify asks what should change;

  • Cancel discards the open order. Nothing is sent to the store.

Confirm is not offered while a line is not available, has an open question, or breaks an inventory or quantity rule. Writing "confirm" or "cancel" as text does nothing: only the buttons under the latest preview act.

Change the open order

Customers can keep sending messages until they confirm:

  • add, change, or remove products, for example "make the paper 20, remove the toner";

  • correct a match, for example "line 2 is the wrong paper", which asks again without that product;

  • write "new order" to start over;

  • add order details in their own words, for example "PO 4512, needed by Friday".

A PO number and a requested delivery date can be up to 100 characters each, and a note up to 500. Relative dates such as "in two weeks" are converted to a calendar date that the preview shows.

An open order expires after 24 hours without activity. Tapping an expired preview says Order expired, and a new message starts a new order.

Confirm and submit

After Confirm, Vivid Relay for Shopify and Telegram checks current prices, availability, and access again and creates one Shopify Draft Order. If prices or availability have changed, the customer gets an updated preview to review instead. A second tap on Confirm never creates a second Draft Order.

The customer then receives Order submitted with the Draft Order name, the subtotal, and a Cancel order button. A submitted order can't be edited in the chat; new messages start a new order.

Cancel before approval

Any connected user of the account can cancel a submitted order until it is approved, with Cancel order on the Order submitted message or in /orders, and then Cancel order again to confirm. The Draft Order is deleted and your approvers are told. After approval, changes and cancellation are handled by the store.

Recent orders and repeat orders

/orders lists the account's five most recent orders sent through the chat, with their date, lines, subtotal, and status: Waiting for approval, Approved, Not accepted, Cancelled, or Submitted. Older orders from the last 12 months can be repeated by writing "repeat order" and the order number.

To repeat an order, the customer taps Repeat or writes, for example, "repeat my last order" or "same as last time but 5 more toner". Only the lines are repeated, not the order details. Every line is checked again against current prices, availability, and access, and products that are no longer available are shown as such and never substituted. If an order is already open, the bot asks whether to add to it, replace it, or keep it.

Long results

When a preview or list is too large for one Telegram message, the bot says so and sends the complete content as a UTF-8 .txt file with the same buttons. Content is never cut off.

Without AI-powered matching

If AI-powered matching is unavailable, customers can still order with product codes and single-word store-wide aliases in the product-code form, answer questions with numbers, use every button, and repeat orders from /orders. Other messages and documents receive Message not read, which suggests sending product codes with quantities.

While AI processing is used up

When your store's AI processing for the billing period is used up, messages and documents written in customers' own words are not read until the next billing period starts or Shopify confirms a plan with more AI processing. Customers get Message not read or Document not read, saying that they can't be read at the moment and suggesting product codes with quantities and /orders with Repeat; the reply doesn't mention your plan, and documents are not downloaded or stored. Product codes, single-word store-wide aliases in the product-code form, numbers and buttons that answer questions, /orders, Repeat, Confirm, and Cancel order keep working, and a message whose reading had already started is finished. Customers aren't notified when reading resumes. See Plans, billing, and support.

Message limits

A customer can send up to 60 messages and documents that need AI-powered reading per rolling hour, and up to 20 documents per 24 hours. Above that, the bot asks the customer to wait. Replies sent while AI processing is used up don't count toward these limits. Voice messages, stickers, videos, and locations are not read, and editing a message that was already sent does not change the order.