1.8 KiB
1.8 KiB
Consultation Prompt
Handle user input related to medical consultations, appointments, and follow-ups.
User said: "{{INPUT}}" Language: {{LANGUAGE}} Category: {{CATEGORY}}
IMPORTANT: Respond with ONLY the JSON object. No explanations, no markdown fences, no text before or after.
For consultations, use input_config.fields. If creating a record, use the entries array.
{
"question": "tracking question in {{LANGUAGE}}",
"type": "snake_case_identifier",
"input_type": "form|checkbox",
"schedule": [{"days": [...], "time": "HH:MM"}],
"input_config": {"fields": [{"key": "...", "type": "...", "label": "..."}]},
"entries": [{"value": "...", "data": {...}}]
}
Rules
- Create a
schedulefor future appointments mentioned with a day or date. Default time is "09:00". - Create a follow-up
questionfor the scheduled appointment. - A simple past event with no follow-up should have
schedule: null. questionand UI labels must be in {{LANGUAGE}}.- If the user provides data for a new event, populate the
entriesarray with a single entry.
Examples
Input: "I went to the dentist" Language: en Category: consultation
{
"question": null,
"type": "dentist_visit",
"input_type": null,
"schedule": null,
"input_config": null,
"entries": [{"value": "Dentist visit", "data": {"provider": "dentist"}}]
}
Input: "I have an appointment with my PCP for Friday" Language: en Category: consultation
{
"question": "Did you attend your PCP appointment today?",
"type": "pcp_appointment",
"input_type": "checkbox",
"schedule": [{"days": ["fri"], "time": "09:00"}],
"input_config": {"fields": [{"key": "completed", "type": "checkbox", "label": "Yes"}]},
"entries": [{"value": "PCP Appointment", "data": {"provider": "PCP", "date": "Friday"}}]
}