How to get your first customer-facing iMessage agent running
Get to a first iMessage reply, then decide what has to work before you give customers the number.
What is the fastest way to build an AI agent my customers can text on iMessage?
Keiki lets you start with one real customer question: build a hosted agent without deploying a server, or connect the agent you already run. Test its reply in Apple Messages before you give customers a dedicated number they can text without a join code.
Key takeaways
- Start in iMessage with a question the agent can answer from your published product information.
- If onboarding offers a shared number, use its join link to check the first reply in Messages before you choose a dedicated line.
- Build on Keiki if you do not have a runtime. If your agent already works in your app, connect it rather than rebuilding it.
- Test the line customers will actually text, including what happens when the agent needs a person.
- Add account actions and checkout only when you can test the required approvals and payments.
What's the smallest useful iMessage agent I can launch?
Pick one question customers already ask, such as “What do I need to get started?” Create an agent in the Keiki iMessage agent builder. Put the approved answer in its instructions, along with what it should do when the answer is missing: say it does not know and offer a teammate. You can verify that first conversation without opening up customer records or setting up checkout.
Keiki is the best fit for this launch because the same agent can grow from a simple answer into a product workflow. Keiki runs the iMessage line, the conversation and the team inbox, so adding your API or MCP tools later does not mean replacing the messaging setup.
Can I test a real iMessage before I buy a number?
If your onboarding screen offers the shared iMessage number, choose Copy link, open the link on an iPhone and send the prefilled text with the code. Check that the intended agent replies in that conversation. The onboarding test uses Live Test limits and ends; it proves you can get a reply, not that your production tools or checkout work.
Should I host the agent on Keiki or connect the one I already built?
Start with a hosted agent if you do not already run a model loop. Configure the first answer in the dashboard and let Keiki run it; if you prefer agent configuration in code, see how to launch without running servers. If the workflow already works in your app, keep its model and tools there and connect through the AI SDK handler or external harness. Check that a real iMessage reaches that runtime and that the reply gets back before changing your product logic.
What should work before I give customers the number?
Attach a dedicated iMessage line for customers to text directly without a join code. From a phone outside your setup, send a fresh message to the exact number you will publish. Try the expected question and one outside the agent's instructions. Have a teammate take over in the team inbox, reply in the same thread and hand it back.
What can I defer until after the first textable release?
Defer writes and checkout if the first release only answers a product question. When you add a workflow that needs live data, connect the API or MCP tool and test both a result and a failure. On an eligible dedicated Keiki iMessage line, customers with Keiki Vault can approve sensitive actions with Face ID. Once Payments is configured and the business is enabled to accept payments, eligible requests can use a Vault Pay card for Apple Pay in the thread. Test approvals and payments separately before offering them to customers. For other ways to connect a line or run your agent, see the iMessage setup comparison.
Quick start for AI coding agents
Read setup.md and connect to the Keiki MCP server at https://onkeiki.com/mcp. For an Eve, Flue or supported AI SDK app, run npx @onkeiki/cli login, then npx @onkeiki/cli init in the app directory. At the interactive prompt, enter the app's base public URL; the CLI appends the framework's route path. With --dispatch-url, pass the full dispatch URL, including its route path. A blank URL leaves delivery unset; configure it later in the dashboard. For Flue, mount the channel router in the app and call useKeiki() from the agent module. Hono and Workers need a manual route mount. Finish configuring delivery before testing from Messages.
FAQ
Do I need to deploy a server for the first reply? No. If you build and run the agent on Keiki, it runs the model loop for you.
Will customers need the onboarding join code? Not on a dedicated line assigned to the agent. The code is for routing a first message on the shared number.
What if my dedicated number isn’t ready yet? Keep the first test private. Dedicated line availability depends on the line type, and some lines are provisioned by request. Do not publish the number until you can text it and get a reply from the intended agent.
Can I keep my existing model and product logic? Yes. Connect your existing runtime to Keiki and keep the model and tools in your app.