SL LLMs icon

SL LLMs

StrangeLogic LLM Node

Overview

This node integrates with StrangeLogic's Large Language Models (LLMs) API to perform two main operations: generating text based on a prompt or processing a video URL with an associated prompt. It is useful for automating content generation, natural language understanding, and video analysis tasks where AI-driven insights or transformations are needed.

  • Generate Text: Given a user prompt, the node sends it to a selected LLM model and returns generated text responses. This can be used for chatbots, content creation, summarization, or any scenario requiring AI-generated text.
  • Process Video: The node accepts a video URL and a prompt, sending these to the API to analyze or process the video content in context of the prompt. This is beneficial for extracting insights from videos, generating captions, or performing AI-based video content analysis.

Practical Examples

  • Automatically generate marketing copy or social media posts by providing a prompt.
  • Analyze a training video by submitting its URL along with specific questions or instructions.
  • Create interactive chatbots that respond using advanced LLMs.
  • Extract meaningful summaries or metadata from video content.

Properties

Name Meaning
Operation Choose between "Generate Text" or "Process Video" operation modes.
Video URL URL of the video to be processed (only shown when Operation is "Process Video").
Model Name or ID Select an LLM model from a dynamically loaded list or specify a model ID (only for text).
Prompt The input prompt or message you want the LLM to respond to or use for video processing.

Output

The node outputs an array of JSON objects, each representing the response from the API for each input item:

  • For Generate Text operation, the JSON contains the generated text or structured JSON response depending on the model and settings.
  • For Process Video operation, the JSON contains the processed video data returned by the API, which may include analysis results, captions, or other metadata related to the video and prompt.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authentication with the StrangeLogic AI API.
  • The node makes HTTP POST requests to the StrangeLogic API endpoints:
    • /llms for text generation.
    • /process-video for video processing.
  • The node dynamically loads available models from https://ai.system.sl/llm-models.
  • Proper network access and valid credentials are necessary for successful operation.

Troubleshooting

  • No credentials returned!
    Occurs if the required API key credential is missing or not configured. Ensure the API key is set up correctly in n8n credentials.

  • Invalid response from API
    If the model list or API responses are malformed or unexpected, verify the API endpoint availability and your network connection.

  • API request failures
    Network issues, invalid URLs, or incorrect parameters can cause errors. Check the video URL validity and prompt formatting.

  • Continue On Fail behavior
    If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.

Links and References

Discussion