# AI-Powered NPM Package Intelligence Agent with OpenAI: n8n workflow

> Started by someone submitting a form, and works across GitHub and Slack. It hands the judgement calls to OpenAI and OpenRouter.

Source: https://millionrounds.com/workflow/ai-powered-npm-package-intelligence-agent-with-openai (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)

# AI-Powered NPM Package Intelligence Agent with OpenAI

Started by someone submitting a form, and works across GitHub and Slack. It hands the judgement calls to OpenAI and OpenRouter. 24 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI, OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-npm-package-intelligence-agent-with-openai)

**24 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 5 Logic 9 Service 9

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

- 1 **/search in Firecrawl** Firecrawl Tool *Service*
- 2 **/scrape in Firecrawl** Firecrawl Tool *Service*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **Enter Package Name** Form trigger *Starts it*
- 5 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 6 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 7 **AI Analysis Engine** Agent *Model*
- 8 **Normalize Input** Set *Logic*
- 9 **Structured Output Parser** Output Parser Structured *Model*
- 10 **Send Slack Report** Slack *Service*
- 11 **Search NPM URL** Firecrawl *Service*
- 12 **Search GitHub Repo** Firecrawl *Service*
- 13 **Merge Search Results** Merge *Logic*
- 14 **Extract Clean URLs** Code *Logic*
- 15 **Fetch GitHub Stats** Github *Service*
- 16 **Github details** Set *Logic*
- 17 **Fetch Last Commit** Http Request *Service*
- 18 **Merge All Metrics** Merge *Logic*
- 19 **Commit deatils** Set *Logic*
- 20 **Compute Health Metrics** Set *Logic*
- 21 **Fetch NPM Downloads** Http Request *Service*
- 22 **Check Package Valid** If *Logic*
- 23 **Package Not Found Handler** Set *Logic*
- 24 **Send Slack Report_01** Slack *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 24, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** GitHub, Slack
- **Model:** OpenAI, OpenRouter

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenAI and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

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 24 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%2Fai-powered-npm-package-intelligence-agent-with-openai)
- **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.

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

## Workflows like it

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

- [**AI-powered fuzzy matching, and assigns confidence scores.** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-fuzzy-matching-and-assigns-confidence-scores)
- [**Analyze pharma label change impact with Claude and Slack** 24 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/analyze-pharma-label-change-impact-with-claude-and-slack)
- [**Audit and cancel unused SaaS seats with Google Sheets** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/audit-and-cancel-unused-saas-seats-with-google-sheets)
- [**Benchmark employer brand on Glassdoor with Bright Data** 24 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/benchmark-employer-brand-on-glassdoor-with-bright-data)
- [**Detect and enforce abuse cases with OpenAI and Slack** 24 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/detect-and-enforce-abuse-cases-with-openai-and-slack)
- [**Enforce marketplace seller compliance with OpenAI and Gmail** 24 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/enforce-marketplace-seller-compliance-with-openai-and-gmail)
