Skip to content

ChatGPT API

Kaisheng Su edited this page Sep 25, 2024 · 7 revisions

Generate Plan

generatePlan input

A string, containing the string of data from google map api in the form of json, start time of the plan, (To be added if required).

Plan Pattern returned by GPT:

{
    plan: {
        day1: {
            activities: [
                {
                    'time': "08:00",
                    'duration': "120",
                    'destination': "X",
                    'destination describ': "X",
                    'destination duration': "60"
                }
            ]
        }
    },
    reply: "XXX"
};

"plan" can contain multiple days. Each day can have multiple activities. "time" is the start time to do the activity. "duration" is the time to get to the destination in minutes. "destination describ" is the description of the destination. "destination duration" is the time staying at the destination in minutes. "reply" is a brief explanation of the plan.

Ask about plan

askAboutPlan input

A string, containing the string of plan in the form of json and the question about the plan.

askAboutPlan output

One or two sentences of answer to the question about the plan.

Architecture

Clone this wiki locally