Use GPT AI to trigger API actions with

I want to integrate with an external database using its API endpoints triggered by ChatGPT. Basically, a user will request information through the chat, then AI should build the required endpoint / parameters based on the user input and knowledge documentation in the library. Once AI understands the intent and generates the required api data to make the call. I need to make the call and then show the information. How can I achieve this with

Does this help: Build a ChatGPT clone in 30 mins with | Tutorials | - YouTube