A Viam module that sends Slack notifications when items are checked out or returned. Use it alongside RFID readers, barcode scanners, or any Viam component that can issue do_command calls.
10zing:slack-notifier:notifications- Generic component that posts checkout and return events to a Slack channel via an incoming webhook.
- Create an incoming webhook in your Slack workspace and copy the URL.
- Add the module to your robot in the Viam app.
- Configure the
notificationscomponent with your webhook URL (see model docs for details).
Send commands to the component using do_command from any Viam SDK.
{
"action": "checkout",
"item_name": "Hex Wrench Set #3",
"tag_id": "RF-0042",
"image_url": "https://example.com/photo.jpg"
}Posts a "Checkout Detected" message to Slack with item name, tag ID, station, timestamp, and optional photo.
{
"action": "return",
"item_name": "Hex Wrench Set #3",
"tag_id": "RF-0042"
}Posts an "Item Returned" message to Slack.
{
"action": "late_notice",
"item_name": "Hex Wrench Set #3",
"tag_id": "RF-0042",
"days_overdue": 3,
"image_url": "https://example.com/photo.jpg"
}Posts an "Overdue Item — Please Return" message to Slack with the number of days overdue and optional checkout photo.
All commands return {"action": "<action>", "sent": true} on success or {"action": "<action>", "sent": false} if Slack delivery fails.