Actions2
Overview
This node integrates with an external AI service to perform two main operations: generating text completions and processing videos. For the Process Video operation, it sends a video URL along with a prompt to the AI service, which presumably analyzes or processes the video content based on the prompt.
Typical use cases include:
- Automatically extracting insights or summaries from video content.
- Generating descriptions or metadata for videos using AI understanding.
- Enhancing video workflows by integrating AI-driven video analysis.
For example, a user might provide a URL of a lecture video and a prompt asking for a summary of key points discussed in the video. The node would send this data to the AI service and return the processed result.
Properties
| Name | Meaning |
|---|---|
| Video URL | URL of the video to be processed. |
| Prompt | A prompt that you want the AI model to respond to or use as context for processing. |
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 response from the external AI API after processing the video. It typically includes the processed data or analysis results related to the video and prompt provided.
Example structure (simplified):
{
"json": {
// Response data from the AI video processing endpoint
}
}
If an error occurs during the API call, the output JSON will contain an error field describing the issue.
The node does not output binary data for the video operation; it only returns JSON responses.
Dependencies
- Requires an API key credential for authenticating with the external AI service.
- The node makes HTTP POST requests to the AI service's
/process-videoendpoint. - The AI service domain and API key must be configured in the node credentials.
- Network connectivity to the AI service endpoint is required.
Troubleshooting
No credentials returned!
This error indicates missing or misconfigured API authentication credentials. Ensure the API key credential is properly set up in n8n.Timeouts or network errors
The node sets a 120-second timeout for the API request. If the video processing takes longer or the network is unstable, requests may fail. Check network connectivity and consider retrying.API errors returned in output
If the AI service returns an error, it will appear in the output JSON under theerrorfield. Review the error message for details, such as invalid video URL format or unsupported video content.Invalid or empty Video URL
Providing an incorrect or inaccessible video URL will cause the API call to fail. Verify the URL is correct and publicly accessible.
Links and References
- No direct links are available from the source code. Users should refer to their AI service provider’s documentation for details on the
/process-videoAPI endpoint and expected request/response formats.
