Send vibration alert to on-call channel with formatted value
When a device reports a vibration reading above your limit, the on-call chat gets a formatted alert with the device, the reading and the time, so technicians can triage quickly.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-vibration-alert-to-on-call-channel-with-formatted-value/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- IT · Io t connected operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-vibration-alert-to-on-call-channel-with-formatted-value
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-vibration-alert-to-on-call-channel-with-formatted-value/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-vibration-alert-to-on-call-channel-with-formatted-value - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy send-vibration-alert-to-on-call-channel-with-formatted-value - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-vibration-alert-to-on-call-channel-with-formatted-value
zaps/send-vibration-alert-to-on-call-channel-with-formatted-value/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/telegram.tsThe
telegramaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a device or script posts a telemetry reading to a Webhooks by Zapier catch hook (
webhook,hook_v2). - Check: if there is no numeric vibration reading, the run stops. If the reading is at or below the threshold, the run stops and sends nothing.
- Format: the reading is rounded to one decimal place.
- Telegram sends one alert to the on-call chat with the device ID, the formatted value, the raw reading, the threshold and the timestamp.
Readings at or below the threshold never send a message.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | Where | What goes there |
|---|---|---|
REPLACE_ON_CALL_CHAT_ID |
config.ts |
The Telegram chat or group that is on call. The bot must already be a member. |
REPLACE_ON_CALL_MENTION |
config.ts |
The on-call person's Telegram username, including the @. Only used when MENTION_ON_CALL is true (off by default). |
Also review these defaults with them, in the constants at the top of workflow.ts:
VIBRATION_THRESHOLD(default100): the reading above which an alert is sent.VALUE_PRECISION(default1): decimal places for the formatted value.MENTION_ON_CALL(defaultfalse): whether each alert starts with a mention.- The sender's field names. The workflow reads
device_id,vibrationandtimestamp. If the sender uses other names, change the schema inworkflow.tsbefore installing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-vibration-alert-to-on-call-channel-with-formatted-value, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-vibration-alert-to-on-call-channel-with-formatted-value, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
telegramto the user's Telegram bot connection, with the bot added to the on-call chat. The webhook trigger needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections, and sample the trigger, before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test, with a chat the user controls, using this sample input:
{
"device_id": "PUMP-07",
"vibration": 142.36,
"timestamp": "2026-10-29T10:15:00Z"
}
Check that one Telegram message arrives in the chat and reads Vibration alert: PUMP-07 read 142.4 (raw 142.36, threshold 100) at 2026-10-29T10:15:00Z.
Then run a sample at or below the threshold, such as "vibration": 88.1. Check that no Telegram message is sent and the run ends as skipped with below-threshold.
If run-status tools aren't available, check the result in Telegram directly. Ask the user to delete the test messages; the agent doesn't delete test data. Then publish, confirm the trigger is active, and send a real reading above the threshold to check the live alert.
Notes
- Above means strictly above: a reading exactly equal to the threshold does not alert.
- Each qualifying reading sends its own message, so a device that reports many high readings fills the chat. The device ID is in each alert; nothing is looked up against earlier events.
- To open an incident ticket when alerts repeat for one device, add a project management step. To reach someone when Telegram is missed on high readings, add an SMS or voice step.
- Never put a real chat ID, bot token or webhook URL in the code or docs. Anyone with the webhook URL can trigger alerts.