How to set intent from a custom component

I was trying to change (or set) intent from a custom component written by me, with -

message.set(“intent”, { “name”: value, “confidence”: confidence }, add_to_output=True) Which is not actually setting it. Is there some kind of restrictions?

Okay, I solved the issue. It was regarding to the order in my pipeline. It was being overwritten after being set. Thank you.