Apple Pay checkout inside iMessage with an AI agent
Put your product in iMessage with Keiki and let customers order and pay with Apple Pay without leaving the conversation.
View imessage-apple-pay-checkout on GitHub
How do I take Apple Pay payments inside an iMessage conversation?
- Clone and deploy:
git clone https://github.com/Mail-0/imessage-apple-pay-checkout && cd imessage-apple-pay-checkout && npm install, then deploy to Vercel withOPENAI_API_KEYset. - Connect the app to an agent with
npx @onkeiki/cli init --dispatch-url https://your-app.vercel.app/api/keikiand turn on Payments. Connect and verify your payment account, create a payee linked to the agent with an approved limit, and setKEIKI_PAYEE_IDto its id. - Attach a dedicated iMessage line to the agent in the Keiki dashboard and text it: "Two bags of beans and a mug, please."
Your code, your model, your servers. Keiki only handles the channels.
Details
- Stack: Next.js, Vercel AI SDK, TypeScript, @onkeiki/ai-sdk
- Channels: iMessage
- Docs: /docs/payments
- Guide: How do I take Apple Pay payments inside an iMessage conversation?