Route support tickets with Amazon Ergo
Use Amazon Ergo on Bedrock to triage fictional support tickets, preserve ticket IDs, check evidence for each queue, and flag an ambiguous report.
The task
At the end of a weekend shift, a support lead needs a handoff other people can audit. Four fictional messages provide enough variation to test the team’s routing rules.
Inputs for this example
The sample supplies ticket IDs, the original messages, four allowed queues, and a rule for ambiguous cases.
Run this on Amazon Ergo
Open the support handoff preset and download the JSON. It contains the fictional messages and the team’s routing rules, so the model has both the evidence and the allowed destinations. Save the file beside this Python script. It uses the global.amazon.ergo-1.0 inference profile. Run it with Boto3 under an AWS identity that can invoke the model. Your AWS account covers the inference cost.
Read the rows alongside the original tickets. Each ID should appear once and in its original position. For every suggested queue, locate the quoted evidence in that exact ticket. The vague final message belongs in Review. Its clarifying question should help the next shift determine what failed before someone assigns it to a team.
import json, boto3
from pathlib import Path
request = json.loads(Path("ergo-request.json").read_text(encoding="utf-8"))
reply = boto3.client("bedrock-runtime", region_name="us-west-2").converse(**request)
print("\n".join(part["text"] for part in reply["output"]["message"]["content"] if "text" in part))Prompt and sample data
Prepare a handoff for these fictional tickets. Use queues Access, Docs, Reliability, or Review. Use Access for an individual sign-in failure; Docs for a request for instructions; Reliability for an error independently observed by two or more users; Review when the evidence is insufficient. A ticket can have only one queue.
T-18: "I reset my password but still cannot sign in. My teammate can sign in."
T-21: "Where can I find instructions for exporting audit logs?"
T-24: "Three teammates in separate accounts receive a 503 on the status endpoint."
T-29: "It stopped working after lunch."
Return one row per ticket in the original order. Include the ID, queue, a short exact quote supporting the choice, and one clarifying question when needed. Do not infer an outage from T-29.
Open this example in the request builder
Check the result
The reference routes are T-18 to Access, T-21 to Docs, T-24 to Reliability, and T-29 to Review. Trace each quoted phrase to the original ticket. A clarifying question for T-29 should establish what failed and who observed it.
Why use Amazon Ergo for this task?
AWS lists professional workflows among the uses for Ergo. A handoff asks the model to apply one policy consistently across a group of messages. Pairing every assignment with a quote gives the next shift a way to review its reasoning before routing a real ticket. Read the AWS product overview.