Skip to main content

Send Prey missing-device alerts with Claude and Slack and log events to Sheets

Workflow preview

Workflow preview
100%
Send Prey missing-device alerts with Claude and Slack and log events to Sheets preview
Open on n8n.io

1. Workflow Overview

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 devi...

Best for

  • SecOps automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.switch, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-base.slack, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Patricio.

Original n8n.io source

1.1 Workflow description

Title
Send Prey missing-device alerts with Claude and Slack and log events to Sheets
Workflow name
Send Prey missing-device alerts with Claude and Slack and log events to Sheets

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

  1. Receives a basic-authenticated POST webhook from Prey containing a device event payload.
  2. Checks the event type and routes device_missing events down an alert path while sending all other event types directly to logging.
  3. For device_missing events, extracts key device/owner details and the last-known GPS location to build a Google Maps link.
  4. Sends the missing-device context to Anthropic Claude to generate a concise three-sentence security alert for IT.
  5. Posts the AI-generated alert and Maps link to a specified Slack channel.
  6. Normalizes both missing and non-missing events into a flat schema and appends each event as a new row in Google Sheets.

Setup

  1. 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.
  2. Add an Anthropic API credential for the Claude model used to generate the missing-device alert.
  3. Add a Slack credential with permission to post messages and set the target channel ID in the Slack message step.
  4. Add a Google Sheets OAuth2 credential and replace the spreadsheet URL/ID and sheet name used for the append operation.
  5. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - When Prey Event Posted

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 6 - Route by Event Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 7 - Set Alert Data Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Content Analysis Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 9 - Claude Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 10 - Post Alert to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 11 - Set Log Entry Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Append Log to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.4

Block 13 - Prepare Missing Event Log

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

3. Summary Table

Workflow Send Prey missing-device alerts with Claude and Slack and log events to Sheets
Complexity intermediate
Nodes 13
Categories SecOps, AI Summarization
Author Patricio
Published 27 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15992/15992.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send Prey missing-device alerts with Claude and Slack and log events to Sheets do?

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 devi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps, AI Summarization use case.