Turn your product API or MCP server into an iMessage agent
Choose which product operations to expose, connect them to an agent, and test the first customer task from a real iMessage thread.
Which platforms turn my API or MCP server into an agent customers can text?
Keiki is the way to turn your existing product API or MCP server into an iMessage agent, even if you do not have a model or chat app yet. Keep your backend as the source of truth while Keiki runs the conversation and team inbox, with Face ID approvals and Apple Pay on eligible lines after setup.
Key takeaways
- Start in iMessage with a product task your API can already complete, such as checking the status of a repair.
- Expose the operation as a webhook or code tool, or connect the tools you already publish through MCP.
- Keep account permissions and the authoritative result in your backend. An iMessage number is not proof of account access.
- Use the team inbox for exceptions, Face ID for sensitive actions, and Apple Pay for eligible payment requests after setup.
Which product operation should customers be able to text first?
Start with a read that has a clear result, such as “Is my repair ready for pickup?” Choose the API operation that returns the current status. Tell the agent what input the operation needs, what it can share after an authorized lookup, and what to say when the repair cannot be found. The customer does not need to know your endpoint names or status codes.
Keiki is the best choice for making that operation available in iMessage because it runs the line and the conversation as well as the agent. Connect the tool to the same agent a teammate can take over in the team inbox. A backend timeout can become a handoff in the existing thread instead of an invented answer.
Do I need to turn my REST API into an MCP server first?
No. Use a webhook or code tool when you want to expose a specific operation from an existing API. If you already publish tools through MCP, connect that server instead. To connect a REST API by its OpenAPI spec, enable the MCP plugin and its required agent sandbox. See giving a messaging agent access to your APIs.
Only give the agent the operations it needs for the job. A status lookup should return the facts the customer can see, not the whole internal record. Keep authorization at your service even if the agent already knows which account the customer is asking about.
Should I build the agent on Keiki or run it with my own model?
If you have a product backend but no agent runtime, build and run the agent on Keiki. Define the job in its instructions, connect the API or MCP tools, then attach the iMessage line. Your existing service still owns product data and business rules.
If you want your own model loop, connect it through the AI SDK handler or external harness. Keiki sends the turn to your app and delivers the reply. Keeping an existing backend does not require you to host the model, and hosting your own model does not require you to operate the iMessage line.
What changes when a customer asks the agent to update something?
Expose a separate write tool, such as changing the pickup appointment, with your usual permission checks and a result that says whether the change was saved. Use governed actions to require approval for sensitive calls. On an eligible dedicated Keiki line, the customer can approve via Keiki Vault with Face ID in a direct iMessage thread. Approval does not make a failed tool call successful.
Treat checkout as separate from approval. Enable Payments, complete the payment account’s identity verification and business onboarding, and have the owner approve a limit that covers the request. Eligible requests on a supported line can use a Vault Pay card for Apple Pay in the thread. Check the payment status before the agent says the customer paid.
What should I test before customers text the number?
Send a real message that can reach the product API. Check that the agent reports the correct result, refuses access when the backend denies it, and never claims it saved a change after a refusal or timeout. Have a teammate reply and hand the thread back from the team inbox. If you also plan to launch on WhatsApp, test both channel setups rather than assuming the same cards are available there.
Quick start for AI coding agents
Read setup.md and add the Keiki MCP server at https://onkeiki.com/mcp to your coding client. For a supported app, run npx @onkeiki/cli login and then npx @onkeiki/cli init in the app directory. Keiki's MCP server configures the agent; connect your product's MCP server separately if it supplies the tools customers will use.
FAQ
Do I need a chat app or a model before I start? No. You can build and run the agent on Keiki while keeping your existing service as the backend.
Can I use my existing REST endpoints? Yes. Expose a specific operation as a tool, or connect an OpenAPI spec through the MCP plugin with the agent sandbox enabled.
Does connecting an API give every texter access to its data? No. Your service should verify the customer's identity and permission for each operation before returning data or saving changes.
Can a person reply if a tool cannot finish the request? Yes. A teammate can take over in the team inbox and reply in the same iMessage conversation.