Create function in assistans without parameters

I try to create a function without parameters

{
  "name": "function_without_parameters",
  "description": "Ask me if I am happy.",
  "strict": false,
  "parameters": {
    "type": "object",
    "properties": {},
    "required": []
  }
}

but if i remove parameters from UI in Assistants still change in this format How can i remove all parameters?

1 Like

Just delete strict and paramaters fields.

{
  "name": "function_without_parameters",
  "description": "Ask me if I am happy."
}
1 Like

You don’t need a function here at first.

Just put this in your system prompt.

“Ask user if they are happy”

Remove that once they confirm by use of a function.

Of course but is a test to implent a logic.

If I put the code ui off assitans push always a parameter

The function is unlikely to be called.

Why would it?

Ok. I try to explain with more details:

  • I have a chat bot wiht workflow that use this assistan
  • If it can’t give a response say no answer and move back to operator (i user a filter text)

Now we see that some user ask to get access to status of order so we can call our backend system to identify this path the idea is using some function (es. status of order, status of invoice). So I don’t need to use real OpenAI function but only idenfity that I need a function. I found a solution: call assitant if callback with function I collect the name and close the thread. I’m not sure that is a good approch