You can check the length of the tags array in the response object from the first HTTP Request to see if it’s 0. If it is 0, then you know there aren’t any tags on the campaign that was activated, and you can decide what to do from there like assign a default tag or send an email to notify the creator.
Use the “Compare Numbers” operator after your HTTP Request to get the tags and before you compare the strings. Configure it as follows.
I have tested this by creating a campaign, there is no tag added to this campaign. I’m using the below endpoint to see the list of tags for the campaign. But it throws error (attached below).
Looks like the API will return a 404 instead of an empty tags array if you are looking for an object that doesn’t have any tags. Workflows doesn’t yet have the ability to handle non 2xx response codes from the HTTP request, so you can’t catch the 404 and deal with in a comparison operator.
However, you can use the filters query param to search for a tagged object that matches the campaign ID, and if none exists it will return an empty array. Use this endpoint instead, replacing {campaignId} with your ID.