Send text to nlu file after some processing on it in actions.py

For my requirement, I am saving a user message in a variable in actions.py. After that I am performing some processing on it and I have a new value for message from user now.

I now want this new message to be mapped to intent file and get the utter message accordingly.

How do i do that?

Do you need to do “nlu -> processing -> nlu” or just “processing -> nlu”?

nlu->processing->nlu

Check the solution in this thread: Can we perform NLU tasks (entity extration) in custom actions?.