I would like to do the slack integration by executing a custom python script instead of running “rasa run” command. Could anyone please confirm the best way for doing this?
I was using the following code to execute the rasa_core 0.14 version. But now I can’t use it for new rasa version. It would be greatly appreciable, if someone could help me to change the below code to execute the new rasa version.
from rasa_core.channels.slack import SlackInput from rasa_core.agent import Agent from rasa_core.interpreter import RasaNLUInterpreter from rasa_core.utils import EndpointConfig nlu_interpreter = RasaNLUInterpreter(NLU_MODEL_PATH) action_endpoint = EndpointConfig(url=ACTION_ENDPOINT_URL) agent = Agent.load( CORE_MODEL_PATH, interpreter = nlu_interpreter, action_endpoint = action_endpoint, ) input_channel = SlackInput(SLACK_ACCESS_TOKEN) agent.handle_channels([input_channel], RASA_CORE_PORT, serve_forever=True)