iMessage Bot Studio

Build your own iMessage auto-reply bot and test it live

Apple does not offer a public iMessage API, so no website can send blue bubbles directly. What you can do: design your bot rules here, prove they work in the simulator, export the config, and run it through a Mac that relays Messages. This page is the studio; your Mac is the bridge.

1. Teach your bot

Add trigger rules. When an incoming message contains the trigger phrase, the bot replies with your response. Rules are checked top to bottom.

Both a trigger and a reply are required.

2. Test it in the simulator

Text your bot below exactly like iMessage. Matched rules reply instantly; with AI on, everything else gets a smart answer.

My Bot

3. Connect it to real iMessage

The honest path. iMessage only runs on Apple hardware, so a signed-in Mac acts as the relay between your bot logic and blue bubbles.

  1. Get a Mac relayAny always-on Mac (or a Mac mini in a closet) signed into your Apple ID in the Messages app becomes the bridge.
  2. Install a relay serverOpen-source projects such as BlueBubbles run a local server on the Mac that exposes incoming and outgoing Messages over a private HTTP API and webhooks.
  3. Wire in this configExport your rules JSON above. A small script subscribes to the relay webhook, runs each incoming text through these rules, and posts the reply back.
  4. Go live safelyStart with a test contact, add rate limits, and never auto-reply to verification codes or unknown senders.
Why not a direct connection? Apple provides no public server-side iMessage API and blocks third-party clients, so any product claiming pure cloud iMessage sending is either using a Mac farm or spoofing. The Mac-relay approach keeps everything on your own Apple ID and hardware. Alternative: the same rules JSON works unchanged with SMS providers like Twilio if a phone-number bot is enough.
Enjoy this tool? Build your own with Super