Check If Sent - Captain
AI-generatedOverview
This node checks if the input data items have been marked as 'sent' by verifying the presence of a 'contentId' within the 'outputResult' property of each item's JSON data. It separates the input items into two outputs: those that have been sent (true output) and those that have not (false output). This is useful in workflows where you need to branch logic based on whether content has already been processed or sent, such as filtering messages or content before sending duplicates.
Use Case Examples
- In a marketing automation workflow, use this node to filter out contacts who have already received a campaign email by checking if their contentId exists.
- In a content publishing pipeline, separate articles that have been published (sent) from those still in draft or pending state.
Output
JSON
true- Array of input items where outputResult.contentId exists, indicating content has been sent.false- Array of input items where outputResult.contentId does not exist, indicating content has not been sent.
Troubleshooting
- Ensure that the input data items contain the 'outputResult' property with a valid 'contentId' to avoid all items being classified as 'false'.
- If all items appear in the 'false' output, verify the data structure of the input to confirm it matches the expected format.