> Site index for LLMs: https://www.nandan.fyi/llms.txt

# Friday

> An AI that manages your calendar - add events in plain English, ask complicated scheduling questions, and let it figure out the details.

- Published: 2024-07-07
- Source: https://github.com/nandan-varma/friday
- Live: https://friday.nandanvarma.com
- Canonical: https://www.nandan.fyi/projects/calendar

Calendar apps make you do all the work. You still have to figure out when you're free, type the right fields, and remember to add things. I wanted something where I could just say "block two hours Thursday afternoon for deep work" and have it done - so I built Friday.

## Features

- Add events in plain English - the AI parses intent, resolves times, and creates the event
- Two-way Google Calendar sync - your existing events show up, new ones created by Friday sync back
- Handles complicated queries like "find me a free slot next week that doesn't conflict with my meetings"
- Voice input to chat with the AI hands-free
- Dashboard with calendar analytics
- Passkey authentication (no passwords)

## Key decisions

- **Tool use over prompt engineering for calendar mutations** — the model choosing which function to call with structured arguments is more reliable than parsing free-form date/time strings out of a text completion; structured tool calls also give clear audit trails for what the agent did
- **Silent token refresh before every Calendar API call** — Google access tokens expire after an hour; the agent path fails silently without refresh, and the user never sees a useful error; refresh has to be handled before the tool is invoked, not after it fails
- **Passkeys over passwords for an app with calendar write access** — eliminating passwords removes the account recovery and credential stuffing surface; a passkey-only app can't be compromised through phishing for a service that can send calendar events on your behalf
- **Explicit fallback on ambiguous input** — when the model can't resolve a time reference it asks rather than guesses; the cost of a wrong calendar event is higher than one extra clarifying question

## Future directions

- Edit and delete events through the AI
- Text-to-speech responses
- Better multi-calendar support

## Built with

- [Next.js](https://nextjs.org)
- [shadcn/ui](https://ui.shadcn.com/)
- [OpenAI SDK](https://platform.openai.com/) - AI scheduling agent
- [Google Calendar API](https://developers.google.com/calendar)
- [Better Auth](https://www.better-auth.com/) - Passkey authentication
- [Drizzle ORM](https://orm.drizzle.team/) + [Neon](https://neon.tech/) - PostgreSQL
- [Recharts](https://recharts.org/) - analytics dashboard
- Deployed on [Vercel](https://vercel.com)
