iMessage agent workflow for n8n
Put your product in iMessage with Keiki. Run an n8n AI Agent workflow on your server to answer customers’ questions over text.
View imessage-n8n-agent on GitHub
How do I build an iMessage agent with n8n?
- Create a Keiki agent with an external harness. Clone Mail-0/imessage-n8n-agent, set
KEIKI_AGENT_IDin.env, and setWEBHOOK_URLto the public HTTPS base URL for your webhook. Then start the included Docker Compose service. - Use a reverse proxy to forward only
POST /webhook/keiki/turnfrom that public URL to the local n8n service. Keep the editor private. - Import
workflow.jsoninto n8n, add your model credential, and publish the workflow. In Keiki push mode, use the public Production URL ending in/webhook/keiki/turnas the dispatch URL. - Attach an iMessage line and text “How do I schedule a report?” The example AI Agent looks up the answer with a workflow tool.
Your code, your model, your servers. Keiki only handles the channels.
Details
- Stack: n8n, JSON, Docker Compose, @onkeiki/channels
- Channels: iMessage
- Docs: /docs/external-harness