Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.36 KB

File metadata and controls

68 lines (52 loc) · 1.36 KB

Support Ticket Classification System

Use LangGraph with Azure OpenAI to automatically classify support tickets into predefined categories with confidence scores. UiPath Action Center integration for human approval step.

Debug

  1. Clone the repository:
git clone
cd samples\ticket-classification
  1. Install dependencies:
pip install uv
uv venv -p 3.11 .venv
.venv\Scripts\activate
uv sync
  1. Create a .env file in the project root with the following configuration:
UIPATH_URL=https://alpha.uipath.com/ada/byoa
UIPATH_ACCESS_TOKEN=xxx
AZURE_OPENAI_API_KEY=xxx
AZURE_OPENAI_ENDPOINT=xxx
uipath run <entrypoint> <input> [--resume]

Run

To classify a ticket, run the script using UiPath CLI:

uipath run agent '{"message": "GET Assets API does not enforce proper permissions Assets.View", "ticket_id": "TICKET-2345"}'

Resume

To resume the graph with approval:

uipath run agent true --resume

Input Format

The input ticket should be in the following format:

{
    "message": "The ticket message or description",
    "ticket_id": "Unique ticket identifier",
    "assignee"[optional]: "username or email of the person assigned to handle escalations"
}

Output Format

The script outputs JSON with the classification results:

{
    "label": "security",
    "confidence": 0.9
}