in this video I'm going to teach you how to get more control over how your agents speak to their sub agents using our template for communication feature let me give you some information on the setup we have here we have an agent called the Outreach specialist it's sort of like a dummy agent let's imagine we're part of a sales organization we want to do Outreach to potential prospects we've targeted some companies and so we have this Outreach specialist that has two sub agents it has a company researcher and you can see here we've told it
use this to research the company we're outreaching to and we have a prospect researcher use this to research people from the company so company research will go out there find information about the company what it does where it's from when it was founded who works there and then we'll use the prospect researcher to find some information about maybe the founders or the CEO and then we can do some Outreach to them as a latest step and we can see that in the core instructions so here you see we give it a role you manage a
team of researchers you got information about sales prospects first use company researcher then for all Executives found from the company use Prospect researcher to research them so let's see how this works let's ask it to research a company adus AI we've just given it the name hopefully it figures out that first it needs to use the company researcher it's going to pass it some information research the company at a so the company researcher is using a research company tool and generating a report for us now there she is industry headquarters 250 employees 50 million annual
revenue key Executives Dr Emily Carter Mr James Thompson Miss Sarah Lee recent news conclusion really detailed report but oh looks like something went wrong right sorry I didn't receive enough information from Prospect researcher to complete my Outreach so let's see what happened with Prospect researcher ah now you can see here it's past the prospect researcher no information and of course the prospect researchers replied sorry I don't have the information I need for some reason our Outreach specialist hasn't figured out how to tell the prospect researcher what to do and that's because agents aren't like tools
tools have these inputs that you define with names and descriptions and so the agent can do a better job at infering what it should do with that tool what it should plug into that tool but this Prospect research agent doesn't have those defined inputs so we leave it up to the Outreach specialist to figure out how to use it and it's just not doing a good job and that's cuz the llm isn't able to really connect the dots the prospects it wants to research with this researcher agent is the executives in that giant research report
that the company researcher generated now our multi-agent system isn't working fortunately at relevance we've built a really useful tool that you can use as a lever in this situation and it's called template for communication so let me explain quickly how to think about the template for communication let's think about how you manage situations like this in your human systems so maybe you're a project manager and you're using something like linear or jira you might use a template there for tickets so that tickets are always set up in the right format so that the person who
takes the ticket on knows exactly the information that they need to get working we can create the same sort of templatized the company researcher worked fine if it seems like the arage specialist and the large language model powering it can figure out how to use that it's a prospect researcher that's having trouble so let's jump into here and create a template for communication so first we wanted to pass in the company name so it knows where the person works and you'll see that I've created this little curly bracket thing I'll explain that in a second
then we wanted to know the prospect's name and again I'll use some curly brackets and finally we probably wanted to know the email of the prospect so let's go Prospect email cool now you'll notice that while I've been typing those little curly brackets these boxes are popped up so these curly brackets like they are across the relevance platform variables and you can think of this like mail merge this is the template we're going to use but for every time that the parent agent uses this Prospect researcher it's going to fill in those little variables they're
kind of like inputs again so it'll fill in the company you'll fill in the prospect name and it'll fill in the prospect email and down in these boxes is where we can tell the agent a bit more about what it should put in those variables so for the company the company the prospect works up Prospect name the name of the executive to research and Prospect email the email of the executive to research so now when our Outreach specialist uses our Prospect researcher it's going to use this template and plug in the gaps where with the
find them awesome let's see it in action we'll save those changes let's jump into a new task and we'll research adus AI again so it kicks off and into the company researcher research the company adus a perfect that's all we need so we've got the same report as before we've got Dr Emily Mr James Miss Sarah Lee let's see if it did the business Prospect researcher perfect it's use that template company name adus Prospect name Dr Emily Carter emailed the prospect the prospect researcher has gone and done its thing it's used its research Prospect tool
and now we've gotten heaps of information about Dr Emily Carter amazing doing its job and not only that it's doing it now for every single one of those Executives like we wanted the two so now it's done in here Mr James Thompson in here it's done Sarah Lee and boom we've got more information on the key Executives and it's profiled them in detail so as you can see really simple to set up these templates and they help you gain way more control over how your multi-agent systems interact with each other how they mesh particularly that
relationship between parent and sub agent thanks so much for watching