To create an ICS file with AI, give the assistant the meeting date, the city whose clock sets the start, and the duration. Then check the file against that city’s calendar. In our test, 2 of 2 files put a 4:30 p.m. London meeting at the correct instant. For the reviewer in Kuala Lumpur, one meeting began after midnight on Tuesday. The other began before midnight on Monday.
We tried three fictional meeting notes in separate Claude sessions on November 23, 2026. We parsed the resulting event files locally and checked the times against Python’s time zone database. This was a test of one-off events. Sending invitations and accepting RSVPs were outside the test.
What goes in the meeting note?
Write down the calendar date, the agreed start, the city that owns that start, the title and the duration. The people reviewing the event may live somewhere else. Here is the note we used for the first file.
Title: Spring handoff. March 22, 2027, 4:30 p.m. London time (Europe/London), for 45 minutes. One-off event. The reviewers are in Kuala Lumpur and New York.
For the second file we changed just the date to April 5, 2027. Keeping the same London time on both dates let us check whether the assistant used the correct offset for each date. If your meeting details already occupy five fields in a booking form, an ICS generator with a time-zone field can take those directly. A prompt is useful when someone has sent you the details in prose.
What prompt can I use to create an ICS file with AI?
Paste the instruction below with the confirmed meeting note underneath. We ran it once per note. It asks for a personal calendar preview and gives the assistant a way to stop when the meeting time is unresolved.
Copyable prompt
Turn the meeting note into one importable iCalendar event for personal preview. Keep the supplied title, date and duration. Interpret the start in the named city time zone on that exact date, then encode DTSTART and DTEND in UTC. Do not guess a missing time zone. If the start is ambiguous, ask one question and stop. For a complete note return only a single plain-text VCALENDAR with one VEVENT, a unique UID and a UTC DTSTAMP. Do not add attendees, organizer, conferencing, reminders or recurrence. Do not send anything.
If the time is still under discussion, keep the note as a draft. For the earlier step of turning an executive’s request into a clear question, see our executive assistant prompt guide.
What should the two files show in each city?
Start with the clock that sets the meeting. London should show 4:30 to 5:15 p.m. on both dates. Next, check the other cities including the date at each end. Here are the results we got by decoding each file and converting the instants independently.
Monday, March 22, 2027. The file starts at 20270322T163000Z and ends at 20270322T171500Z. In New York that is 12:30 to 1:15 p.m. Monday. In Kuala Lumpur the whole meeting falls on Tuesday, March 23, from 12:30 to 1:15 a.m.
Monday, April 5, 2027. The file starts at 20270405T153000Z and ends at 20270405T161500Z. In New York that is 11:30 a.m. to 12:15 p.m. Monday. In Kuala Lumpur it starts at 11:30 p.m. Monday, April 5, and ends at 12:15 a.m. Tuesday, April 6.
London’s offset in the time zone data changed from UTC+0 on the March date to UTC+1 on the April date. Copying the March UTC start into the April file would have moved the London meeting to 5:30 p.m. The trailing Z identifies UTC. Simply adding it to a local time labels the number without converting it. iCalendar’s date-time specification
What if nobody says whose 4:30 it is?
Ask, “Which city’s clock sets the 4:30 p.m. start?” In our third note we kept the date, duration and reviewer locations but removed London. Claude stopped and produced no calendar file. Its follow-up offered only Kuala Lumpur or New York. Neither was the city in the original agreement. An open question lets the organizer supply London or any other city.
How do I save and check the file?
1. Keep the calendar block. Both model replies included commentary and Markdown fences. Copy from BEGIN:VCALENDAR through END:VCALENDAR , inclusive, into a plain-text editor. Save as spring-handoff.ics in UTF-8. If your editor offers a line-ending menu, choose CRLF (sometimes labeled Windows ). Check the actual filename for a trailing .txt .
2. Check what the times describe. DTSTART and DTEND are the meeting boundaries. DTSTAMP is metadata. Both outputs put midnight UTC in that field, and the March reply called it a placeholder. We replaced it with the actual current UTC timestamp when writing the reviewed files.
3. Keep the file scoped to the event you intend. For these two separate meetings we assigned distinct identifiers. The April output also added METHOD:PUBLISH . We removed that field for the personal preview. Both cleaned files reopened in the local parser with the same title, start, end and 45-minute duration. On a computer with Python 3, the command below prints a new UID and a UTC timestamp for a new event file. Replace the two existing lines with the output. Keep that UID if you later revise the same event.
4. Preview it on a calendar you control. On a computer, Google Calendar offers Settings → Import & export . Select the file and the destination calendar, then import. Check the displayed date and time against the original note. Google says guest lists and conference details do not carry over on import. If colleagues need an RSVP request, add them to the reviewed event in your calendar and send the invitation there. Google Calendar’s import instructions
Generate the metadata for a new event file
python3 -c 'from datetime import datetime, timezone; from uuid import uuid4; print("UID:" + str(uuid4())); print(datetime.now(timezone.utc).strftime("DTSTAMP:%Y%m%dT%H%M%SZ"))'
