-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End session button disabled and need to know about DB changes for new features #1
Comments
By design, the If you want to adapt this to other business application, you need to fix the function calling. Refer to Line 9, is the start of the function definition used in function calling. You need to add your own functions (e.g. get_user_booking, etc.). Line 61, is the function calling system prompt. Edit it to reflect your function, etc. Between Line 114 and 158, is the "external API call" part. Change it and put your own code there that will consume the result of the function calling. Let say you have |
Thank you for the details: actually I am trying replicate how "order inquery" status working for order status , like wise planning to add one more for booking inquery. no need to add UI part , just want to insert few records in db and like check the status in chat and voice. |
Assuming that you are trying to add booking entry, yes you need to insert the output to your own MongoDB. Then you need to tell Chat API the result (if insert is successful or not). Refer to Line 249 of app/chat2/route.js. For example: If insert failed
If successful
This part is most important so that Chat api can decide what to do next. For example, if it failed and you said in the error message that "contact number" is missing, the AI will ask the user for the contact number. |
Hi, I checked out this latest code base & build in local its working. but End session button is always disabled: please sees the screen shot:
Can you please tell me what is the possible code change d i need to do to make it visible.?
Another question, suppose want to one more features like "Travel Booking Status" - what kind of changes do I need to do in database side ?
I tried but its always looking field like :
Category:
Name:
Product-Code:
Price:
Variations:
How to implement this for other business area (other than ecom)?
The text was updated successfully, but these errors were encountered: