
AI Support Agent for Fitness App
Automated customer support system that handles refund and cancellation requests instantly on big scale, preventing chargebacks through 24/7 instant responses. Built with OpenAI GPT-4, the AI agent serves thousands of daily users at $0.02 per conversation while reducing peak-hour reply time from 4 hours to under 1 minute.
π―The Challenge
A fitness app with thousands of daily users faced a critical chargeback problem. Their Ukraine-based support team couldn't respond fast enough to US customers requesting refunds. When responses took 4+ hours due to time zones, frustrated customers filed chargebacks instead of waiting β costing the company lost revenue, processor fees, and potential account restrictions.
Manual 24/7 support wasn't financially viable. The solution needed to check refund eligibility based on usage data, provide policy-compliant responses, and create tickets for human review β all while responding in seconds to prevent chargebacks.
π‘Our Solution
We built a production-ready AI support agent that integrates with email, Amplitude analytics, and CRM to provide instant, policy-compliant responses. The agent uses GPT-4 to analyze requests, checks user activity data to determine eligibility, and creates CRM tickets with proposed decisions for human review.
Our backend development team built an admin panel with conversation monitoring, real-time cost tracking, prompt template management, and agent testing. The system handles thousands of conversations daily at $0.02 per conversation while maintaining data security through PII stripping and encryption.
How It Works
Receive Email
Email webhook triggers instant processing
AI agent listens for email webhooks via Gmail API. When a support ticket arrives, it is instantly processed and categorized by type (refund, cancellation, technical) for appropriate handling.
Check Eligibility
Verify user data from analytics
System fetches user activity data from Amplitude to check refund eligibility based on usage patterns, subscription history, and policy rules. This data-driven approach ensures consistent, fair decisions.
Generate Response
AI creates policy-compliant reply
GPT-4 generates a response following refund policy guidelines, conversation best practices, and successful support case examples. Responses are empathetic, clear, and prevent chargebacks.
Create CRM Ticket
Human review with proposed decision
System creates a ticket in CRM with full conversation history, user data, and proposed decision. Support team reviews and approves before final action, maintaining quality control.
What We Built
π§ Email Conversations
Admin panel with full conversation history. See every user message and AI response with timestamps and status tracking.
π Prompt Templates
Manage different templates for cancellation requests, technical issues, user feedback, and more. Version control included.
π§ͺ Agent Tester
Test and improve different prompts without risking real data. Simulate conversations across all message types.
π Token Usage Dashboard
Monitor LLM token consumption and costs across all API calls. Analyze spending and predict future costs.
π Data Privacy
Sensitive user data is removed before sending to the LLM. PII stripping ensures compliance and security.
π¨ Gmail Integration
Connect multiple Gmail accounts for support. Manage all inboxes from a single dashboard.
Email Conversations Dashboard
View and manage all AI-handled conversations. See user messages, AI responses, and conversation status in real-time.

Technology Stack
NestJS
TypeScript
PostgreSQL
Redis
React
OpenAI GPT-4
Backend & AI Infrastructure
NestJS backend with TypeScript, OpenAI GPT-4 for response generation, PostgreSQL for data storage, Redis for caching, and BullMQ for job queues. Gmail API integration for email handling, Amplitude for user analytics.
Admin Dashboard
React with TypeScript, Ant Design components, real-time updates via WebSockets, and responsive design for all devices. Token usage monitoring and cost tracking.
The Team

Bohdan
Full-Stack Developer
Backend architecture and AI integration.

Victoria
QA Engineer
Testing and quality assurance.
Need AI-Powered Customer Support?
Get a free consultation and fixed-price estimate in 48 hours. No commitment required.
FaQ

Ready to Build Your AI Support Agent?
Your AI Project Timeline
Free Trial
Test our team, no commitmentProof of Concept
Working prototype deliveredProduction Ready
Full AI solution deployed
Oleg Kalyta
Founder & AI Lead

