# Personal AI assistant on iMessage

Put your product in iMessage with Keiki: a self-hosted personal assistant people text to set reminders, search the web and remember things.

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

## How do I build a personal AI assistant people text on iMessage?

1. Clone [Mail-0/imessage-personal-assistant](https://github.com/Mail-0/imessage-personal-assistant) and deploy it to Vercel with `OPENAI_API_KEY`, `KEIKI_API_KEY` and `CRON_SECRET` set.
2. Run `npx @onkeiki/cli init --dispatch-url https://your-app.vercel.app/api/keiki` in the project folder, then add the `KEIKI_SIGNING_SECRET` it writes to your Vercel env and redeploy.
3. [Attach an iMessage line](https://onkeiki.com/docs/channels#imessage-lines) to the agent, schedule `GET /api/reminders` every minute with `Authorization: Bearer $CRON_SECRET`, and text it "remind me to call the dentist at 3pm". Replace the in-memory `lib/store.ts` with your database first: serverless instances do not share memory, so the scheduled route cannot see reminders saved by another instance.

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 build a personal AI assistant people text on iMessage?](https://onkeiki.com/content/how-do-i-build-a-personal-ai-assistant-people-text-on-imessage)
