Have multiple clients. How I can handle this?

Hi,

I followed the tutorial weatherbot, and adapt then to my context. It’s work very well, but I don’t want connect this with any other channel, only local run using cmdline. Is there a way to run this and handler many clients at the same time? As start point, I think that I can run this py file multiple times and each new tab can treated a new client, but if Rasa have a more efficient way I want know. My problem is about a large scale system.

def run_energy_bot(serve_forever=True):
	interpreter = RasaNLUInterpreter('./models/nlu/default/chatbot')
	action_endpoint = EndpointConfig(url="http://localhost:5055/webhook")
	agent = Agent.load('./models/dialogue', interpreter=interpreter, action_endpoint=action_endpoint)
	rasa_core.run.serve_application(agent ,channel='cmdline')
		
	return agent
	
if __name__ == '__main__':
	run_energy_bot()

Hi @hdonancio

Yes you can achieve this- What I am getting this is you want to create multiple cmdline session using Rasa and currently you are using python command in order to trigger it. If you are want to create a cmdline based interactive bot for multiple user I am assuming the agent (bot) going to remain the same for all the users then you can create http webhook on Rasa and can create a simple python script / application to interact with your bot from any server (Even locally). Please let me know is it helpful.

Thanks

@sanjeethanspal. The bot is the same for all clients, and I’d like a solution based on cmdline. I don’t want any interface because my purpose is send a lot of messages to this bot, only to check the scalability of my system (no human interaction in this step). Rasa have any method or package to handle this?

Thanks