API calls to Custom GPT
# 🤝help
l
Hey there everyone! I recently had a call with a possible client who wants me to build his chatbot. For him it is very important that his chatbot is able to get data from their custom GPT created with OpenAI. Here is what they ate looking for exactly: „1. API Access: We will provide comprehensive API access to the OpenAI Chatbot, enabling robust and intelligent conversational capabilities powered by GPT technology“ Is that possible with botpress and custom code? I don’t know that much about coding and api calls but it would be great if someone could give me a solid explanation. I‘ve already watched the YT video on api calls where calls are made for timezones. Yet i don’t really understand how to make api calls to a custom gpt. What information do i need to get from the client to make these API calls? Thanks a lot in advance 🙂
f
Hey there, That sounds like an interesting project! The Execute Code card already has Axios required, so you can use that. Heres the docs about Axios POST requests, which is what you will most likely use https://axios-http.com/docs/post_example You need the URL or endpoint where the API is hosted and accessible. This is the address where you will send your API requests. Most APIs also require some form of authentication, such as an API key, access token, or credentials (username and password). You should also ask for this, if its needed. If the client has it then some documentation on the APIs structure, available endpoints, request/response formats, and any specific requirements or limitations. This will just help guide you on how to structure your API requests and handle the responses.
l
Thank you for the explanation@fresh-fireman-491 ! I will take a look at this and try to figure everything out. If something doesn’t work i‘ll come back to this thread
f
Sounds good!