Add Tag → Post
AI-generatedOverview
This node adds a tag to users in a system, optionally setting an auto-removal time for the tag in days, hours, and minutes. It is useful for tagging users dynamically based on workflow data, such as marking users for specific campaigns or categorizing them for targeted actions.
Use Case Examples
- Add a 'VIP' tag to users retrieved from a previous node, with the tag automatically removed after 7 days.
- Tag users with 'TrialUser' and set the tag to expire after 2 hours and 30 minutes.
Properties
| Name | Meaning |
|---|---|
| Tag Name | The name of the tag to add to the users. |
| Days for Auto Removal | Number of days after which the tag will be automatically removed from the users. |
| Hours for Auto Removal | Number of hours after which the tag will be automatically removed from the users. |
| Minutes for Auto Removal | Number of minutes after which the tag will be automatically removed from the users. |
| Users | A string representing users to tag; if left blank, users from the previous node are used. |
Output
JSON
usersInfo- ``
*userId- The user ID to whom the tag was added.
*outputResult- The result of the tagging operation for each user.
- ``
Dependencies
- Requires environment variables CDP_URL for the API base URL and UNEXO_API_KEY for authorization.
Troubleshooting
- Common issues include missing or incorrect environment variables (CDP_URL or UNEXO_API_KEY), which will cause authorization or connection failures.
- Network errors or API endpoint issues may cause retries and eventual failure after 3 attempts.
- Ensure the input data contains 'anonymousIds' for users; otherwise, the node cannot construct the user list for tagging.