I'm creating an automation to optimise emails

I’m creating an automation to optimise emails but the email keeps going to the wrong category. The email sent is a miscellaneous email but it ends up routing to the “promotions category”.

Please share Java and message a model node’s screenshots.

[
{
“output”: [
{
“id”: “msg_0217d69d7f7dc51e00693ed49f92a481a3971959f9cfb5870e”,
“type”: “message”,
“status”: “completed”,
“content”: [
{
“type”: “output_text”,
“annotations”: ,
“logprobs”: ,
“text”: “{\n “category”: “Miscellaneous”,\n “labels”: [“Miscellaneous”]\n}”
}
],
“role”: “assistant”
}
],
“category”: “Miscellaneous”,
“labels”: [
“Miscellaneous”
]
}
]

You happen to have Always Output Data on for the switch, right? That might be why it falls for the first category when there’s no output.

Do you have that happen for all categories btw?
Since in your example it looks like none of your rules matched the current category, I’d check the spelling for each rule.

I’l try that