Branching logic in Advanced AI for Email — determining brand from email content first, then falling back to a custom org field
We have 4 brands set up in Zendesk, each representing a different application we offer. Some customers use multiple applications/brands, but all support requests come into a single general support email address connected to Zendesk.
We're trying to set up Advanced AI for Email to determine which brand a customer's email relates to, using this logic:
- First, check the customer's initial email message to see if they explicitly state which brand/application they're referring to. If so, treat that as the brand and follow the corresponding segmented condition.
- If the brand isn't stated in the email, fall back to a custom organization field called "Org Application Contracted for" and use that field's value to determine the brand.
I tried building this with segments in the dialogue workflow, but it seems Zendesk isn't pulling in the organization field value before it evaluates the segment condition — it just falls through to the fallback path in the use case dialogue workflow rather than matching on the correct brand.
I also tried adding an action to pull that organization field value when the email is received, but that hasn't worked reliably either — it's inconsistent and often still ends up defaulting to the fallback.
Has anyone set up similar branching logic (check email content first, then fall back to an org field) in a dialogue workflow for Advanced AI for Email? How did you get the field value to populate reliably before the segment/condition is evaluated? Any workarounds, ordering tricks, or best practices would be really helpful.
