Classify support tickets and build a human review queue with Apixly OpenAI API
Quick overview This manual workflow validates a small batch of support tickets, sends each ticket to Apixly’s OpenAI-compatible chat/completions API for classification and reply drafting, then builds a single human review queue that includes both successful results and any failures.
How it works Runs when you manually execute the workflow. Loads a configured model, API endpoint, and a batch of up to 10 tickets, then validates required fields, size limits, and unique ticket IDs. Processes tickets one by one and sends each to Apixly’s chat/completions endpoint with instructions to return a strict JSON classification (category, priority, summary, and draft reply). Validates the HTTP response and parses the model output, ensuring the JSON schema matches, the ticket_id is preserved, and the content is complete. Flags any transport/API errors, non-2xx responses, invalid JSON, schema mismatches, or unsafe refund claims for manual triage. Produces a consolidated human review report containing every ticket, the classification where available, and summary counts by category and priority.
Setup Create an n8n HTTP Header Auth credential with header name Authorization and value Bearer , then select it in the Apixly HTTP request step. Set your Apixly endpoint (chat/completions URL) and desired model in the ticket configuration step. Replace the synthetic demo tickets with your own authorized ticket data and keep batches to 1–10 tickets per run.
Requirements An Apixly account and API key; n8n 2.37.10 or a compatible version; and an HTTP Header Auth credential selected in the Apixly request node.
Customization Replace the synthetic tickets with authorized helpdesk data. If you change categories or priorities, update both the prompt and validator, and keep ticket IDs unique. Review every draft before taking action.
Additional info Maintained by the Apixly team. API requests are billed separately. This workflow never sends customer replies, processes refunds, changes accounts, or treats reported token usage as verified billing.
Related Templates
AI Weather Forecasts with MCP Integration
Real-time Weather Forecasts with MCP Tools This n8n workflow demonstrates how to integrate real-time weather intelligen...
Google Sheets UI for n8n Workflow
Google Sheets UI for Workflow Control This n8n template provides a practical and efficient way to manage your n8n workf...
Demo Workflow - How to use workflowStaticData()
This workflow demonstrates how to use the workflowStaticData() function to set any type of variable that will persist wi...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments