One Conversation Multiple Agents and Routing

@Sam @adrianhumphrey111 @souvikg10 do anyone implement this ?

if you could share the solution please. [source code]

I have tried this.

def train_dialogue(domain_file = 'domain.yml',
					model_path = './models/dialogue',
					training_data_file = './data/stories.md'):
					
	agent = Agent(domain_file, policies = [MemoizationPolicy(), KerasPolicy(max_history=3, epochs=200, batch_size=50)])
	data = agent.load_data(training_data_file)	
	

	agent.train(data)
				
	agent.persist(model_path)
	return agent
	
def run_weather_bot(serve_forever=True):
	interpreter = RasaNLUInterpreter('./models/nlu/Auto/Auto')
	domain = TemplateDomain.load("models/dialogue/domain.yml")
	action_endpoint = EndpointConfig(url="http://localhost:5055/webhook")
        tracker_store = RedisTrackerStore(domain,host="localhost", port=6379, db= 13)

	agent = Agent.load('domain', interpreter=interpreter,tracker_store=tracker_store, action_endpoint=action_endpoint)
	rasa_core.run.serve_application(agent ,channel='cmdline')
		
	return agent
	
if __name__ == '__main__':
	run_weather_bot()

How do I add code like you just did? Ill give you an example

It will great if you share your example in comment. or share some github repo.

Let me know if this helps you.

1 Like

Appreciated, Thank you.

Hi Souvik,

We are using code just like yours to run our rasa.core - def run_weather_bot(serve_forever=True): interpreter = RasaNLUInterpreter(’./models/nlu/Auto/Auto’) domain = TemplateDomain.load(“models/dialogue/domain.yml”) action_endpoint = EndpointConfig(url=“http://localhost:5055/webhook”) tracker_store = RedisTrackerStore(domain,host=“localhost”, port=6379, db= 13)

agent = Agent.load('domain', interpreter=interpreter,tracker_store=tracker_store, action_endpoint=action_endpoint)
rasa_core.run.serve_application(agent ,channel='cmdline')
	
return agent

We are facing an issue, that whenever we fire a request from the web, we are getting empty in the chatoutput. Any ideas or help will be great.

Share more information as you have said.

@souvikg10

i am also trying to achieve the same multiple agent routing new rasa x project please help me out from this task if possible please share some examples of multiple agent routing

Hi azizullah2017

have you got the solution for multiple agent routing