Get Information of Product - Captain icon

Get Information of Product - Captain

Node to Get Product Information - Captain

Get Information of Product - Captain

AI-generated

Overview

This node retrieves product information for users by sending a batch request to an external API. It is designed to be used in workflows where user data with anonymous IDs is available from a previous node. The node collects the product ID input and user anonymous IDs, then sends a POST request to an API endpoint to fetch product-related information for each user-product pair. This is useful for scenarios where you need to enrich user data with product-specific details, such as in marketing automation or customer analytics.

Use Case Examples

  1. Enriching user data with product information for targeted marketing campaigns.
  2. Fetching product usage or purchase details for users in a customer analytics workflow.

Properties

Name Meaning
Product ID The ID of the product for which information is to be retrieved.
Users Optional input to specify users. If left blank, the node uses users from the previous node's output that contains anonymous IDs.

Output

JSON

  • * - The JSON response from the external API containing product information for the specified users.

Dependencies

  • Requires environment variables CDP_URL (base URL for the API) and UNEXO_API_KEY (API authentication token).

Troubleshooting

  • Error: 'Previous node does not provide valid user data. Please connect a node that outputs users with anonymousIds.' - This occurs if the input data does not contain user objects with 'anonymousIds'. Ensure the previous node outputs user data with this property.
  • HTTP request failures - The node retries the API request up to 3 times with a 2-second delay between attempts. Persistent failures may indicate network issues or invalid API credentials.
  • Ensure environment variables CDP_URL and UNEXO_API_KEY are correctly set to avoid authorization or connection errors.

Discussion