ChatGPT can not call your custom APIs. A workaround is to give it in advance (into the initial session prompt) your custom API's responses (e.g. a query to your system) as a list of facts, letting it to handle user queries. What do you think? See the running example: