Skip to content

Hack-Nocturne/tez-aid

Repository files navigation

Tez-Aid ⚡

Tez-Aid is a serverless support ticketing system built for the Hack-Nocturne hackathon. It leverages Cloudflare Workers and AI to streamline participant support by automatically analyzing tickets and suggesting actionable next steps for organizers.

Features

  • Serverless Architecture: Built on Cloudflare Workers for high performance and low latency.
  • AI-Powered Insights: Uses Cloudflare Workers AI (@cf/meta/llama-3.3-70b-instruct-fp8-fast) to analyze ticket content and generate "Next Steps" for organizers.
  • Automated Email Notifications: Sends formatted HTML and Plain Text emails to the support team using cloudflare:email and mimetext.
  • Data Validation: Robust validation for user inputs (Name, Email, Mobile, Subject, Message).
  • CORS Security: Restricted access to authorized origins (https://hack-nocturne.in).
  • Dual-Format Templates: Supports both rich HTML and plain text email templates.

Tech Stack

  • Runtime: Cloudflare Workers
  • Language: TypeScript
  • AI Model: Meta Llama 3.3 70B Instruct (via Cloudflare Workers AI)
  • Email Handling: mimetext & cloudflare:email
  • Package Manager: pnpm

Logic & Workflow

  1. Request Handling: The worker listens for POST requests containing ticket data.
  2. Validation: Incoming data is validated for correctness (e.g., email format, field lengths).
  3. AI Analysis: The system sends the ticket subject and message to the AI model. The AI acts as an "Operations Assistant" to suggest 1-2 internal checks and a reply strategy.
  4. Template Rendering: The system generates email bodies in both HTML (styled card) and Plain Text formats, injecting the AI insights.
  5. Email Delivery: The ticket is emailed to the support destination.
  6. Archival: Tickets data is sent to an archive address for record-keeping.
  7. Response: The API returns a success or error response to the client.

Credits

Developed & designed by:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published