Skip to content

Clean up n8n sample agent as we can now directly use n8n new node#100

Merged
rbrighenti merged 11 commits into
mainfrom
users/rbrighenti/n8n-clean-up-new-node
Feb 9, 2026
Merged

Clean up n8n sample agent as we can now directly use n8n new node#100
rbrighenti merged 11 commits into
mainfrom
users/rbrighenti/n8n-clean-up-new-node

Conversation

@rbrighenti

@rbrighenti rbrighenti commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

With the new node in n8n released, users no longer need a separate agent application for all the integrations. Everything is built into n8n.

New node in n8n created at: n8n-io/n8n#25145

Summary of changes:

This pull request significantly simplifies the n8n sample agent by removing custom Node.js implementation files and documentation, and updating the README to reflect a new, n8n-native approach using the Microsoft Agent 365 node. The changes focus on eliminating redundant code and configuration, and providing clear, step-by-step instructions for deploying and configuring the agent entirely within n8n, without the need for external code or a custom server.

Major documentation and configuration changes:

Documentation and onboarding simplification:

  • Rewrote the README.md to guide users through deploying and configuring the agent using only n8n's Microsoft Agent 365 node, including credential setup, permissions, and workflow design. The new instructions clarify that no external code or compilation is required.
  • Removed the detailed code walkthrough (Agent-Code-Walkthrough.MD) and the separate design document (docs/design.md), as the custom Node.js implementation is no longer needed. [1] [2]
  • Added a direct link to the Microsoft Agent 365 documentation in the resources section for easier access to official guidance.

Configuration and code cleanup:

  • Deleted the .env.template file and ToolingManifest.json, removing environment variables and tool configuration that are now handled within n8n. [1] [2]
  • Removed the package.json file, eliminating all Node.js dependencies and scripts, since the agent no longer requires a standalone Node.js runtime or build process.

These changes streamline the sample agent to rely solely on n8n's built-in capabilities, reducing setup complexity and maintenance overhead.

Comment thread nodejs/n8n/sample-agent/README.md Outdated
Comment thread nodejs/n8n/sample-agent/README.md Outdated
Comment thread nodejs/n8n/sample-agent/README.md
@Josina20 Josina20 force-pushed the users/rbrighenti/n8n-clean-up-new-node branch from 2ebe3bf to c636b12 Compare December 22, 2025 20:02
@rbrighenti rbrighenti force-pushed the users/rbrighenti/n8n-clean-up-new-node branch 5 times, most recently from b1df4c0 to d5739cf Compare January 9, 2026 13:57

Copilot AI commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

@rbrighenti I've opened a new pull request, #207, to work on those changes. Once the pull request is ready, I'll request review from you.

@rbrighenti rbrighenti force-pushed the users/rbrighenti/n8n-clean-up-new-node branch from 330a830 to 6930e30 Compare February 3, 2026 12:37
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown

✅ All E2E Tests Passed

Sample Status Result
Python OpenAI success
Node.js OpenAI success
Node.js LangChain success
.NET Semantic Kernel success
.NET Agent Framework success

📦 SDK Versions: View the workflow summary for detailed SDK version information.

View full test details

@rbrighenti

Copy link
Copy Markdown
Contributor Author

@copilot Please remove the "docs" folder and the ".env.template" file that were added or edited in the "nodejs/n8n/sample-agent" folder after the creation of this PR.

The final state of the n8n sample-agent here should be to have only the README and the manifest folder

Copilot AI commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

@rbrighenti I've opened a new pull request, #208, to work on those changes. Once the pull request is ready, I'll request review from you.

@rbrighenti rbrighenti marked this pull request as ready for review February 3, 2026 12:59
@rbrighenti rbrighenti requested a review from a team as a code owner February 3, 2026 12:59
Copilot AI review requested due to automatic review settings February 3, 2026 12:59
@rbrighenti

Copy link
Copy Markdown
Contributor Author

@microsoft/agent365-approvers Hey approvers. This PR was in Draft for a while, but now ready for review. Please take a look :)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the n8n sample agent by removing the custom Node.js host implementation and related configuration, and by updating the documentation to guide users toward using n8n’s built‑in Microsoft Agent 365 node instead. The sample now relies entirely on n8n for execution, with this repo primarily providing the manifest and onboarding instructions.

Changes:

  • Removed all Node.js/TypeScript source files, build configuration, environment templates, and MCP tooling manifests for the n8n sample agent.
  • Deleted detailed code/design documentation that described the previous custom Node.js implementation.
  • Rewrote the README.md to focus on configuring an Agent 365 blueprint and wiring it to an n8n workflow using the Microsoft Agent 365 node, including permissions and consent steps.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
