Back to Nodes

Machador Chat Model

Last updated Oct 11, 2025

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

4 Weekly Downloads
29 Monthly Downloads

Included Nodes

Machador Chat Model

Description

n8n-nodes-machador

n8n
npm version
License

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

  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

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

  1. In n8n, create a new Machador API credential
  2. Enter your Machador API key
  3. 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_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

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 models
  • POST /chat/completions – Chat completions

Resources


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


Contributing

Contributions are welcome! Please read our Contributing Guide for details on:

  • Development setup
  • Code standards
  • Testing requirements
  • Pull request process

Quick start:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. 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