i develop a bot that help the customer adding items to his basket.
i want to add function calling that will retrive the items from the db so the “bot” will know what items i have.
in my custom gpt i used actions for that
{
"openapi": "3.1.0",
"info": {
"title": "Get Contacts data",
"description": "Retrieves contact from API.",
"version": "v1.0.0"
},
"servers": [
{
"url": "urlForMyCustomAPI"
}
],
"paths": {
"/GetContacts.ashx": {
"get": {
"description": "Get all contacts from DB",
"operationId": "GetContacts",
"parameters": [],
"deprecated": false
}
},
"/AddContact.ashx": {
"get": {
"description": "Add Contact To DB",
"operationId": "AddContact",
"parameters": [
{
"name": "name",
"in": "query",
"description": "the name of the contact to add",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "mobile",
"in": "query",
"description": "the mobile/phone of the contact to add",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "email",
"in": "query",
"description": "the email of the contact to add",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "address",
"in": "query",
"description": "the adress of the contact to add",
"required": false,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/UpdateContact.ashx": {
"get": {
"description": "Update Contact In DB",
"operationId": "UpdateContact",
"parameters": [
{
"name": "id",
"in": "query",
"description": "the id of the contact to update",
"required": true,
"schema": {
"type": "integer"
}
},{
"name": "name",
"in": "query",
"description": "the name of the contact to update",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "mobile",
"in": "query",
"description": "the mobile/phone of the contact to update",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "email",
"in": "query",
"description": "the email of the contact to update",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "address",
"in": "query",
"description": "the adress of the contact to update",
"required": false,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/DeleteContact.ashx": {
"get": {
"description": "Delete Contact In DB",
"operationId": "DeleteContact",
"parameters": [
{
"name": "id",
"in": "query",
"description": "the id of the contact to delete",
"required": true,
"schema": {
"type": "integer"
}
}
],
"deprecated": false
}
}
},
"components": {
"schemas": {}
}
}