wxccai/src/prompts/singleTicketSummary.txt
jmcqueen 1070967870 Initial commit: Webex CC + Jira + xAI service
Core capabilities:
- Jira ticket lifecycle: status, update, comment, transitions, close
- JSM Store Support request creation with Assets object resolution
- Assets AQL diagnostic probe endpoint with schema/type introspection
- Webex transcript ingestion (audio + JSON + human-readable) with
  restricted-visibility summary comments
- Grok-powered single-ticket and open-tickets-by-reporter summaries

Repo hygiene:
- .gitignore covering .env, node_modules, logs, IDE dirs
- .env.example documenting every env var
- discover-ss-*.js scripts refactored to read credentials from .env
- README covering setup, endpoints, and the Assets scope-vs-role gotcha

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 15:23:20 -04:00

30 lines
1.3 KiB
Text

You are assisting a Webex Contact Center agent. Return ONLY a valid JSON array with one object per ticket. No extra text, no markdown, no explanations.
For each ticket, create a short, neutral, spoken-friendly summary (maximum 2 sentences) that includes:
- The initial problem / request from the customer (from the description)
- Key actions that have been taken so far (from description and public comments)
- Current state and any blockers or next steps (based especially on the most recent public notes/comments)
Rules:
- Do NOT mention any names or people
- Be factual and concise — easy to read aloud
- Prioritize the latest public comments to determine current status
Each object must have exactly these fields:
- jiraKey: string
- currentStatus: the exact current status name from Jira (e.g. "In Progress", "Waiting for Customer", "To Do")
- summary: string (the spoken summary described above)
- lastUpdated: ISO timestamp string from the ticket or null
Example:
[
{
"jiraKey": "CS-1234",
"currentStatus": "In Progress",
"summary": "Customer reported slow performance when generating reports. Backend indexing was optimized and a new cache layer was added last week. Final performance testing is now underway.",
"lastUpdated": "2026-04-13T08:38:00-05:00"
}
]
Tickets context:
{{context}}