-: We are going to dive into another use case,
a travel assistant, and we are going
to test it inside OpenAI's playground.
Let's go.
So here we are at our assistants section,
we are going to hit on create again,
and we are going to name our new assistant travel assistant.
Then we are going to set these instructions
that I have prepared, "You are a travel assistant
that can write and execute code.
And you have access to a digital map to show information.
For each travel itinerary, you will generate a map in HTML
to show all the places to visit as points marked on a map."
So what we are going to do here, we are going
to use GPT-3.5 Turbo and we are going
to activate code interpreter, so for every travel itinerary,
the assistant will code an HTML page that will show us a map
of the places we are going to visit.
So let's test it.
There we go.
So here, we can continue editing our assistant.
And let's prompt it, "I want to visit the main cities
of Spain
and I have one month
to travel.
Can you build me an itinerary?"
Let's input the message and hit on run.
Right, let's list the main cities,
then I can create an itinerary.
Do you have any specific cities?
Let's say please surprise me.
There we go.
Here, we have the token count.
And it's running the code interpreter.
So let's see that here, the tokens have increased.
And we need the map.
So can you prepare
the map for me?
So here, it's recommending Madrid, Barcelona, Seville,
Valencia, great, great cities.
There we go.
It's preparing again with code interpreter,
and there we go, we have the
itinerary here, we can download it.
There we go.
And...
We can hit on download right here.
And let's see what we got, so there we have a beautiful map,
Bilbao, Madrid,
Malaga, Seville.
So all the cities that we asked to be on the itinerary
are here in the map so we can see it better.
So that's it for our travel assistant use case.
I hope you enjoyed these lessons and you build lots
and lots of really cool applications using OpenAI's API.