Okay.
So I'm going to go over to my workflow here.
And I am going to go to the webhook and I'm going to take the test URL.
I'm going to copy this.
I'm now going to go over here, I'm going to paste in there that is the webhook URL.
And now I'm going to start recording.
Well hi there.
Oh I have to say it loud while I use this site.
Hang on.
Well hi there.
What is two plus two.
Let's try this.
Well hi there.
What is two plus two?
That seems to record quite nicely.
And now I'm going to say send to N810.
But first of course go back to N810 and go back to the beginning and say execute workflow.
So it starts listening waiting for you to call the test.
Go over here, send to N810 back over here.
And we've got a problem right away.
And it is a problem we're expecting.
Cannot read properties of undefined.
Let's double click and see what happens.
So in came something called audio and the file that was looking for was called data.
That's not right.
So we have to change this to say audio.
And now it knows that it's looking for a file that's called audio.
Okay.
Let's save it.
Back we go.
We go back in.
Oh we have to press execute workflow back here.
And now we can just press center N810 again.
Back.
Here we go.
And now we've got a problem in node AI agent.
It's going to be the same thing.
All right so I double click here.
Let's have a look.
You see source it thinks connected chat trigger node.
That's no good.
We have to click here and say define below.
Because as before we are going to give it some details of where to look.
We're not going to tell it something fixed.
We want it to evaluate an expression.
And we're going to get the expression from over here.
We want to take the text.
Well hi there.
What is two plus two?
That's what we want.
Isn't it cool.
That is the transcribed text that came from 11 labs.
Uh, so uh, it works.
So we're going to take that and drop that in there.
Or you could think in your mind, what do you think the expression is going to be?
See, if you were right, it is simply JSON text as an expression.
You can see the result that is now going to work.
Okay.
Escape back.
We go to the canvas and now we're going to try it one more time okay.
So we are going to press Execute workflow.
We're going to go back here.
We're going to press send to end and come back here off.
It's going off.
It goes off it goes.
Two plus two is four.
Ha.
There we go.
Worked first time.
Uh and because that happened so fast I'm going to do it one more time.
I wasn't expecting so fast.
Uh, let's try this again.
Let's, uh, press execute workflow.
I'm going to go here.
I'm going to go send to na n.
Hello.
Two plus two is way four.
How can I help you today?
Fabulous.
So there you have it.
We have a working audio app.
It was a little bit of work, but it was great for you to see this as I promised.
You see that Ann is in control.
You've got the full workflow here.
You've got a webhook, which is where the audio is posted in from our web page that gets transcribed
with an API call and a text that goes through our AI agent.
We're using Gemini.
This time, Gemini converts the text back to speech again, and this node ensures that what gets replied
to in this web request is in fact the audio file version of this, and that's why it replies with the
audio.
Congratulations, you've just made your first audio voice agent.
I call it an audio voice agent.
There are other kinds of voice agents.
It is.
It is a voice agent.
Uh, and now, you know, the mission for you is to experiment with this.
Obviously, I didn't put in a memory because we don't have, like, a chat history ID, so you'd have
to futz around with that a bit.
But do that, give it some memory, maybe even give it a tool or two.
You're a pro with tools and then have a good old conversation Via this web page.
And so the idea is that this web page that we've set up, this kind of fake web page could be anything.
You could you could embed this in your WordPress site.
You could turn this into something fancier.
ChatGPT would have an easier time making this look prettier.
And you can have it be something that will allow you to speak to your end flow.
And you should.
This is great experience.
It's of course not the way I recommend we do it, which is what we're going to do next.
But it's still a good way to see APIs in action.
And if you had a bigger flow with lots of other things going on, but at some point you wanted to call
out and have the audio side of it.
This is exactly how you would do it as part of a bigger workflow.
Okay, so that wraps up technique approach number one.
And approach number two.
As I said, it's more complicated in some ways.
It's also going to be more simple, quicker for us to do perhaps because we've we've already got some
experience with it.
But let's, let's put put this one to bed and dive in to approach number two when 11 labs calls the
shots.