Overview
This node integrates with the MakeHub AI large language model (LLM) API to generate text completions based on chat messages. It is designed to send a series of messages with roles (user, assistant, system) to the MakeHub AI chat completion endpoint and receive generated responses. This node is useful for automating conversational AI tasks such as generating replies, summarizing content, or creating chatbot interactions.
Typical use cases include:
- Building chatbots that respond dynamically to user input.
- Generating AI-driven content or suggestions based on conversation history.
- Automating customer support or virtual assistant workflows.
Properties
Name | Meaning |
---|---|
Transformed Messages | A required string input property shown only when the operation is not "messageModel". Its exact usage is not detailed in the code but likely holds pre-processed or alternative message data. |
Note: The provided properties JSON only includes "Transformed Messages" which is hidden when the operation is "messageModel". The main logic for the "messageModel" operation uses other parameters like "messages", "model", and various settings, but these were not included in the user's properties list.
Output
The node outputs a JSON array where each item corresponds to an input item processed:
For the "messageModel" operation, the output JSON contains either:
- An object with a
content
field holding the AI-generated response text from the LLM. - Or, if simplification is disabled, the full API response object from MakeHub AI.
- An object with a
In case of errors and if "continue on fail" is enabled, the output item will contain an
error
field with the error message.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the MakeHub AI API.
- Makes HTTP requests to
https://api.makehub.ai/v1
. - Uses n8n helper methods for HTTP requests and expression evaluation.
- Requires network access to the MakeHub AI service.
Troubleshooting
- Error evaluating expressions in messages: If message content includes expressions (e.g.,
{{ }}
or$
), evaluation errors may occur. Ensure expressions are valid and context variables exist. - No models found: If the node cannot retrieve available models from the API, check the API key validity and network connectivity.
- API request failures: Errors during the HTTP request to MakeHub AI may be due to invalid credentials, rate limits, or service downtime. Review error messages and verify API key permissions.
- Empty or missing messages: The node expects at least one message in the "messages" collection; ensure this is provided.
- Continue on Fail behavior: When enabled, errors do not stop execution but are returned as error objects in output items.
Links and References
- MakeHub AI API Documentation (assumed, based on base URL)
- n8n Expressions Documentation
- n8n Node Development Guide
If you want details about other operations or resources, or more properties, please provide them.