Actions22
- Video Actions
- Avatar Actions
- Voice Actions
- Template Actions
- Product Actions
- AI Script Actions
- File Actions
- Visual Style Actions
- Webhook Actions
Overview
The node integrates with the JoggAI API to update product information within an AI-driven content management system. Specifically, the "Update product" operation allows users to modify existing product details such as name, description, target audience, and associated media assets.
This node is beneficial in scenarios where product data needs to be programmatically updated based on dynamic inputs or workflows, for example:
- Automatically updating product descriptions or names after receiving new marketing insights.
- Refreshing media assets linked to a product when new images or videos become available.
- Tailoring product target audiences dynamically based on user segmentation or campaign changes.
Practical example: A marketing automation workflow that updates product descriptions and replaces product images whenever a new campaign launches, ensuring all product data stays current without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product to update. This ID is typically obtained from a previous "Create Product" step. |
| Update Fields | Collection of fields to update on the product. Any specified fields will overwrite existing data. Options include: - Product Name: New name for the product. - Description: Updated introduction and selling points. - Target Audience: New target audience description (e.g., "Tech-savvy millennials"). - Media: A list of media assets replacing all existing media. Each media item includes: • Type (Image or Video) • Name (filename) • URL (publicly accessible link) • Description (brief text about the media) |
Output
The node outputs JSON data representing the updated product object as returned by the JoggAI API. This typically includes the product's current state after the update, reflecting all changed fields.
If media assets are included, the output will contain updated media information corresponding to the newly set list.
No binary data output is indicated for this operation.
Dependencies
- Requires an active connection to the JoggAI API via an API key credential configured in n8n.
- Network access to the JoggAI service endpoint.
- Proper permissions on the API key to perform product update operations.
Troubleshooting
Common issues:
- Invalid or missing Product ID: The node requires a valid product identifier; ensure it is correctly passed from prior steps.
- Insufficient permissions: The API key must have rights to update products.
- Incorrect media URLs: Media asset URLs must be publicly accessible; otherwise, the update may fail or media won't display properly.
- Empty update fields: If no fields are specified in "Update Fields," the operation might do nothing or return an error.
Error messages:
"request failed: <message>": Indicates an API call failure. Check network connectivity, API key validity, and input parameters.- Validation errors related to required fields (e.g., missing product_id) will cause the node to throw an error before making the API call.
Resolution tips:
- Verify the product ID exists and is correct.
- Confirm the API key has necessary scopes.
- Ensure media URLs are accessible and correctly formatted.
- Use the "Continue On Fail" option in n8n to handle errors gracefully during batch processing.
Links and References
- JoggAI API Documentation (generic placeholder, replace with actual URL)
- n8n Documentation on Creating Custom Nodes
- Best practices for managing media assets in APIs (varies by platform)