Templates / AI Customer Support Agent

๐ŸŽง AI Customer Support Agent

Handle 70% of support tickets autonomously. Escalate the rest with full context.

โœ… Production TestedEmail + IntercomZero DependenciesMulti-Language
$99
one-time ยท own forever

30-day guarantee if it doesn't work as described

The problem with support tickets

70%

of support tickets are the same 5 questions asked over and over

$495/mo

is what Intercom Fin charges for 500 AI resolutions per month

2 hours

per day founders spend answering the same questions manually

How it works

๐Ÿ“จ

Ticket arrives

Via email (IMAP) or Intercom โ€” the agent polls for new tickets automatically.

๐Ÿ”

Search knowledge base

Scans your FAQ articles (markdown files or Notion database) for relevant answers.

๐Ÿง 

AI triage

Classifies into: Auto-resolve, Needs Context, Escalate to Human, or Urgent Escalation.

โœ…

Act

Auto-responds from your KB, asks clarifying questions, or escalates to Slack with full context.

Intelligent 4-category triage

โœ…AUTO_RESOLVE

FAQ, how-to, status checks โ€” agent responds and closes automatically.

"How do I reset my API key?" โ†’ Answered from KB in 3 seconds

โ“NEEDS_CONTEXT

Vague reports, missing info โ€” agent asks a clarifying question first.

"Something is broken" โ†’ "Could you describe what you were trying to do?"

โš ๏ธESCALATE_HUMAN

Billing disputes, refunds, angry customers โ€” routes to your team via Slack.

"I was charged twice" โ†’ Slack alert with full context and sentiment

๐ŸšจESCALATE_URGENT

Security incidents, data loss, outages โ€” immediate @here alert.

"Unauthorized access detected" โ†’ Instant Slack alert to on-call

What your agent does

๐ŸŽฏ

Smart Triage

Classifies every ticket by category, confidence, and customer sentiment โ€” never sends uncertain responses

๐Ÿ“š

Knowledge Base Search

Searches markdown files or Notion database to source accurate answers โ€” never halluccinates

๐Ÿ’ฌ

Auto-Response

Drafts personalised responses using KB articles, in the customer's own language

๐Ÿšจ

Slack Escalation

Rich context alerts: customer info, plan, sentiment, triage reasoning, thread history

๐Ÿ“Š

Daily Report

Ticket volume, auto-resolution rate, sentiment breakdown โ€” every morning in Slack

๐Ÿ“ˆ

Weekly Metrics

Trends, daily breakdown, volume changes โ€” identifies patterns before they become problems

๐Ÿ”’

Security Protection

Detects social engineering attempts, never complies with account access requests

๐ŸŒ

Multi-Language

Responds in the customer's language automatically โ€” Spanish, French, German, and more

Why not Intercom Fin?

This TemplateIntercom Fin
Cost$99 one-time$0.99โ€“$2.00 per resolution
At 500 tickets/month$0/month$495โ€“$1,000/month
Annual cost$99 total$5,940โ€“$12,000/year
Vendor lock-inNone โ€” you own the codeYes โ€” their platform
LLM choiceAny (Claude, GPT, Gemini)Fixed
CustomisationFull source codeLimited settings
DataOn your serversOn theirs
Email supportโœ… Built-in IMAP/SMTPโŒ Intercom only

At 500 tickets per month, this template pays for itself in the first 3 hours.

What's included

ai-customer-support-agent/
AGENT.mdAgent personality, decision rules, security policies
SETUP.mdStep-by-step setup guide (under 1 hour)
CONFIG.mdEvery config option explained
config.jsonTriage rules, thresholds, channels โ€” no code changes
src/triage.jsโญ 4-category triage engine with sentiment detection
src/kb-search.jsโญ Knowledge base search (Markdown + Notion)
src/responder.jsโญ Auto-response generator from KB sources
src/escalator.jsโญ Slack escalation with rich context
src/reporter.jsโญ Daily + weekly metrics reports
src/integrations/email.jsIMAP/SMTP adapter (Gmail, Outlook, any provider)
src/integrations/intercom.jsFull Intercom API adapter
src/integrations/slack.jsSlack webhook integration
src/integrations/notion.jsNotion KB reader
src/integrations/sheets.jsGoogle Sheets ticket logger
cron/Poll, daily report, weekly report, auto-close
examples/kb-articles/3 sample KB articles to get started

28 files ยท 3,000+ lines ยท Zero npm dependencies ยท Pure Node.js

Works with any AI framework

OpenClaw
Drop into skills directory. Done.
Claude API
Load AGENT.md as system prompt
GPT API
Load AGENT.md as system message
LangChain
Scripts as tools, triage as chain
CrewAI
AGENT.md โ†’ agent, triage โ†’ tasks
Standalone
Run as cron job โ€” no framework needed

Requirements

  • โœ“ Node.js 18+
  • โœ“ Anthropic or OpenAI API key
  • โœ“ Email account (Gmail/Outlook) or Intercom
  • โœ“ Slack workspace (free)
  • โœ“ Optional: Notion, Google Sheets

Setup time

Email or Intercom~10 min
Slack webhook~5 min
Knowledge base articles~15 min
LLM API key~2 min
Total~30 min

โœ… Tested against live APIs

Every component tested with real credentials โ€” not mock data.

Triage Engine
12/12 correct
Slack Escalation
Live posts verified
Intercom API
Read, reply, tag
Google Sheets
4 tickets logged
Notion KB
Connected & read
Multi-Language
Spanish verified

FAQ

Does it work with just email (no Intercom)?

Yes. The email adapter (IMAP/SMTP) works with Gmail, Outlook, or any email provider. Intercom is optional.

What LLM does it use?

Claude by default, but you can swap to GPT-4, Gemini, or any LLM by changing one line in config.json.

How does the knowledge base work?

Drop markdown files into the KB folder โ€” each file is a FAQ article with tags. The agent searches these before responding. Or connect a Notion database.

What if it gets a question wrong?

The confidence threshold (default 70%) prevents uncertain responses. Low confidence = auto-escalate to human. The agent never guesses.

Does it handle non-English tickets?

Yes. It auto-detects the customer's language and responds in kind. Tested with Spanish, French, German, and more.

Can it detect social engineering?

Yes. Requests to access other accounts, reset passwords for others, or share credentials are auto-escalated as security incidents.

What's the refund policy?

30-day money-back guarantee if it doesn't work as described. Email support@abbilabs.xyz first โ€” we'll fix it or refund you.

Stop answering the same questions manually

One-time purchase. Own it forever. 30-day guarantee if it doesn't work as described.

$99

Instant download ยท Full source code ยท 28 files ยท 3,000+ lines