Actions22
- Video Actions
- Avatar Actions
- Voice Actions
- Template Actions
- Product Actions
- AI Script Actions
- File Actions
- Visual Style Actions
- Webhook Actions
Overview
This node integrates with the JoggAI API to interact with various AI-powered video creation and management features. Specifically, for the Template resource with the Get Library Templates operation, it retrieves a list of available video templates from the JoggAI library. Users can filter these templates by aspect ratio, enabling them to select templates that best fit their desired video format.
Practical scenarios include:
- Automatically fetching a curated list of video templates to present options in a video creation workflow.
- Filtering templates by aspect ratio to ensure videos match platform requirements (e.g., portrait for stories, landscape for YouTube).
- Integrating template selection into automated video generation pipelines.
Properties
| Name | Meaning |
|---|---|
| Aspect Ratio | Optional filter to retrieve templates by aspect ratio. Options: |
| - All (no filtering) | |
| - Portrait (9:16) | |
| - Landscape (16:9) | |
| - Square (1:1) |
Output
The node outputs an array of JSON objects representing the templates retrieved from the JoggAI library. Each object typically contains metadata about a template such as its ID, name, description, and aspect ratio. This structured data can be used downstream to select or display templates.
If the node supports binary data output (not explicitly shown here), it would likely represent media assets related to templates, but this is not indicated in the provided code or properties.
Dependencies
- Requires an active connection to the JoggAI API using an API key credential configured in n8n.
- The node depends on the JoggAI service being accessible and the API key having permissions to fetch template data.
Troubleshooting
- Common issues:
- Network connectivity problems preventing access to the JoggAI API.
- Invalid or missing API authentication token causing authorization failures.
- Using an unsupported aspect ratio value may result in empty or error responses.
- Error messages:
- Errors from the API are caught and logged with a prefix
[joggAiNode] request failed:. - If "Continue On Fail" is enabled, errors will be returned as part of the output JSON with an
errorfield. - To resolve errors, verify API credentials, network access, and input parameters.
- Errors from the API are caught and logged with a prefix
Links and References
- JoggAI Documentation (as referenced in the node's documentation URL constant)
- n8n official docs on creating custom nodes