JoggAI Webhook Trigger icon

JoggAI Webhook Trigger

Interact with the JoggAI API to create and manage AI videos

Overview

This node acts as a webhook trigger for the JoggAI API, enabling workflows to respond automatically to specific events related to AI video generation and avatar creation. It listens for webhook callbacks from JoggAI when certain events occur, such as successful or failed video generation or avatar creation.

Common scenarios where this node is beneficial include:

  • Automatically processing or notifying users when an AI-generated video has been successfully created.
  • Handling errors or retries when video generation or avatar creation fails.
  • Triggering downstream automation steps based on the status of AI content creation.

For example, after a video is generated successfully, this node can trigger a workflow that uploads the video to a storage service or sends a notification email.

Properties

Name Meaning
Trigger On The event that triggers the webhook. Options:
- Generated Video Success
- Generated Video Failed
- Create Avatar Success
- Create Avatar Failed

Output

The node outputs JSON data containing the webhook payload received from JoggAI. The output structure includes:

  • body: The main webhook payload with event details.
  • headers: HTTP headers sent with the webhook request.
  • query: Query parameters included in the webhook URL.

The output is wrapped in an array suitable for n8n workflows, allowing subsequent nodes to process the event data.

This node does not output binary data.

Dependencies

  • Requires an API key credential to authenticate requests to the JoggAI API.
  • Needs a publicly accessible webhook URL (cannot run on localhost without tunneling).
  • The node interacts with the JoggAI API endpoints to register, check, and delete webhooks.

Troubleshooting

  • Webhook on localhost error: The node throws an error if the webhook URL contains "localhost". To fix this, deploy n8n on a public domain or use a tunneling service.
  • API errors: If the JoggAI API returns an error code, the node will throw an error with the message from the API. Check your API credentials and ensure the domain is correct.
  • Webhook registration failure: Network issues or invalid credentials can cause webhook creation to fail. Verify connectivity and authentication.
  • Webhook deletion failure: If deleting the webhook fails, the node logs an error but continues. Manual cleanup might be necessary in the JoggAI dashboard.

Links and References

Discussion