n8n Integration
n8n (opens in a new tab) is a workflow automation platform that enables connecting various services. This guide explains different methods to integrate MakeHub AI's LLM capabilities with n8n workflows.
Method 1: Using OpenAI Node with Custom Base URL
The simplest way to use MakeHub in n8n is through the built-in OpenAI node with a modified base URL:
- Add an OpenAI node to your workflow
- Configure your credentials with:
- Base URL:
https://api.makehub.ai/v1
- API Key: Your MakeHub API key
- Base URL:
- Select your operation and model as you would with OpenAI
- Configure your request parameters (prompt, temperature, etc.)
This method leverages MakeHub's API compatibility with OpenAI's interface.
Method 2: Using MakeHub Custom Node
For advanced features including performance controls and updated model lists, use the dedicated MakeHub node:
Installation
# Navigate to your n8n directory
cd ~/.n8n
# Install the MakeHub node
npm install n8n-nodes-makehub
Alternatively, you can install it through the n8n interface:
- Navigate to Settings > Community Nodes
- Click Install a Community Node
- Enter
n8n-nodes-makehub
in the package name field - Click Install
Configuration
- Add the MakeHub AI node to your workflow
- Create new credentials with your MakeHub API key
- Select a model from the dynamically loaded model list
- Configure message content and parameters
- Set performance settings:
- Min Throughput Mode: Control token generation speed (tokens/sec)
- Max Latency Mode: Control maximum latency (ms)
Performance Optimization
The MakeHub node offers three performance modes:
- Best Price: Most economical option
- Custom Value: Manually set throughput/latency values
- Best Performance: Optimized for speed (higher cost)
Method 3: Direct Integration (Coming Soon)
The MakeHub team is working on a pull request to natively integrate MakeHub capabilities into n8n's core. This will provide deeper integration without requiring custom node installation.
Example Workflow
Here's a simple workflow example:
- HTTP Request (Trigger) → Receives a prompt from an external source
- MakeHub AI → Processes the prompt with your chosen AI model
- Function → Parses and processes the AI response
- Send Email → Delivers the results
Troubleshooting
- Ensure your API key has sufficient credits
- Check network connectivity to api.makehub.ai
- Verify your model selection is available in your MakeHub subscription
For additional help, contact support@makehub.ai or visit the documentation (opens in a new tab).