SL LLMs icon

SL LLMs

StrangeLogic LLM Node

Overview

This node, named "StrangeLogic LLM Node," provides two main operations: generating text using large language models (LLMs) and processing videos via an external API. The "Process Video" operation allows users to submit a video URL along with a prompt to an AI service that processes the video content accordingly.

Typical use cases for the "Process Video" operation include:

  • Analyzing or extracting information from video content based on a user prompt.
  • Automating video content understanding or summarization.
  • Integrating AI-powered video processing into workflows without manual intervention.

For example, a user might provide a video URL and a prompt asking the AI to summarize the video's content or identify key moments, receiving structured data or insights in response.

Properties

Name Meaning
Video URL URL of the video to be processed.
Prompt A prompt that you want the AI model to respond to, guiding how the video is processed.

Note: The "Model Type" property is not applicable for the "Process Video" operation and thus hidden when this operation is selected.

Output

The output JSON contains the full response from the external video processing API under the json field. This typically includes the processed results or analysis derived from the video based on the provided prompt.

If an error occurs during the API request, the output JSON will contain an error field with the error message.

No binary data output is produced by this operation.

Example output structure:

{
  "json": {
    // API response fields related to video processing result
  }
}

or in case of failure (if continueOnFail is enabled):

{
  "json": {
    "error": "Error message describing what went wrong"
  },
  "pairedItem": {
    "itemIndex": 0
  }
}

Dependencies

  • Requires an API key credential for authentication with the external AI service.
  • The node makes HTTP POST requests to the endpoint ${domain}/process-video, where domain and API key are obtained from the configured credentials.
  • The external service must support video processing via a REST API accepting JSON payloads with prompt and video_url.

Troubleshooting

  • No credentials returned!
    This error indicates missing or misconfigured API credentials. Ensure that the required API key credential is properly set up in n8n.

  • HTTP request failures or timeouts
    Network issues, invalid URLs, or server errors can cause request failures. Check the video URL validity, network connectivity, and API service status.

  • API error messages in output
    If the external API returns an error, it will appear in the output JSON's error field. Review the error message for details and adjust inputs accordingly.

  • Timeouts
    The HTTP request timeout is set to 120 seconds. Large or complex videos may require longer processing times; if timeouts occur frequently, consider increasing timeout settings if possible.

Links and References

  • No direct links are provided in the source code. For more information, consult the documentation of the external AI video processing service used with this node.

Discussion