Check User Conditions - Captain
AI-generatedOverview
This node checks user conditions by sending a batch of user IDs along with specified condition rules to an external API endpoint. It is useful for scenarios where you need to filter or categorize users based on custom conditions, such as segmenting users for targeted marketing or access control.
Use Case Examples
- Filtering users who meet specific criteria defined in the conditions JSON.
- Segmenting users based on attributes or behaviors for personalized workflows.
Properties
| Name | Meaning |
|---|---|
| Users | A string input representing user identifiers. If left blank, the node uses users from the previous node's output. |
| Check Conditions Rule | A JSON object defining the conditions to check against the users. This can be entered manually or generated with AI assistance. |
Output
JSON
json- Each output item contains the user data along with the result of the condition check.
Dependencies
- Requires an API key credential for authorization, provided via environment variable UNEXO_API_KEY.
- Requires the base URL of the external API, provided via environment variable CDP_URL.
Troubleshooting
- Common issues include failed HTTP requests due to network problems or invalid API keys. The node retries the request up to three times with delays between attempts.
- If the API key or base URL environment variables are not set correctly, the node will fail to authenticate or reach the API.
- Error messages related to HTTP request failures indicate connectivity or authorization issues; verify environment variables and network access.