As I said I am working on some project where I want to take user input and do some processing and then display the output,how should I proceed in rasa 2.0.Using Slot will be good here?Please let me known what should I do!
Hi Everyone I am working on one project where I have to take user input and some processing and display the output in rasa
@PankajJaisu Are you using some API for the processing, can you tell what you want to pre-processed?
You can create a Custom Action that processes the input with Python code and displays the output.
class ActionCheckRestaurants(Action): def name(self): return "action_check_restaurants" def run(self, dispatcher, tracker, domain): userInput = tracker['latest_message']['text'] # Get the whole text botOutput = input.upper() # Convert it to uppercase dispatcher.utter_message(botOutput) # Display the output return  # You need to return an empty list or a list of Events