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?.

This doesnt solve the problem i think. I want the message to be sent to the nlu file from actions.py

Hi @sheetal! Have you looked into custom components? I think that might solve your problem.