JevMade Sign in
← Back to guides

JevMade field notes / Python routing sketch

Sort support tickets while leaving uncertain choices for people

Stackademic sketches a Python support router that asks Jev for a department and two yes-or-no estimates, then chooses automatic assignment, suggested assignment for review or human handling.

Original by StackademicClassification

Listen to this guide

JevMade’s plain-English explanation

0:00 /

Our summary

A support ticket can belong to a department without needing immediate attention or asking for money back. This Stackademic article keeps those judgments separate. Its short Python example asks Jev to choose billing, technical support or account help, and separately estimate whether the message is urgent and requests a refund.

Code sends unclear department choices to a person and middle-range choices to a review queue with a suggested team. Clearer choices reach a department queue, where separate probability cutoffs set priority and add a refund-request tag. The tag marks a candidate for checking; it does not issue a refund.

This is a sketch, not a finished helpdesk. Its queue connections still need to be written, failed requests to the service have no recovery path, and the article provides no accuracy evaluation. Its department list has no option for unrelated messages. Confidence describes the answer's probabilities, not how often the routing will be correct on real tickets.

Key takeaways

  1. Ask separately which team should help, whether attention is urgent and whether money back was requested. A refund request is not refund approval.
  2. Treat the example cutoffs as settings to test, not safety guarantees. The two yes-or-no estimates have no separate confidence field.
  3. Connect the program to real work queues, handle failed calls and decide what to do with messages outside the listed departments before using this sketch.

The complete article and both code blocks were read, not run. Stackademic is credited; no individual author was established. Department confidence below 0.55 sends a ticket to a person; 0.55 up to but not including 0.8 sends a suggested team for review; 0.8 and above reaches a department queue. Only that last route applies urgency probability of at least 0.85 and refund probability of at least 0.7. The review step still needs to be connected to a real system. No option for unrelated tickets, handling for failed service calls or measured accuracy test is supplied.

Stackademic · Original published

Read the original guide Opens the author’s site in a new tab.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.