n8n node for Base WeWork API integration - manage projects, tasks, departments with action nodes and 6 webhook triggers for real-time events
npm install n8n-nodes-base-weworkTích hợp hoàn chỉnh Base WeWork API vào n8n - Quản lý projects, tasks, departments với action nodes và webhook triggers cho sự kiện real-time!
``bash`
npm install n8n-nodes-base-wework
Sau đó restart n8n để load node.
| Resource | Operations | Description |
|----------|-----------|-------------|
| 📁 Project | Create, Edit, Get Full, List | Quản lý dự án (tạo, sửa, xem chi tiết, danh sách) |
| ✅ Task | Create, Create Subtask, Edit Basic Info, Edit Extra, Get, List by Project, Mark Done | Quản lý công việc và subtask |
| 🏢 Department | Create, Edit, Get, List, Remove | Quản lý phòng ban |
| Event | Description |
|-------|-------------|
| 🆕 On Task Created | Trigger khi task mới được tạo |
| ✅ On Task Done | Trigger khi task được đánh dấu hoàn thành |
| 🔄 On Task Status Updated | Trigger khi trạng thái task thay đổi |
| 📋 On Subtask Created | Trigger khi subtask mới được tạo |
| ✔️ On Subtask Done | Trigger khi subtask được đánh dấu hoàn thành |
| 🔄 On Subtask Status Updated | Trigger khi trạng thái subtask thay đổi |
bash
npm install n8n-nodes-base-wework
`$3
`bash
n8n start
`$3
1. Mở n8n UI → Credentials → Add Credential
2. Chọn Base WeWork API
3. Nhập:
- Domain: basevn.tech (hoặc domain Base WeWork của bạn)
- Access Token: Token từ Base WeWork
4. Click Save$3
- Add node → Search "Base WeWork"
- Select credential
- Choose Resource and Operation
- Execute! ⚡📖 Example Usage
$3
#### Create Project
`yaml
Node: Base WeWork
Resource: Project
Operation: Create
Username: @admin
Metatype: project
Name: My New Project
External: Inhouse (0)
Owners: @admin
Content: Project description
`#### Create Task
`yaml
Node: Base WeWork
Resource: Task
Operation: Create
Username: @admin
Project ID: 123
Tasklist ID: 456
Name: Important Task
Content: Task description
Assign: @user
`#### List Projects
`yaml
Node: Base WeWork
Resource: Project
Operation: List
`$3
#### Trigger on Task Created
`yaml
Node: Base WeWork Trigger
Event: On Task Created
Webhook URL sẽ được tạo tự động
Cấu hình webhook này trong Base WeWork để nhận events
`#### Trigger on Task Done
`yaml
Node: Base WeWork Trigger
Event: On Task Done
Tự động trigger workflow khi task được hoàn thành
`🌐 API Documentation
Full API documentation: https://documenter.getpostman.com/view/1345096/SztA68Az?version=latest
🛠️ Development
`bash
Clone repository
git clone https://github.com/basevn/n8n-nodes-base-wework.git
cd n8n-nodes-base-weworkInstall dependencies
npm installBuild
npm run buildLink for local development
npm link
`📝 License
MIT © BaseVN
🆘 Support
- 📧 Email: support@basevn.tech
- 🌐 Website: https://basevn.tech
- 📖 Documentation: https://github.com/basevn/n8n-nodes-base-wework
🙏 Credits
Built with ❤️ for the n8n community
---
Keywords: n8n, base, wework, project management, task management, automation, workflow
npm run dev
`This starts n8n with your nodes loaded and hot reload enabled.
What's Included
This starter repository includes two example nodes to learn from:
- Example Node - A simple starter node that shows the basic structure with a custom
execute method
- GitHub Issues Node - A complete, production-ready example built using the declarative style:
- Low-code approach - Define operations declaratively without writing request logic
- Multiple resources (Issues, Comments)
- Multiple operations (Get, Get All, Create)
- Two authentication methods (OAuth2 and Personal Access Token)
- List search functionality for dynamic dropdowns
- Proper error handling and typing
- Ideal for HTTP API-based integrations> [!TIP]
> The declarative/low-code style (used in GitHub Issues) is the recommended approach for building nodes that interact with HTTP APIs. It significantly reduces boilerplate code and handles requests automatically.
Browse these examples to understand both approaches, then modify them or create your own.
Finding Inspiration
Looking for more examples? Check out these resources:
- npm Community Nodes - Browse thousands of community-built nodes on npm using the
n8n-community-node-package tag
- n8n Built-in Nodes - Study the source code of n8n's official nodes for production-ready patterns and best practices
- n8n Credentials - See how authentication is implemented for various servicesThese are excellent resources to understand how to structure your nodes, handle different API patterns, and implement advanced features.
Prerequisites
Before you begin, install the following on your development machine:
$3
- Node.js (v22 or higher) and npm
- Linux/Mac/WSL: Install via nvm
- Windows: Follow Microsoft's NodeJS guide
- git
$3
- Follow n8n's development environment setup guide
> [!NOTE]
> The
@n8n/node-cli is included as a dev dependency and will be installed automatically when you run npm install. The CLI includes n8n for local development, so you don't need to install n8n globally.Getting Started with this Starter
Follow these steps to create your own n8n community node package:
$3
Generate a new repository from this template, then clone it:
`bash
git clone https://github.com//.git
cd
`$3
`bash
npm install
`This installs all required dependencies including the
@n8n/node-cli.$3
Browse the example nodes in nodes/ and credentials/ to understand the structure:
- Start with nodes/Example/ for a basic node
- Study nodes/GithubIssues/ for a real-world implementation
$3
Edit the example nodes to fit your use case, or create new node files by copying the structure from nodes/Example/.
> [!TIP]
> If you want to scaffold a completely new node package, use
npm create @n8n/node to start fresh with the CLI's interactive generator.$3
Update
package.json with your details:-
name - Your package name (must start with n8n-nodes-)
- author - Your name and email
- repository - Your repository URL
- description - What your node doesMake sure your node is registered in the
n8n.nodes array.$3
Start n8n with your node loaded:
`bash
npm run dev
`This command runs
n8n-node dev which:- Builds your node with watch mode
- Starts n8n with your node available
- Automatically rebuilds when you make changes
- Opens n8n in your browser (usually http://localhost:5678)
You can now test your node in n8n workflows!
> [!NOTE]
> Learn more about CLI commands in the @n8n/node-cli documentation.
$3
Check for errors:
`bash
npm run lint
`Auto-fix issues when possible:
`bash
npm run lint:fix
`$3
When ready to publish:
`bash
npm run build
`This compiles your TypeScript code to the
dist/ folder.$3
Before publishing:
1. Update documentation: Replace this README with your node's documentation. Use README_TEMPLATE.md as a starting point.
2. Update the LICENSE: Add your details to the LICENSE file.
3. Test thoroughly: Ensure your node works in different scenarios.
$3
Publish your package to make it available to the n8n community:
`bash
npm publish
`Learn more about publishing to npm.
$3
Get your node verified for n8n Cloud:
1. Ensure your node meets the requirements:
- Uses MIT license ✅ (included in this starter)
- No external package dependencies
- Follows n8n's design guidelines
- Passes quality and security review
2. Submit through the n8n Creator Portal
Benefits of verification:
- Available directly in n8n Cloud
- Discoverable in the n8n nodes panel
- Verified badge for quality assurance
- Increased visibility in the n8n community
Available Scripts
This starter includes several npm scripts to streamline development:
| Script | Description |
| --------------------- | ---------------------------------------------------------------- |
|
npm run dev | Start n8n with your node and watch for changes (runs n8n-node dev) |
| npm run build | Compile TypeScript to JavaScript for production (runs n8n-node build) |
| npm run build:watch | Build in watch mode (auto-rebuild on changes) |
| npm run lint | Check your code for errors and style issues (runs n8n-node lint) |
| npm run lint:fix | Automatically fix linting issues when possible (runs n8n-node lint --fix) |
| npm run release | Create a new release (runs n8n-node release) |> [!TIP]
> These scripts use the @n8n/node-cli under the hood. You can also run CLI commands directly, e.g.,
npx n8n-node dev.Troubleshooting
$3
1. Make sure you ran
npm install to install dependencies
2. Check that your node is listed in package.json under n8n.nodes
3. Restart the dev server with npm run dev
4. Check the console for any error messages$3
Run
npm run lint:fix to automatically fix most common issues. For remaining errors, check the n8n node development guidelines.$3
Make sure you're using Node.js v22 or higher and have run
npm install` to get all type definitions.- n8n Node Documentation - Complete guide to building nodes
- n8n Community Forum - Get help and share your nodes
- @n8n/node-cli Documentation - CLI tool reference
- n8n Creator Portal - Submit your node for verification
- Submit Community Nodes Guide - Verification requirements and process
Have suggestions for improving this starter? Open an issue or submit a pull request!