# iMessage agent with LangGraph.js

Put your product in iMessage with Keiki. Your LangGraph.js agent helps customers set up integrations and remembers what they were working on in the thread.

[View imessage-langgraph-agent on GitHub](https://github.com/nizzyabi/imessage-langgraph-agent)

## How do I build an iMessage agent with LangGraph.js?

1. Create a Keiki agent with an external harness and copy its ID.
2. Clone [nizzyabi/imessage-langgraph-agent](https://github.com/nizzyabi/imessage-langgraph-agent) and deploy it to Render or a Docker host with `KEIKI_AGENT_ID` and `OPENAI_API_KEY` set.
3. In Keiki [push mode](https://onkeiki.com/docs/external-harness#configure-an-agent), set the dispatch URL to your public HTTPS endpoint ending in `/keiki/turn`.
4. [Attach an iMessage line](https://onkeiki.com/docs/channels#imessage-lines). Text “Help me connect GitHub”, then “What plan do I need?” to see the graph use its tools and conversation memory.

Your code, your model, your servers. Keiki only handles the channels.

## Details

- Stack: LangGraph.js, Hono, Node.js, TypeScript, @onkeiki/channels
- Channels: iMessage
- Docs: [/docs/external-harness](https://onkeiki.com/docs/external-harness)
