A comprehensive package of custom nodes for n8n that enables integration with Tiny ERP API, including specialized AI tools for AI Agent workflows.
- Modular Node Structure: Clean, maintainable code following n8n best practices
-
AI Agent Ready: Specialized AI tools with
$fromAI()
support - Complete ERP Integration: Products, Orders, and Users operations
- TypeScript Support: Full type safety and IntelliSense
- Error Handling: Comprehensive error handling with helpful messages
- Go to Settings > Community Packages
- Enter
n8n-nodes-tiny-erp-api-v2
- Click Install
npm install n8n-nodes-tiny-erp-api-v2
- Go to Credentials in n8n
- Click + Add Credential
- Search for "Tiny ERP API"
- Enter your Tiny ERP API token
- Access your Tiny ERP account
- Go to Settings > API
- Generate a new API token
- Copy the token to n8n credentials
Modular node with all Tiny ERP operations
- Products: Get products with pagination and filtering
- Orders: Retrieve detailed order information
- Users: Get user data with multiple filter options
- AI Tool Ready:
usableAsTool: true
for AI Agent integration
Specialized nodes optimized for AI Agent workflows
- Purpose: Comprehensive AI tool combining all operations
- Best For: General AI agents that need operation flexibility
- Features: Automatic operation detection, smart parameter inference
- Purpose: Dedicated product operations
- Best For: Inventory-focused AI agents
- Operations: Product search and retrieval
- Purpose: Dedicated order operations
- Best For: Order management AI agents
- Operations: Order data retrieval
- Purpose: Dedicated user operations
- Best For: Customer management AI agents
- Operations: User search and filtering
# Required for AI tool functionality
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
environment:
- N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
// AI can automatically fill these parameters
'={{ $fromAI("operationType", "Type of operation: products, orders, or users", "string") }}'
'={{ $fromAI("numeroPedido", "The order number to retrieve data for", "string") }}'
'={{ $fromAI("productName", "Name of the product to search for", "string") }}'
- Claude 3.5 Sonnet: Excellent parameter inference
- Claude 3.7 Sonnet: Advanced reasoning capabilities
- GPT-4: Good general performance
{
"resource": "products",
"operation": "getProducts",
"numeroPaginas": 1,
"productName": "laptop"
}
{
"resource": "orders",
"operation": "getOrderData",
"numeroPedido": "ORD-12345"
}
{
"resource": "users",
"operation": "getUserData",
"nomeUsuario": "João Silva",
"mesNascimento": 3,
"cpf": "123.456.789-00"
}
nodes/
├── TinyErp/ # Main modular node
│ ├── TinyErp.node.ts # Main node definition
│ ├── actions/ # Operations directory
│ │ ├── products/ # Product operations
│ │ ├── orders/ # Order operations
│ │ └── users/ # User operations
│ └── transport/ # API communication layer
- Separation of Concerns: Each operation in its own file
- Maintainability: Easy to update individual operations
- Scalability: Simple to add new operations
- Team Collaboration: Multiple developers can work simultaneously
- Testing: Individual operations can be unit tested
- Get Products: Retrieve product catalog with pagination
- Search Products: Filter products by name or criteria
- Inventory Check: Check product availability
- Get Order Data: Detailed order information
- Order Status: Current order status and tracking
- Order Items: List of items in an order
- Get User Data: User information and details
- Search Users: Filter by name, CPF, birth month
- User History: Customer interaction history
git clone <repository-url>
cd n8n-nodes-tiny-erp-api-v2
npm install
npm run build
npm run dev
npm run lint
npm run lintfix
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Run linting and tests
- Submit a pull request
MIT License - see LICENSE file for details
- ✨ Added AI tool nodes for AI Agent integration
- 🏗️ Modularized node structure
- 🤖 Added
$fromAI()
support - 📚 Comprehensive documentation
- 🔧 Improved error handling
- 🐛 Bug fixes and improvements
- 📝 Updated documentation