Complex reservation agent problem

:bullseye: What is your goal?

My goal is to get the next available time in the google calender calculated and put out by chatgpt completion module

:thinking: What is the problem & what have you tried?

I need a prompt that works since my prompt somehow always makes chatgpt give out a free time 2 days after, not the day after if the current day is booked out, or the day before if that day is still in the future.

:clipboard: Error messages or input/output bundles

There is no error output it just gives me the wrong date

1 Like

You will get more predictable behavior if you stop asking ChatGPT to figure out the calendar logic and let Make handle it instead.

Use Make to do the hard work of choosing the right time, then use ChatGPT only to explain that chosen time back to the user.

Right now you are giving the model a vague prompt plus a blob of events, so it just picks β€œa free time 2 days later” because, from its point of view, that is as valid as tomorrow or the day before.

I hope this makes it clear for you!