nodejs/n8n/sample-agent/tsconfig.json Removed TypeScript build configuration since the sample no longer uses a Node.js host.
nodejs/n8n/sample-agent/src/telemetry.ts Removed custom observability initialization; observability is now handled via n8n/Microsoft Agent 365 node.
nodejs/n8n/sample-agent/src/n8nClient.ts Removed custom HTTP client that proxied messages to an n8n webhook, as this flow is now handled within n8n.
nodejs/n8n/sample-agent/src/n8nAgent.ts Removed the agent logic class that routed Bot Framework activities to n8n.
nodejs/n8n/sample-agent/src/mcpToolRegistrationService.ts Removed MCP server discovery and tool registration code; MCP tools are now configured directly in the Agent 365 / n8n integration.
nodejs/n8n/sample-agent/src/index.ts Removed Express-based hosting entry point for /api/messages.
nodejs/n8n/sample-agent/src/agent.ts Removed AgentApplication setup and activity handler wiring for the custom agent host.
nodejs/n8n/sample-agent/package.json Dropped Node.js dependencies and scripts since no Node.js runtime is required for this sample anymore.
nodejs/n8n/sample-agent/docs/design.md Deleted design document describing the legacy Node.js architecture in favor of the new n8n-native approach.
nodejs/n8n/sample-agent/ToolingManifest.json Removed MCP tooling manifest now that tooling integration is handled via Agent 365/n8n configuration.
nodejs/n8n/sample-agent/Agent-Code-Walkthrough.MD Deleted detailed code walkthrough for the old implementation.
nodejs/n8n/sample-agent/.env.template Removed environment variable template since the sample no longer runs a separate host.
nodejs/n8n/sample-agent/README.md Replaced Node.js-focused setup instructions with end-to-end guidance for configuring an Agent 365 blueprint, granting permissions, and connecting it to an n8n workflow using the Microsoft Agent 365 node.

Comment thread nodejs/n8n/sample-agent/README.md Outdated
Comment thread nodejs/n8n/sample-agent/README.md Outdated
Comment thread nodejs/n8n/sample-agent/README.md Outdated
Comment thread nodejs/n8n/sample-agent/README.md

Copilot AI commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

@rbrighenti I've opened a new pull request, #209, to work on those changes. Once the pull request is ready, I'll request review from you.

Comment thread nodejs/n8n/sample-agent/ToolingManifest.json
Comment thread nodejs/n8n/sample-agent/.env.template
@rbrighenti rbrighenti force-pushed the users/rbrighenti/n8n-clean-up-new-node branch from a77da1b to 8e179d1 Compare February 5, 2026 17:04
rahuldevikar761
rahuldevikar761 previously approved these changes Feb 5, 2026
@rbrighenti rbrighenti enabled auto-merge (squash) February 5, 2026 17:21
@rbrighenti rbrighenti dismissed stale reviews from nikhilNava and rahuldevikar761 via fe4ad55 February 6, 2026 14:54
@rbrighenti rbrighenti force-pushed the users/rbrighenti/n8n-clean-up-new-node branch from fe4ad55 to f583ee3 Compare February 6, 2026 14:57
@rbrighenti

Copy link
Copy Markdown
Contributor Author

Code Review Comment for nodejs/n8n/sample-agent/manifest/manifest.json:11

⚠️ Stale Manifest Description

The manifest.json contains a description stating: 'This sample demonstrates how to build an agent using n8n in Node.js with the Microsoft Agent 365 SDK.' However, the PR removes all Node.js code and the new README emphasizes that no external code is needed. This creates a description mismatch between the manifest and the updated documentation.

@copilot reword the description in the manifest.json given the feedback above

Copilot AI commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

@rbrighenti I've opened a new pull request, #214, to work on those changes. Once the pull request is ready, I'll request review from you.

@rbrighenti

Copy link
Copy Markdown
Contributor Author

Code Review Comment for nodejs/docs/design.md:415

⚠️ Broken Internal Link to Deleted Design Document

The Node.js design guidelines document at nodejs/docs/design.md line 415 references the n8n sample design document: '- N8N Sample Design'. This PR deletes nodejs/n8n/sample-agent/docs/design.md, creating a broken link in the parent documentation.

Suggested fix:

Either remove the link or update it to note that n8n uses a documentation-only approach with n8n's built-in Microsoft Agent 365 node.

@copilot given the feedback above, please remove the line that references the "N8N Sample Design" from the file at nodejs/docs/design.md

Copilot AI commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

@rbrighenti I've opened a new pull request, #215, to work on those changes. Once the pull request is ready, I'll request review from you.

rbrighenti and others added 11 commits February 9, 2026 13:14
* Initial plan

* Add minimum n8n version requirement (2.7.0) to README

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
* Initial plan

* Remove docs folder and .env.template from n8n sample-agent

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan

* Fix link text: Microsoft Agents 365 → Microsoft Agent 365

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
* Initial plan

* Update README to reference SECURITY.md at repository root

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
* Initial plan

* Update manifest.json description to reflect n8n-native approach

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

* Apply suggestion from @rbrighenti

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
* Initial plan

* Remove broken link to deleted N8N design document

Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rbrighenti <202984599+rbrighenti@users.noreply.github.com>
@rbrighenti rbrighenti force-pushed the users/rbrighenti/n8n-clean-up-new-node branch from 0b1b0d3 to c16177c Compare February 9, 2026 13:14
@rbrighenti rbrighenti merged commit 23f80a6 into main Feb 9, 2026
39 checks passed
@rbrighenti rbrighenti deleted the users/rbrighenti/n8n-clean-up-new-node branch February 9, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants