I’m trying to figure out a solution for creating such scenario where chatGPT asks for one parameter after another (smth like: ask for login → if provided from user login exists → ask for password):
- User asks for his bill information
- Chatgpt runs function calling → asks for eg. his e-mail /login/ iD
- User provides login that is let’s say checked by function calling in DB
- If previous step was returned with success (user exists in DB) then chatgpt confirm that provided login is correct and should ask for next data that is needed to authorize - his secretID/password (whatever) to get access to his account
Does anyone have idea how to implement such flow / scenario?
How to make chatgpt ask for next data from user imidiately after executing function call, without next user input/asking for something?
EDIT with more informations about the goal:
My goal is to create conversational bot with whom you can talk about lot of topis, but that can also run function-calling to serve you some informations from DB after some of user questions for example: “check my bill status”, but I want to be able to make two step verification(login → if login exists → ask for password/secretID). So not only to ask for one data/parameter(as in ‘whats the weather’ examples - where only location is crucial).
So after that kind of user input:
a) LLM will use function-calling and ask for required data - so lets say in first step we need his login
b) in mentioned earlier function I will have implemented some validation to check if provided login exists (may be DB query, whatever)
c) if provided by the user login exists LLM will thank for the provided data and ask for second data that is needed
d) user will provide second parameter
e) LLM will run second function
I lack ideas how to make points c,d,e happen
PS: It’s also not a solution for me to ask for both parameters at the start of the first called function, because there are no places where user provides both: login and password in one input/line
Thanks in advance for your support.