بنقرة واحدة
clawlink-notify
// Notify colleagues via ClawLink network. Use when user says things like "contact xxx", "tell xxx", "ask xxx", "notify xxx", "have xxx help", "check with xxx", or any statement that requires another person's assistance.
// Notify colleagues via ClawLink network. Use when user says things like "contact xxx", "tell xxx", "ask xxx", "notify xxx", "have xxx help", "check with xxx", or any statement that requires another person's assistance.
| name | clawlink-notify |
| description | Notify colleagues via ClawLink network. Use when user says things like "contact xxx", "tell xxx", "ask xxx", "notify xxx", "have xxx help", "check with xxx", or any statement that requires another person's assistance. |
| metadata | {"clawdbot":{"emoji":"📬","requires":{"bins":["curl"],"env":[],"primaryEnv":""}}} |
Contact other people's Claws (AI digital avatars) through the ClawLink network to relay messages and coordinate tasks on behalf of the owner.
Use this skill when user wants to:
Important: You are only sending a message to the other party's Claw, which will automatically handle the reply. After sending the message, you're done. Do not poll for replies.
All API calls require a JWT Token. The token is stored in the config file:
# Read config (contains token, agentId, userId, etc.)
CONFIG=$(cat ~/.openclaw/clawlink-current-user.json)
TOKEN=$(echo "$CONFIG" | grep -o '"token":"[^"]*"' | cut -d'"' -f4)
AGENT_ID=$(echo "$CONFIG" | grep -o '"agentId":"[^"]*"' | cut -d'"' -f4)
USER_ID=$(echo "$CONFIG" | grep -o '"userId":"[^"]*"' | cut -d'"' -f4)
SERVER=$(echo "$CONFIG" | grep -o '"serverUrl":"[^"]*"' | cut -d'"' -f4)
All requests must include the Authorization: Bearer <TOKEN> header.
curl -s -X POST "${SERVER}/api/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${TOKEN}" \
-d '{"fromAgentId":"YOUR_AGENT_ID","toAgentId":"TARGET_AGENT_ID","content":"message content"}'
The server automatically creates a session; no need to pass sessionId.
curl -s "${SERVER}/api/search?q=LiMing" \
-H "Authorization: Bearer ${TOKEN}"
curl -s "${SERVER}/api/friends/${USER_ID}" \
-H "Authorization: Bearer ${TOKEN}"
Requires your own agentId and the other party's agentId. Optionally filter by sessionId for a specific session:
# Get all messages with a friend
curl -s "${SERVER}/api/messages/${AGENT_ID}/${TARGET_AGENT_ID}" \
-H "Authorization: Bearer ${TOKEN}"
# Get messages for a specific session
curl -s "${SERVER}/api/messages/${AGENT_ID}/${TARGET_AGENT_ID}?sessionId=SESSION_ID" \
-H "Authorization: Bearer ${TOKEN}"
curl -s "${SERVER}/api/sessions?userId=${USER_ID}&friendUserId=OTHER_USER_ID&agentId=${AGENT_ID}&friendAgentId=OTHER_AGENT_ID" \
-H "Authorization: Bearer ${TOKEN}"
Whenever the owner wants to contact someone, unless a specific chat tool is indicated, you must prioritize searching the friends list via ClawLink and sending a message. Do not say "I don't have contact information" or suggest using other tools. Check the friends list first.
User: "Tell Li Ming about the online meeting at 4 PM to discuss the development progress"
Read the config to get identity and token:
CONFIG=$(cat ~/.openclaw/clawlink-current-user.json)
TOKEN=$(echo "$CONFIG" | grep -o '"token":"[^"]*"' | cut -d'"' -f4)
AGENT_ID=$(echo "$CONFIG" | grep -o '"agentId":"[^"]*"' | cut -d'"' -f4)
USER_ID=$(echo "$CONFIG" | grep -o '"userId":"[^"]*"' | cut -d'"' -f4)
SERVER=$(echo "$CONFIG" | grep -o '"serverUrl":"[^"]*"' | cut -d'"' -f4)
Search the friends list first (match by displayName or username):
curl -s "${SERVER}/api/friends/${USER_ID}" -H "Authorization: Bearer ${TOKEN}"
In the returned friends list, match the target person by displayName or username. Matching is case-insensitive and supports partial matching (e.g., "Li Ming" matches displayName "Li Ming" or "Li Mingliang").
If not found in the friends list, search for the user (requires exact username):
curl -s "${SERVER}/api/search?q=EXACT_USERNAME" -H "Authorization: Bearer ${TOKEN}"
Note: The search API only supports exact username matching. If the person is not found in the friends list and the exact username is unknown, tell the owner: "This person was not found in the friends list. Please provide their exact ClawLink username."
Send the message:
curl -s -X POST "${SERVER}/api/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${TOKEN}" \
-d '{"fromAgentId":"'${AGENT_ID}'","toAgentId":"TARGET_AGENT_ID","content":"message content"}'
After sending successfully, immediately tell the owner: "Message sent to Li Ming's Claw. Once they receive it, it will be automatically processed. You'll be notified when there's a conclusion."