FULL STEP BY STEP WALKTHROUGH: https://youtu.be/Bi3z2tMPjxs?si=-uyGBtecRYpoXeDR
You must be on macOS with the Messages.app signed in to iMessage.
Install the imsg command-line tool by running:
brew install steipete/tap/imsgYou must grant Full Disk Access to your Terminal or iTerm application:
- Navigate to System Settings → Privacy & Security → Full Disk Access
- Add your Terminal/iTerm application
- You will also need to approve the Messages automation permission (macOS will prompt on first use)
Get your free Gemini API key from: https://youtu.be/yZN5a12CZD8?si=0L1kHZL1J-gqgr47
Install the skill from: https://clawhub.ai/Koba42Corp/autoresponder
Extract the downloaded skill into:
/Users/[your user]/.openclaw/workspace/skillsAdd your Gemini API key to .zshrc:
echo 'export GEMINI_API_KEY="YOUR_KEY_HERE"' >> ~/.zshrc
source ~/.zshrcVerify installation by checking these directories exist:
~/clawd
~/.openclaw
~/.openclaw/workspace/skills/autoresponder
- Update generateResponse() to use GEMINI AI
- Update sendMessage() method to support both iMessage (iPhones) and SMS (non-iPhones)
- Add const { OpenAI } = require('openai'); at the top
Shortcut: Copy and paste the watcher.js file from this GitHub repo to replace your existing one.
cd ~/.openclaw/workspace/skills/autoresponder/scripts
npm install openaichmod +x ~/.openclaw/workspace/skills/autoresponder/scripts/launcher.shStart up Clawdbot and verify it's working properly. If you encounter any permission errors from Telegram, we'll troubleshoot them.
openclaw gateway stopImportant: Run this from the same terminal where you installed imsg:
openclaw gateway --verboseIn Telegram, start the auto-responder:
/autorespond restart
In Telegram, verify the auto-responder is running:
/autorespond status
Add contacts to the watchlist using:
/autorespond_add +15551234567 "Best Friend" "Reply with sarcastic humor"
Example prompts:
"Reply casually like we're close friends"
"Be professional and brief"
"Reply affectionately, use 'love' and 'baby' occasionally"
You're all set! The auto-responder will now monitor and reply to messages from your added contacts.
Permission errors: Make sure you ran openclaw gateway --verbose from the terminal where you installed imsg
Not responding: Check logs at
~/clawd/logs/imsg-autoresponder.log
API errors: Verify your Gemini API key with:
echo $GEMINI_API_KEY