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.
- 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:emailandmimetext. - 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.
- 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
- Request Handling: The worker listens for
POSTrequests containing ticket data. - Validation: Incoming data is validated for correctness (e.g., email format, field lengths).
- 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.
- Template Rendering: The system generates email bodies in both HTML (styled card) and Plain Text formats, injecting the AI insights.
- Email Delivery: The ticket is emailed to the support destination.
- Archival: Tickets data is sent to an archive address for record-keeping.
- Response: The API returns a success or error response to the client.
Developed & designed by: