Send Prey missing-device alerts with Claude and Slack and log events to Sheets
Go to WorkflowDescription
Quick overview
This workflow receives Prey device webhook events, sends device_missing incidents to Anthropic Claude to generate an urgent Slack alert, and appends both missing and non-missing device lifecycle events to a Google Sheets audit log.
How it works
Receives a basic-authenticated POST webhook from Prey containing a device event payload.
Checks the event type and routes device_missing events down an alert path while sending all other event types directly to logging.
For device_missing events, extracts key device/owner details and the last-known GPS location to build a Google Maps link.
Sends the missing-device context to Anthropic Claude to generate a concise three-sentence security alert for IT.
Posts the AI-generated alert and Maps link to a specified Slack channel.
Normalizes both missing and non-missing events into a flat schema and appends each event as a new row in Google Sheets.
Setup
Create and select HTTP Basic Auth credentials in the webhook and use the same username/password when configuring the Prey webhook in the Prey Control Panel.
Add an Anthropic API credential for the Claude model used to generate the missing-device alert.
Add a Slack credential with permission to post messages and set the target channel ID in the Slack message step.
Add a Google Sheets OAuth2 credential and replace the spreadsheet URL/ID and sheet name used for the append operation.
Activate the workflow, copy the live webhook URL, and paste it into the Prey Control Panel webhook configuration.
Requirements
Prey account / Slack API KEY / Claude API KEY / Google Sheets API