# Detect and triage risky OAuth apps with Claude and Slack: n8n workflow

> Started by a clock, and works across Slack. It hands the judgement calls to Claude. 20 steps, 2 branches, 1 loop or waits: a working afternoon to understand...

Source: https://millionrounds.com/workflow/detect-and-triage-risky-oauth-apps-with-claude-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Detect and triage risky OAuth apps with Claude and Slack

Started by a clock, and works across Slack. It hands the judgement calls to Claude. 20 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: Claude

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-and-triage-risky-oauth-apps-with-claude-and-slack)

**20 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 2 Logic 10 Service 7

The steps in the order they run, from what starts it.

- 1 **Cron - OAuth Scan Trigger** Schedule trigger *Starts it*
- 2 **Anthropic - Risk Scoring Model** Lm Chat Anthropic *Model*
- 3 **HTTP - Fetch Authorized OAuth Apps** Http Request *Service*
- 4 **HTTP - Fetch Baseline Whitelist** Http Request *Service*
- 5 **Claude - OAuth Risk Scoring** Agent *Model*
- 6 **Merge - Combine Apps & Baseline** Merge *Logic*
- 7 **JS - Parse Risk Scores** Code *Logic*
- 8 **JS - Diff Against Baseline** Code *Logic*
- 9 **Switch - Route by Risk Tier** Switch *Logic*
- 10 **IF - New or Changed Grants Found?** If *Logic*
- 11 **HTTP - Auto-Revoke OAuth Grant** Http Request *Service*
- 12 **Slack - Alert (Manual Review Required)** Slack *Service*
- 13 **JS - Log & Approve Silently** Code *Logic*
- 14 **HTTP - Enrich App Reputation** Http Request *Service*
- 15 **No Action - End Cycle** No Op *Logic*
- 16 **Slack - Critical Alert (App Revoked)** Slack *Service*
- 17 **Merge - All Branches** Merge *Logic*
- 18 **JS - Attach Reputation to Flagged Apps** Code *Logic*
- 19 **HTTP - Update Baseline Store** Http Request *Service*
- 20 **Wait For Model Buffer** Wait *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 20, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Slack
- **Model:** Claude

## Questions

What does it need to run?

An n8n account, plus your own Slack account, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Claude. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 20 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-and-triage-risky-oauth-apps-with-claude-and-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Analyze daily metrics with Google Sheets and Slack** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-daily-metrics-with-google-sheets-and-slack)
- [**Automate school lunch allergy checks with Google Sheets** 20 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-school-lunch-allergy-checks-with-google-sheets)
- [**Compare Amazon prices with Google Shopping and Bright Data** 20 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/compare-amazon-prices-with-google-shopping-and-bright-data)
- [**Fill web forms from Google Sheets with OpenAI and Playwright** 20 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/fill-web-forms-from-google-sheets-with-openai-and-playwright)
- [**Generate conference synthetic personas with Slack and Gemini** 20 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-conference-synthetic-personas-with-slack-and-gemini)
- [**Score LinkedIn job matches with OpenAI and Google Sheets** 20 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/score-linkedin-job-matches-with-openai-and-google-sheets)
