2026-03-08 00:19:23 +00:00
|
|
|
export interface UserMessage {
|
|
|
|
|
role: "user"
|
|
|
|
|
message: string
|
|
|
|
|
bubbleLayoutId?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface SystemMessage {
|
|
|
|
|
role: "system"
|
|
|
|
|
message: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type Message = UserMessage | SystemMessage
|
|
|
|
|
|
2026-03-08 02:06:29 +00:00
|
|
|
function timeOfDay() {
|
|
|
|
|
const now = new Date()
|
|
|
|
|
const hours = now.getHours()
|
|
|
|
|
if (hours >= 6 && hours <= 9) {
|
|
|
|
|
return "evening"
|
|
|
|
|
} else if (hours > 9 || hours <= 4) {
|
|
|
|
|
return "night"
|
|
|
|
|
}
|
|
|
|
|
return "day"
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-08 00:19:23 +00:00
|
|
|
export const INITLAL_MESSAGES: Message[] = [
|
|
|
|
|
{
|
|
|
|
|
role: "user",
|
|
|
|
|
message: "Who are you?",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
role: "system",
|
|
|
|
|
message: `Hey! I'm **Aelis** — your personal assistant that brings you the right thing, at the right time, in the right place.
|
|
|
|
|
|
2026-03-08 00:29:26 +00:00
|
|
|
- Jubilee line down? I've already found you an alternative route.
|
|
|
|
|
- Dinner reservation at 8? I'll have the restaurant, directions, and the menu ready before you head out.
|
2026-03-08 00:19:23 +00:00
|
|
|
|
2026-03-08 00:29:26 +00:00
|
|
|
I learn your routines, anticipate what's next, and surface what matters before you even think to look for it.
|
|
|
|
|
|
|
|
|
|
I'm not ready yet — [@kennethnym](https://x.com/kennethnym) is still building me. **Drop your email below** and I'll let you know when I'm available.`,
|
2026-03-08 00:19:23 +00:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export function waitListJoinedMessage(email: string): SystemMessage {
|
|
|
|
|
return {
|
|
|
|
|
role: "system",
|
|
|
|
|
message: `Thanks for joining the waitlist! I've sent you a confirmation email.
|
|
|
|
|
I'll send an email to **${email}** when I'm ready.
|
|
|
|
|
|
2026-03-08 02:06:29 +00:00
|
|
|
Have a good ${timeOfDay()}!`,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function duplicateEmailMessage(): SystemMessage {
|
|
|
|
|
return {
|
|
|
|
|
role: "system",
|
|
|
|
|
message: `I appreciate your excitement! You are already on the waitlist. When I am ready, I will reach out again. Have a good ${timeOfDay()} :)`,
|
2026-03-08 00:19:23 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-03-08 02:31:35 +00:00
|
|
|
|
|
|
|
|
export function troubleMessage(): SystemMessage {
|
|
|
|
|
return {
|
|
|
|
|
role: "system",
|
|
|
|
|
message: `I apologize, but I am having trouble adding you to the waitlist. Could you refresh the page and try again please in a moment?`,
|
|
|
|
|
}
|
|
|
|
|
}
|