Extract one row per appointment

Watch short identifiers, spaces and punctuation. · 173 words

Give the model several appointment records and name the key for each row. This museum schedule contains appointment_id A101, date 2026-05-03, time 10:00, visitor Maya Lee; appointment_id A102, date 2026-05-03, time 10:30, visitor Maya Lee. The prompt says, Extract one row per appointment with appointment_id, date, time, and visitor. Do not merge rows that share a visitor. Return CSV. The expected result is A101,2026-05-03,10:00,Maya Lee and A102,2026-05-03,10:30,Maya Lee. Check two data rows and the two IDs. Maya has two appointments, so both remain.

Try a sports-clinic schedule with three bookings: B201 on 2026-06-10 at 16:00 for Leo Park; B202 on 2026-06-10 at 16:30 for Leo Park; and B203 on 2026-06-10 at 17:00 for Ana Ruiz. The prompt requests one row per booking with booking_id, date, time, and participant, rather than one row per person. The expected output has three rows, B201, B202, and B203, in source order, with each time copied correctly. Check the row count, the three unique IDs, and the repeated name. A repeated name does not make two appointments duplicates.

Check your recall

For the sports-clinic source with B201, B202, and B203, how many rows should the output contain?

Check your answer

Three rows, one for each booking ID. Even though Leo Park appears twice, the two appointments must remain separate.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Examples of Prompts.