- [Instructor] All right, so time to add our quote tool
to our agent.
Let's click the + icon here.
Select Call n8n Workflow Tool.
Let's give it a name like Quote Generator Tool,
and an expressive description.
In this case, this could be,
"Call this tool to create a quotation document
and return a link to a quote file
once all required information is gathered."
We select our Quote Tool from here,
n8n will automatically pull the required fields here
from the workflow.
All we have to do now
is to allow our AI agent to pre-fill them.
Few more to go.
And there we are.
So our AI agent can now fill all of these fields based
on the information gathered
through the interaction with the customer.
Now, let's see if this agent can generate a quote for us.
Let's open the console here,
and let's start a simple conversation.
So you can see it wants to guide me
through the sales process,
but now, I'll go ahead and ask it to quote me
for 200 square feet corner booth.
You can see it does not use the quote tool immediately,
because there's some critical information missing,
for example, which company I represent.
So let's say ABC Inc.
And also, tell it that I'm looking for new business.
The reason it asks me for that
is because the instructions say
that it should collect information
about the client and the lead,
so sales can later on follow up with that prospect.
So that is correct.
And you can see it's now using the Calculator Tool
to actually calculate the price for this,
and now, using the Quote Generator Tool
to quote me for this particular option.
So we have now a quote for this company
for 200 square feet corner booth.
And let's see what it actually filled in here.
So if you click this Quote Generator Tool,
you can see the query that has been submitted.
This is the client name,
in this case, it did not fill in the client name
and the client email.
If we wanted the agent to also fill in those fields
and also mark them as required, what we would need to do
is to go to this agent tool definition,
and we would specify
what information exactly is required here
to pre-fill the quote.
So for now, we just wanna double check
if our quote generation process actually worked.
So let's go to our repository,
and see if there was a quote being generated.
So go to the quote folder, see new.
And there you should see a new quote coming up here.
If you open this one,
let's download it and open it here.
There you see, this is the quote for ABC Inc,
200 square feet corner booth,
and that would be the total price for that.
So our quote generation process is working.
Again, if we want to have the agent fill these mandatorily,
then we would need to specify this here in the description.
So we could say all required information,
and then just list all the information
that we have here on the left side,
like type, size, price per square feet, et cetera,
explicitly in this description,
so that would instruct the agent
to go for all these information.
But for now, that's fine.
And I would say, let's go ahead
and actually give our agent now the next tool
to send out emails,
because that's ultimately what we wanna do
to have this quote being sent out to the client
or being sent to our sales team,
depending on the size of the booth request
or the type of company that is inquiring for that.