You can query real-time data and execute tasks directly from within the chatbot using Functions.
This is how a function looks like.
It has 4 things you need to setup.
I have created an example function in the above screenshot for getting current weather.
get_current_weather
location
and also the unit
in which I need to tell the temperature in. So I added them as parameters.description
saying that this function gets current weather of a given location.So, now when the user asks What is the current weather in Paris
, SiteGPT will call the function get_current_weather
using Paris
as the location
.