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

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