Call a webhook when a message arrives
notify_on_messageWait for a matching chat message and POST its details to a webhook URL. This lets an assistant wake later and read the reply even if Beeper was offline.
Instructions
Durable wait that outlives this conversation: when a message matching chatID (and optionally from) arrives, a background notifier POSTs a short JSON to url: chatID, chat, sender, messageID, time, and the text only if includeText. Use it for long waits (a reply expected tonight or tomorrow) with a webhook that can wake an assistant (a T3 Code webhook task, n8n, Home Assistant…); when woken, read the message with get_new_messages. Nothing is missed while Beeper or the computer is off: the notifier catches up from since when it reconnects. Only https:// URLs, or http:// to localhost. It sends data about the user's chats to that URL: confirm with the user first, naming the URL's site.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chatID": "<chatID>",
"url": "<url>"
},
"name": "notify_on_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook to POST to: https://, or http:// to localhost | |
| from | No | Only senders whose name or ID contains this text | |
| once | No | Stop after the first matching message (default true); false keeps calling for every message | |
| since | No | ISO time, at most 7 days ago: also act on messages already received after it, e.g. the time of your last message (default: now) | |
| chatID | Yes | Chat to watch (chat ID or local chat ID) | |
| includeText | No | Also send the message text to the URL (default false: the woken assistant reads it with get_new_messages). Only with once: true |