Calculate CDEK delivery prices and transit times in chat
Connect CDEK to the AI agent: orders, tariffs, pickup points and parcel statuses. The agent quotes delivery, creates a shipment and books a courier.
How the agent works with СДЭК
The agent calls the CDEK API at api.cdek.ru: it calculates the cost and transit time for a route, weight and dimensions, pulls up the reference lists of regions, cities and pickup points, reads orders along with their status history and collects print forms and photos once they are ready. A pickup point is chosen not by city alone but with an eye on parcel dimensions and the opening hours of the point — otherwise the customer arrives at a closed door.
Delivery statuses do not arrive on a schedule and polling an order in circles is pointless, so CDEK sends the events itself: an order status change, a print form ready and a photo ready. The agent catches them over a webhook, ties them to the CDEK order number and, from the accumulated history, sees which parcel has been sitting on one status longer than usual — that is, stuck rather than simply in transit.
On the write side the agent does exactly two things: create a delivery order and book a courier. It shows both to you before sending — route, dimensions, recipient, pickup date — and takes the step only after confirmation, because a mistake here costs a real trip and real money. Once the order is created the agent returns the tracking number and follows the parcel read-only from there.
The connector obtains and refreshes the token on its own, so the keys are entered once and can be forgotten afterwards. The request rate is held within five per second: a bulk tariff calculation is split into batches, and cities are taken from the CDEK reference list rather than from the text of a request, or the address will not match. About data missing from a response the agent says so directly instead of showing an empty table.
Integration scenarios
Delivery quote and transit time
The agent calculates the cost and delivery time for a given route, weight and dimensions, and picks the pickup point closest to your customer.
Creating a shipment
The agent creates the delivery order, books a courier and returns the tracking number, with no manual trips to the lk.cdek.ru account.
Parcels in transit under control
The agent catches every parcel status change over a webhook and sends a summary of the ones stuck in transit longer than usual.
Picking a pickup point
The agent finds a pickup point by the customer city and address, taking parcel dimensions and the point opening hours into account.
Waybills once they are ready
The agent waits for the print form and photo ready events on an order, collects both and shows them next to the parcel — no manual hunting in the account.
Cities from the reference list
The agent checks the cities and addresses from your requests against the CDEK region and city lists and flags the ones order creation will not match.
СДЭК examples
Посылка 3,2 кг, 40×30×20 — от 480 ₽ и 2 дня.
- Склад — склад: 480 ₽, 2 дня, ближайший ПВЗ на Баумана, 12
- Склад — дверь: 690 ₽, 3 дня
Оформить заказ и вызвать курьера на завтра?
How to connect
Before you connect
- Your confirmation before an order is created or a courier is booked
- The api.edu.cdek.ru sandbox if you want to test without real shipments
- 1
Sign a contract with CDEK
API access requires an active contract with a company or sole proprietor. Without one the account stays retail-only and shows no key section.
- 2
Log in to the account at lk.cdek.ru
Log in with the account the contract is attached to: keys are issued within that contract. A retail sender account cannot issue them.
- 3
Open lk.cdek.ru/integration
Pick «Интеграция» in the account menu — the page is lk.cdek.ru/integration. Webhooks live there too, so parcel statuses arrive in the same scope.
FAQ
With a key pair from the lk.cdek.ru account: go to the Integration section and choose Create new key. Account is your client_id, Secure password is your client_secret, and it is shown only once at creation. API access is granted only under a contract with a company or sole trader.
Orders and their status history, tariff calculations, reference lists of regions, cities and pickup points, plus the print forms and photos delivered by webhook.
Yes: the agent can create a delivery order and book a courier, and it confirms such actions with you before sending them. Everything else is reading statuses and running calculations.
Yes — alongside the production api.cdek.ru the connector knows the test address api.edu.cdek.ru, and orders created there never enter real delivery.