Route messages with filters

How to route messages with a Filter or an If Else step, on the email itself or on what a model decided.

Opening frame of the video

Watch the video

Transcript

Conditions decide where a message goes. In this video, we route customer emails on what a model decides, with a Filter or an If Else step.

This flow sorts customer emails. First, a classification model reads each email, and decides what the customer asks for.

Then a condition decides where it goes. A Filter lets matching messages continue, and stops the flow for the rest. An If Else splits it in two: a true path, and a false path.

Open the step, and choose what to test. Besides the email itself, you can test the result of any step above it, such as the label the model chose.

The operator sets how to compare: equals, contains, is in a list, exists, and more, depending on the value.

Then pick the value. Here, every email the model labels as an invoice takes the true path.

Add more conditions when you need them. Choose AND when all of them must be true, or OR when one is enough.

Invoices now move to the Finance folder. Everything else gets the label To review, so nothing is missed.

That is how to route messages with conditions. In the next video, we add a human check before the flow acts.

Read more

0 comments

Please sign in to leave a comment.