Description
n8n-nodes-machador
This is an n8n community node package that integrates Machador AI into your workflows.
Machador is an advanced AI platform providing powerful language models for various use cases. With this n8n community node, you can leverage Machador's AI capabilities directly in your n8n workflows.
Installation | Features | Credentials | Usage | Examples | Configuration | Resources
Installation
Via n8n Community Nodes
- Open your n8n instance
- Navigate to Settings → Community Nodes
- Click Install a community node
- Enter:
n8n-nodes-machador - Click Install
Via npm
npm install n8n-nodes-machador
Manual Installation
cd ~/.n8n/nodes
npm install n8n-nodes-machador
# Restart n8n
Features
🤖 Machador Chat Model
Complete integration of Machador's Large Language Models with the following capabilities:
- 🔐 Secure API Authentication – Simple configuration with API key
- ⚡ Optimized Performance – Built for production AI workflows
- 🎛️ Flexible Configuration – Customizable parameters (temperature, max tokens, etc.)
- 📄 JSON Response Format – Support for structured outputs
- 🔗 LangChain Compatible – Works seamlessly with AI Chains and Agents
- 🌐 Dynamic Model Selection – Automatically loads available models from API
Credentials
Setting up Machador API Credentials
- In n8n, create a new Machador API credential
- Enter your Machador API key
- The base URL is pre-configured:
https://api.machador.net/v1
Get your API key: Sign up at Machador or contact their support.
Usage
Available Nodes
Machador Chat Model (lmChatMachador)
This node enables the use of Machador's chat models in AI Chains and Agents.
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| Model | Options | (dynamic) | Available Machador models (loaded dynamically from API) |
| Temperature | Number | 0.7 | Controls randomness (0-2) |
| Max Tokens | Number | -1 | Maximum number of tokens (-1 = unlimited) |
| Top P | Number | 1 | Nucleus sampling parameter (0-1) |
| Frequency Penalty | Number | 0 | Reduces repetition (-2 to 2) |
| Presence Penalty | Number | 0 | Encourages new topics (-2 to 2) |
| Response Format | Options | text | Output format: text or json_object |
| Timeout | Number | 360000 | Request timeout in milliseconds |
| Max Retries | Number | 2 | Maximum number of retry attempts |
Examples
1. Simple Chat Workflow
┌─────────────────┐
│ Webhook Trigger │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Set Variables │ ← Prepare prompt
└────────┬────────┘
│
▼
┌─────────────────┐
│ Machador Chat │ ← Generate AI response
│ Model │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Respond to │
│ Webhook │
└─────────────────┘
2. AI Agent Workflow
┌─────────────────┐
│ AI Agent │
│ │
│ Language Model:│
│ ├─ Machador │ ← Machador as LLM
│ │ Chat Model │
│ │
│ Tools: │
│ ├─ HTTP │ ← Add various tools
│ ├─ Database │
│ └─ Custom │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Process Agent │
│ Results │
└─────────────────┘
3. JSON Response for Structured Data
┌─────────────────┐
│ Set Node │ ← Prepare prompt with "json" keyword
└────────┬────────┘
│
▼
┌─────────────────┐
│ Machador Chat │ ← Response Format: JSON
│ Model │
└────────┬────────┘
│
▼
┌─────────────────┐
│ JSON Parser │ ← Process structured data
└─────────────────┘
4. Example: Content Analysis
Node Configuration:
{
"model": "machador-large",
"temperature": 0.3,
"responseFormat": "json_object"
}
Prompt:
Analyze the following text and return a JSON object with sentiment, key_topics, and summary:
{{ $json.text }}
Expected Output:
{
"sentiment": "positive",
"key_topics": ["AI", "automation", "workflow"],
"summary": "Discussion about AI-powered workflow automation..."
}
Configuration
Important Notes
JSON Response Format
- If using
json_objectresponse format, include the word "json" in your prompt - This feature requires models released after November 2023
- The model will guarantee valid JSON output
Temperature Settings
0.0– Deterministic, consistent outputs0.7– Balanced (default)2.0– Maximum creativity and randomness
Token Management
-1= No limit (uses model's maximum context)- Set specific limits to control costs and response length
Compatibility
| Requirement | Version |
|---|---|
| Node.js | ≥ 18 |
| n8n | ≥ 1.0.0 |
Tested with:
- n8n version 1.x
- Latest Machador API (v1)
API Documentation
For detailed information about the Machador API, visit the official documentation.
Key Endpoints:
GET /models– List available modelsPOST /chat/completions– Chat completions
Resources
- 📚 n8n Community Nodes Documentation
- 🤖 Machador API Documentation
- 💬 n8n Community Forum
- 🐛 Report Issues
- 📦 npm Package
Development
This package was developed using the n8n nodes starter template.
Setup
# Install dependencies
npm install
# Build the package
npm run build
# Development mode (watch)
npm run dev
# Linting
npm run lint
# Format code
npm run format
Project Structure
n8n-nodes-machador/
├── credentials/
│ └── MachadorApi.credentials.ts
├── nodes/
│ └── llms/
│ └── LmChatMachador/
│ ├── LmChatMachador.node.ts
│ └── machador.svg
├── dist/ # Built files (created after npm run build)
├── package.json
├── tsconfig.json
└── README.md
Support
Getting Help
- GitHub Issues: Report bugs or request features
- n8n Community: Ask questions in the forum
- Machador Support: docs.machador.net
Contributing
Contributions are welcome! Please read our Contributing Guide for details on:
- Development setup
- Code standards
- Testing requirements
- Pull request process
Quick start:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
See CONTRIBUTING.md for full guidelines.
License
MIT License
This package is licensed under the MIT License. See the LICENSE.md file for details.
Copyright 2022 n8n
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Changelog
Version 1.0.1
- ✨ Machador Chat Model node
- ✅ Full LangChain compatibility
- 🎛️ Configurable parameters (temperature, max tokens, etc.)
- 📄 JSON response format support
- 🔐 Secure API authentication
- 🌐 Dynamic model loading
Made with ❤️ for the n8n Community