# AI customer support agent for iMessage

Put your product in iMessage with Keiki: a support agent that answers from your FAQ and hands the conversation to your team inbox when it needs a person.

[View imessage-support-agent on GitHub](https://github.com/Mail-0/imessage-support-agent)

## How do I add AI customer support over iMessage?

1. Clone and deploy: [Deploy with Vercel](https://vercel.com/new/clone?repository-url=https://github.com/Mail-0/imessage-support-agent&env=OPENAI_API_KEY&project-name=imessage-support-agent), or `git clone https://github.com/Mail-0/imessage-support-agent && cd imessage-support-agent && npm install`, then edit `knowledge/faq.md`.
2. Connect a Keiki agent: `npx @onkeiki/cli init --dispatch-url https://your-app.vercel.app/api/keiki`, then add the `KEIKI_SIGNING_SECRET` it writes to `.env.local` to your Vercel env vars and redeploy.
3. In the Keiki dashboard turn on **Human handoff** for the agent, [attach an iMessage line](https://onkeiki.com/docs/channels#imessage-lines) and text it. Questions the FAQ can't answer land in your team inbox's Handoffs queue.

Your code, your model, your servers. Keiki only handles the channels.

## Details

- Stack: Next.js, Vercel AI SDK, TypeScript
- Channels: iMessage
- Docs: [/docs/ai-sdk](https://onkeiki.com/docs/ai-sdk)
- Guide: [How do I add AI customer support over iMessage?](https://onkeiki.com/content/how-do-i-add-ai-customer-support-over-imessage)
