Answerify is a modern customer support platform that uses AI to automatically answer customer questions, saving your team time while maintaining quality responses.
Answerify uses Google Gemini AI to generate intelligent, contextually relevant responses based on your knowledge base. The system:
- Analyzes incoming customer emails using semantic search
- Generates accurate responses with source citations
- Learns from human feedback to improve over time
- Vector Embeddings: Content is chunked and embedded for semantic search
- Multiple Data Sources: Support URLs, documentation, FAQs, and more
- Internal Knowledge Base: Auto-learns from approved responses
- Real-time Indexing: New content is automatically indexed when added
- Unified Inbox: View all customer conversations in one place
- Real-time Updates: New emails appear instantly via Supabase Realtime
- Status Tracking: Open/closed ticket management
- Rich Text Editor: Compose replies with Tiptap-powered formatting
The system automatically classifies incoming emails into categories:
| Category | Icon | Description |
|---|---|---|
| Billing | ๐ณ | Payment and invoice questions |
| Bug Report | ๐ | Software issues and errors |
| Feature Request | โจ | Enhancement suggestions |
| General Support | ๐ฌ | Standard support queries |
| Account Access | ๐ | Login and access issues |
| Account Settings | โ๏ธ | Configuration questions |
| Account Deletion | ๐๏ธ | Data removal requests |
| Refund Request | ๐ฐ | Money return inquiries |
| Payment Failed | โ | Transaction failures |
| Subscription Change | ๐ | Plan modifications |
| Invoice Request | ๐ | Billing document requests |
| Performance Issue | โก | Speed and responsiveness |
| Integration Issue | ๐ | Third-party connectivity |
| Data Export | ๐ค | Information retrieval |
| Upgrade Inquiry | ๐ | Product upgrades |
| Demo Request | ๐ฏ | Product demonstrations |
| Onboarding Help | ๐ | Getting started assistance |
| How-To Question | โ | Usage instructions |
| Security Concern | ๐ก๏ธ | Safety and privacy |
| Abuse Report | ๐ซ | Policy violations |
| Privacy Request | ๐ | GDPR and data requests |
| Complaint | ๐ค | Dissatisfaction |
| Compliment | ๐ | Positive feedback |
| Spam / Irrelevant | ๐ฎ | Noise filtering |
Create automated rules to handle common scenarios:
Trigger Types:
subject_contains- Match emails by keyword in subjectsender_domain- Match emails from specific domainshas_tag- Match emails with specific intent tagsany_email- Trigger on all incoming emails
Automation Steps:
- Add Tag: Automatically categorize emails
- Auto Reply: Send predefined responses
- Escalate: Flag high-priority items
- Call Webhook: Integrate with external systems
Smart automation with human oversight:
- High Confidence (โฅ65%): Auto-sends AI-generated replies
- Low Confidence: Creates drafts for human review
- Configurable Threshold: Adjust sensitivity per organization
- Safety Guards: Never sends empty or unclear responses
Continuous improvement from human feedback:
- Agent edits an AI draft
- System tracks the human response
- If approved, the response is chunked and embedded
- Future similar queries use this learned content
- Reply quality improves over time
- Role-Based Access: Member, Admin, and Owner roles
- Invite System: Add team members by email
- Organization Management: Multiple workspaces supported
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ organization โโโโโ<โ member โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โโโโโ<โ thread โ
โ โโโโโโโโโโโโโโโโโโโ
โ โ
โ โ
โโโโโ<โ email โ
โ โโโโโโโโโโโโโโโโโโโ
โ
โโโโโ<โ reply โ
โ โโโโโโโโโโโโโโโโโโโ
โ
โโโโโ<โ datasource โ
โ โ
โ โ
โ โโโโโ<โ section โ
โ โโโโโโโโโโโโโโโโโโโ
โ
โโโโโ<โ workflow โ
โ โโโโโโโโโโโโโโโโโโโ
โ
โโโโโ<โ mcp_server โ
โโโโโโโโโโโโโโโโโโโ
| Table | Description |
|---|---|
organization |
Tenant workspace with settings |
member |
User membership with roles |
thread |
Email conversation thread |
email |
Individual messages |
reply |
AI-generated or human drafts |
datasource |
Content sources (URLs) |
section |
Chunked content with embeddings |
workflow |
Automation rules |
mcp_server |
MCP tool integrations |
Inbound Email
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Webhook Handler โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Intent Detectionโ โโโโบ Tags added to thread
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Vector Search โโโโโ>โ Match Sections โ
โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Generate Reply โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ Workflow Runner โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโดโโโโโ
โ โ
โผ โผ
โโโโโโโโโ โโโโโโโโโโ
โ Auto โ โ Draft โ
โ Send โ โ Review โ
โโโโโโโโโ โโโโโโโโโโ
| Variable | Description |
|---|---|
NEXT_PUBLIC_SUPABASE_URL |
Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
Supabase anonymous key |
SUPABASE_SERVICE_KEY |
Supabase service role key |
NEXT_PUBLIC_BASE_URL |
Application base URL |
RESEND_API_KEY |
Resend email API key |
GOOGLE_GENERATIVE_AI_API_KEY |
Google Gemini API key |
| Variable | Description |
|---|---|
CLOUDFLARE_ACCOUNT_ID |
Cloudflare account ID |
CLOUDFLARE_GATEWAY_NAME |
AI Gateway identifier |
CF_AIG_TOKEN |
AI Gateway auth token |
# Install dependencies
pnpm install
# Copy environment variables
cp .env.example .env.local
# Start development server
pnpm devApply migrations via Supabase CLI or dashboard:
supabase db push| Command | Description |
|---|---|
pnpm dev |
Start development server |
pnpm build |
Build for production |
pnpm lint |
Run ESLint |
pnpm tsc |
TypeScript type check |
-- Disable autopilot
UPDATE organization
SET autopilot_enabled = false
WHERE id = '<org-id>';
-- Adjust confidence threshold
UPDATE organization
SET autopilot_threshold = 0.75
WHERE id = '<org-id>';Customize AI response tone:
UPDATE organization
SET tone_policy = 'friendly'
WHERE id = '<org-id>';- Row-Level Security (RLS): All tables enforce organization-based access
- Service Role: Webhooks use service key for elevated access
- Email Sanitization: All HTML content is XSS-sanitized
- API Authentication: Demo endpoints require Bearer tokens
For issues and feature requests, please open a GitHub issue.