JoggAI icon

JoggAI

Interact with the JoggAI API to create and manage AI videos

Overview

The node integrates with the JoggAI API to manage files among other resources. Specifically, for the File Upload operation, it allows users to upload file data to the JoggAI platform. This is useful in scenarios where you need to programmatically add files (such as media or documents) to your AI video projects or other workflows managed by JoggAI.

Practical examples include:

  • Uploading a custom image or video file to be used in an AI-generated video.
  • Adding audio files for voice synthesis or background music.
  • Storing template assets or scripts as files within the JoggAI ecosystem.

Properties

Name Meaning
Filename The name of the file to be uploaded. Required for identifying the file.
File Data The actual content of the file to upload, typically as a string (e.g., base64 encoded). Required.

Output

The node outputs JSON data representing the result of the file upload operation. This typically includes metadata about the uploaded file such as its ID, URL, status, or any confirmation details returned by the JoggAI API.

If the node supports binary data output (not explicitly shown here), it would represent the uploaded file or related binary content, but based on the provided code and properties, the output is JSON structured data confirming the upload.

Dependencies

  • Requires an active connection to the JoggAI API via an API key credential configured in n8n.
  • The node depends on the JoggAI service being accessible and the API key having permissions to perform file uploads.
  • No additional external dependencies are indicated beyond the JoggAI API.

Troubleshooting

  • Common issues:

    • Missing or invalid filename or file data will cause the upload to fail.
    • Network connectivity problems or incorrect API credentials can lead to authentication errors.
    • File size limits imposed by the JoggAI API may cause upload failures if exceeded.
  • Error messages:

    • Errors from the JoggAI API will be logged with a prefix [joggAiNode] request failed: followed by the error message.
    • If continueOnFail is enabled, the node will return error details per item instead of stopping execution.
    • To resolve errors, verify that the filename and file data are correctly provided, check API credentials, and ensure compliance with any file size or format restrictions.

Links and References

Discussion