send-user-message
Skill1 starsChanged 7 months agoMITView on GitHub
Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.
We split this skill into the rules it gives an agent
7 rules. 5 are common, 0 are distinctive, and 2 are very specific to this project.
5
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 20
If you already know the target from the current conversation context (channel and senderId from the incoming message), skip to step 2.
- Common: line 22
If you are running from a heartbeat invocation or are unsure which user to send to, list available targets first:
- Common: line 63
When there are multiple approved pairings and you need to decide who to message:
- Very specific: line 64
If the task or context specifies a user by name, match against the sender field
- Very specific: line 65
If the task specifies a channel, filter by channel
- Common: line 66
If ambiguous, prefer the most recently approved pairing
- Common: line 67
If still ambiguous, send to all relevant targets (run the send command once per target)
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Send User Message
Send a message to a paired user via the ZooBot API server (POST /api/responses). The message is delivered by the channel client (Discord, Telegram, or WhatsApp) that polls the API for pending responses.
When to use
- Proactively notify a user (e.g., task completion, status update, alert)
- Send a message during a heartbeat invocation (no active user conversation)
- Reach a specific user on a specific channel when multiple pairings exist
Workflow
1. Identify the target
If you already know the target from the current conversation context (channel and senderId from the incoming message), skip to step 2.
If you are running from a heartbeat invocation or are unsure which user to send to, list available targets first:
<skill_dir>/scripts/send-message.sh list-targetsThis reads pairing.json and prints all approved pairings with their channel, senderId, and sender (display name). Pick the appropriate target.
2. Send the message
<skill_dir>/scripts/send-message.sh send \
--channel <channel> \
--sender-id <senderId> \
--sender "<display name>" \
--message "<your message>"With file attachments:
<skill_dir>/scripts/send-message.sh send \
--channel telegram \
--sender-id 123456 \
--sender "Alice" \
--message "Here's the report you requested." \
--files "/Users/you/.zoobot/files/report.pdf,/Users/you/.zoobot/files/chart.png"Parameters:
--channel: One ofdiscord,telegram,whatsapp--sender-id: The channel-specific user ID (from pairing.json or conversation context)--sender: Human-readable display name of the recipient--message: The message text to send (max 4000 chars)--agent: (Optional) Agent ID to attribute the message to--files: (Optional) Comma-separated absolute file paths to attach (files must exist on disk)
The script POSTs to POST /api/responses which enqueues the message in the SQLite responses table for the channel client to pick up.
3. Choosing a target when multiple pairings exist
When there are multiple approved pairings and you need to decide who to message:
- If the task or context specifies a user by name, match against the
senderfield - If the task specifies a channel, filter by
channel - If ambiguous, prefer the most recently approved pairing
- If still ambiguous, send to all relevant targets (run the send command once per target)
Notes
- The script POSTs to the API server (default
http://localhost:3777), configurable viaZOOBOT_API_PORTenv var - Messages include a
senderIdfield so channel clients can route agent-initiated messages to the correct user - For heartbeat-context messages, set
--agentto identify which agent is sending
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- jlia0/tinyclaw★ 3.6k96% same
- TinyAGI/tinyagi★ 3.6k96% same
- TinyAGI/tinyclaw★ 3.6k96% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- agent-browserSkill
- imagegenSkill
- memorySkill
- scheduleSkill
- skill-creatorSkill
- tasksSkill
- zoobot-adminSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

