CNexa Solutions
← All selected work

CASE STUDY 04 / AI-ASSISTED SUPPORT

Customer supportAgent.

Generate email drafts from order, product, and conversation context, with controlled delivery rules and human review for sensitive cases.

Portfolio demonstrationPortfolio demonstration · John Rey Cretesio · CNexa Solutions

System overview

Inspect the workflows

The agent gathers relevant context and drafts a response, then follows defined delivery rules or asks a person to review the case.

  1. Email received

    Resolve incoming Gmail messages into cases and use deduplication to keep repeated events coordinated.

  2. Context assembled

    Retrieve relevant order, product, FAQ, and conversation information before generating a structured draft.

  3. Draft evaluated

    Evaluate the draft against the configured policy. Sensitive or uncertain cases require a reviewer.

  4. Send or review

    Allow eligible low-risk delivery or route to Telegram for approval, feedback, rejection, or case linking.

Risk-based routing · capped redrafts

Bounded autonomy
Automatic delivery is limited to supported low-risk cases under the configured send policy.
Reviewer control
Staff can approve, reject, or provide feedback, with a maximum of three redrafts.
Stalled-state recovery
Recovery checks surface prolonged processing and uncertain sends for reviewer attention.

THE CHALLENGE

The operational challenge.

A helpful support draft depends on the right order, product, and conversation context. Automatically sending every AI-generated answer would give sensitive and uncertain cases too little oversight.

THE SOLUTION

The system design.

The agent resolves email threads into cases, retrieves relevant context, and creates structured drafts. Supported low-risk cases can follow a narrow automatic-delivery policy; other cases go to Telegram for review.

DESIGNING THE SYSTEM

Key engineering decisions.

01

Retrieve only relevant context.

Conditional retrieval brings together order, product, FAQ, and memory information. Deduplication and thread-to-case resolution keep repeat messages attached to the right case.

02

Put boundaries around autonomy.

Sensitive or uncertain drafts require human review. Reviewers can approve, reject, provide feedback, or link a case, with a maximum of three redrafts.

03

Make stalled work visible.

Recovery checks cover processing older than ten minutes and uncertain sends older than five minutes. A separate error handler catches execution failures.

SYSTEM ARCHITECTURE

Integrations and recovery paths.

The overview above shows the main path. Explore the architecture for the integrations, decision points, and recovery paths behind it.

Project architecture. Expand to inspect details; on small screens, scroll across the full-size diagram.
Support agent & contextual draftingOpen original ↗

Combines email intake, order and product context, structured reply drafting, evaluation, and delivery routing.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Support agent & contextual drafting
Telegram human reviewOpen original ↗

Coordinates staff approval, feedback, redrafting, and case actions through Telegram.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Telegram human review
Ticket recovery monitorOpen original ↗

Finds stalled processing and uncertain automatic sends, updates recovery state, and alerts the reviewer.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Ticket recovery monitor
Automation error handlerOpen original ↗

Connects execution errors to a configured Telegram notification for the reviewer.

Original size · scroll horizontally and vertically to inspect
Full-size n8n canvas: Automation error handler

EVIDENCE & OUTCOMES

What the evidence shows.

Four workflows and 147 nodes are described in the source, with configuration and selected screenshots supporting the case-handling and review narrative.

Documented capabilityDefined escalation and review

A portfolio demonstration of context retrieval, bounded drafting, and human oversight. No production response-time or savings claim is made.

Limitations and next steps.

Production outcomes have not been measured. The next step is validating the send policy and recovery behavior against a representative test set before live use.

Technology stack.

  • n8n
  • Gmail
  • Google Sheets
  • OpenAI
  • Telegram
Download case study

Source: owner-supplied case study and diagrams. Scope and test results are reported in the document, not independently audited.

Architecture · scroll to exploreOpen image ↗
Customer support agent full architecture diagram