# iMessage AI booking agent

Put your product in iMessage with Keiki and let customers book appointments by text, with your own calendar, model and server behind every slot.

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

## How do I let customers book appointments over iMessage?

1. Clone [github.com/Mail-0/imessage-booking-agent](https://github.com/Mail-0/imessage-booking-agent) and deploy it to Vercel with your `OPENAI_API_KEY`.
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 `.env.local` to your Vercel env and redeploy.
3. [Attach an iMessage line](https://onkeiki.com/docs/channels#imessage-lines) to the agent and text it "can I book Tuesday afternoon?".

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 let customers book appointments over iMessage?](https://onkeiki.com/content/how-do-i-let-customers-book-appointments-over-imessage)
