SL LLMs icon

SL LLMs

StrangeLogic LLM Node

Overview

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

Typical use cases include:

  • Analyzing or extracting information from videos by providing a URL and a textual prompt.
  • Automating video content understanding or summarization tasks.
  • Integrating video processing capabilities into workflows where video data needs to be interpreted or augmented by AI.

For example, a user might input a video URL of a lecture and a prompt asking for a summary of key points, and the node will return the processed output from the external API.

Properties

Name Meaning
Video URL URL of the video to be processed.
Prompt A prompt that you want the LLM or video processor to respond to or use as context.

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

Output

The node outputs a JSON object containing the response from the external API after processing the video. The structure depends on the API's response but generally includes the processed data or analysis results related to the video and 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 the "Process Video" operation.

Example output JSON structure:

{
  "result": "...",        // Processed video data or analysis result
  "additionalInfo": { ... } // Optional additional metadata from the API
}

Or in case of error:

{
  "error": "Error message describing what went wrong"
}

Dependencies

  • Requires an external API service accessible via a domain URL provided through credentials.
  • Needs an API authentication token (an API key credential) configured in n8n credentials to authorize requests.
  • The node makes HTTP POST requests to the endpoint ${domain}/process-video with JSON payloads.

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.

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

  • Invalid or empty video URL
    Providing an incorrect or empty video URL may lead to errors or unexpected results. Verify the URL before running the node.

  • Handling errors gracefully
    If the node is set to continue on failure, errors are returned in the output JSON under the error field instead of stopping execution.

Links and References

  • No direct links available from the source code.
  • For more details on configuring API credentials in n8n, see the n8n documentation on credentials.
  • Refer to the external API provider's documentation for specifics on the /process-video endpoint and expected request/response formats.

Discussion