machador

n8n community node for Machador AI - Chat Model Integration for AI Workflows

Package Information

Downloads: 1 weekly / 6 monthly
Latest Version: 1.0.1
Author: Alex

Documentation

n8n-nodes-machador

pnpm install
pnpm run build
npm pack
npm publish --access public

Patch (0.1.0 → 0.1.1) → für Bugfixes
npm version patch

Minor (0.1.0 → 0.2.0) → für neue Features ohne Breaking Changes
npm version minor

Major (0.1.0 → 1.0.0) → für Breaking Changes
npm version major

Update Node:

npm version patch
git push origin main --tags
pnpm run build
npm publish --access public

This is an n8n community node package that integrates Machador AI into your workflows.

n8n
npm version
License

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 | Configuration | Resources


Installation

Via n8n Community Nodes

  1. Open your n8n instance
  2. Navigate to Settings → Community Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-machador
  5. Click Install

Via npm

npm install n8n-nodes-machador
Manual Installation
bashcd ~/.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:
ParameterTypeDefaultDescriptionModelOptionsmachador-largeAvailable Machador models (loaded dynamically)TemperatureNumber0.7Controls randomness (0-2)Max TokensNumber-1Maximum number of tokens (-1 = unlimited)Top PNumber1Nucleus sampling parameter (0-1)Frequency PenaltyNumber0Reduces repetition (-2 to 2)Presence PenaltyNumber0Encourages new topics (-2 to 2)Response FormatOptionstextOutput format: text or jsonTimeoutNumber360000Request timeout in millisecondsMax RetriesNumber2Maximum 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:
json{
  "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:
json{
  "sentiment": "positive",
  "key_topics": ["AI", "automation", "workflow"],
  "summary": "Discussion about AI-powered workflow automation..."
}

Configuration
Important Notes
JSON Response Format:

If using json_object response 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 outputs
0.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
RequirementVersionNode.js≥ 20.15n8n≥ 1.0.0DependenciesSee package.json
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 models
POST /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
bash# 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-dark.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:

Fork the repository
Create a feature branch
Make your changes
Submit a pull request


License
MIT License
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.0
Initial Release

✨ Machador Chat Model node
✅ Full LangChain compatibility
🎛️ Configurable parameters (temperature, max tokens, etc.)
📄 JSON response format support
🔐 Secure API authentication
🌐 Dynamic model loading

Discussion