Actions2
Overview
This node integrates with StrangeLogic's LLM (Large Language Model) API to perform two main operations: generating text responses based on a user prompt, and processing videos by sending a video URL along with a prompt. It is useful for automating content generation, video analysis, or any workflow requiring AI-driven text or video processing.
Use Case Examples
- Generating a text response from a prompt using a selected AI model.
- Processing a video by providing its URL and a prompt to analyze or extract information.
Properties
| Name | Meaning |
|---|---|
| Video URL | The URL of the video to be processed by the AI model. Used only when the operation is 'Process Video'. |
| Model Name or ID | The identifier or name of the AI model to use for text generation. This is required for text generation operations and can be selected from a dynamically loaded list or specified via expression. |
| Prompt | The input prompt or message that the AI model will respond to or use as context for processing. |
Output
JSON
json- The JSON response from the AI API, containing either the generated text or the processed video data.
Dependencies
- Requires an API key credential for authentication with the StrangeLogic AI API.
Troubleshooting
- Ensure that the API credentials are correctly configured; missing credentials will cause the node to fail.
- If the API returns an error, the node will throw an error unless 'Continue On Fail' is enabled, in which case the error message is included in the output JSON.
- For the 'Process Video' operation, ensure the video URL is valid and accessible by the API.
- For text generation, ensure a valid model is selected or specified; an invalid model ID may cause API errors.
Links
- n8n Expressions Documentation - Guidance on how to use expressions to specify dynamic values such as model IDs.
