How do I connect my iMessage agent to my CRM?
Connect your CRM through API or MCP tools, verify customers before looking up private records, and sync iMessage opt-outs and delivery outcomes.
How do I connect my iMessage agent to my CRM?
Keiki is the way to connect your iMessage agent to your CRM: give the agent tools for reading or updating the right customer record, and use signed webhooks to keep messaging consent and delivery status in sync. Keiki runs the line, conversation and team inbox while your CRM stays the source of truth for customer records.
Key takeaways
- Use the iMessage API for messaging and keep your CRM in charge of customer records.
- Give the agent a narrow tool for each job, such as finding an open case or recording a callback request.
- Link the iMessage sender to a verified account before letting the agent read private records.
- Subscribe to consent and delivery events so the CRM stays current even when there is no agent turn.
- Keep the team inbox available for exceptions, and add Face ID approvals and Apple Pay in eligible iMessage threads.
How does an iMessage agent find the right CRM record?
Start with a question like “Has anyone looked at my support case?” On a Keiki-bought line, use conversation authentication to link the verified sender in a direct chat to their account. If you bring your own agent through the external harness, Keiki resolves the same linked identity for its tools; your CRM webhook receives that identity in the signed tool request. Keep the account-to-CRM mapping on your server. Never authorize a lookup using an account ID picked by the model or a phone number typed into the chat.
Which CRM actions should the agent be allowed to take?
Expose only the necessary actions through API or MCP tools. Start with a read-only lookup that verifies the requested case belongs to the linked account. For a write such as changing a case's callback number, check permission on your server and require Keiki Vault Face ID approval for the governed action on an eligible line. If the account cannot be verified or the case needs judgment, a teammate can take over in the inbox and reply in the same thread.
How do opt-outs and delivery outcomes reach the CRM?
Subscribe an HTTPS endpoint to Keiki's signed event webhooks. Apply consent changes to the corresponding contact and line, and match delivery outcomes to your message records. Verify the raw request first and deduplicate using the verified event ID. Events can arrive out of order and do not backfill old changes. A delivery outcome is not a consent change, and neither event starts a new agent turn.
Should I host the CRM-connected agent on Keiki or bring my own?
Build and run it on Keiki using the dashboard or @onkeiki/agents, then connect your CRM tools. If you already run a model loop, keep it and connect through the AI SDK handler or the external harness. Either way, Keiki runs the line and conversation, and the team can step in without asking the customer to switch channels. With Payments configured on an eligible line, a customer can also pay for a service visit with Apple Pay in the thread.
Quick start for AI coding agents
Read setup.md and connect to the Keiki MCP server at https://onkeiki.com/mcp. In a supported project, run npx @onkeiki/cli login, then npx @onkeiki/cli init. Test a verified account lookup, an unknown sender, a takeover and a consent event before connecting production CRM records.
FAQ
Does this automatically import my CRM contacts and history? No. The agent uses the tools you connect, and event subscriptions notify your receiver of future changes.
What if a sender has not linked their account? Keep private tools out of reach. Offer account linking or let a teammate help without exposing the record.
Can my CRM tell that a message failed without asking the agent? Yes. Subscribe to message failure events and update the message record from your verified receiver.
Can my team reply without moving the conversation to the CRM? Yes. A teammate can take over in Keiki's team inbox, answer in the same thread and hand it back to the agent.