Museai Model icon

Museai Model

A node to interact with a custom Museai model

Overview

This node allows users to interact with a custom Museai language model by sending messages and receiving generated completions. It is useful for scenarios where you want to integrate AI-generated text responses into your workflows, such as chatbots, content generation, or automated replies.

For example, you can send a prompt message to the specified Museai model and get back a text completion based on that input. This enables automation of creative writing, customer support answers, or any task requiring natural language understanding and generation.

Properties

Name Meaning
Model The identifier of the Museai model to use for generating the completion.
Message The input text message or prompt to send to the model for generating a response.
Temperature Controls randomness in the output; lower values make the response more predictable.

Output

The node outputs JSON data containing the generated text from the Museai model. The main output field is:

  • output: A string representing the text generated by the model in response to the input message.

If the node is configured to return all data (returnAll parameter), it outputs the full raw response from the API under the json field instead of just the simplified output.

No binary data is produced by this node.

Example output when not returning all data:

{
  "output": "Generated text from the Museai model"
}

Dependencies

  • Requires an API key credential for authenticating with the Museai service.
  • Needs the base URL of the Museai API endpoint.
  • The node makes HTTP POST requests to the Museai API with JSON payloads.
  • Proper configuration of the API token and URL in n8n credentials is necessary.

Troubleshooting

  • No content found in response: This error occurs if the API response does not contain any generated message content. Check that the model ID and message are valid and that the API service is responding correctly.
  • Authentication errors: If the API token is invalid or missing, requests will fail. Ensure the API key credential is correctly set up.
  • Network or request failures: Connectivity issues or incorrect API URLs can cause request errors. Verify network access and the correctness of the API URL.
  • The node supports continuing on failure, which allows workflows to proceed even if some requests fail, returning error details in the output.

Links and References

Discussion