"""Chat widget HTML interface for ChatCal.ai.""" from fastapi import APIRouter, Request from fastapi.responses import HTMLResponse router = APIRouter() @router.get("/chat-widget", response_class=HTMLResponse) async def chat_widget(request: Request): """Embeddable chat widget.""" base_url = f"{request.url.scheme}://{request.url.netloc}" return f""" ChatCal.ai - Calendar Assistant

🌟 ChatCal.ai

Your friendly AI calendar assistant

👋 Welcome! I'm ChatCal, Peter Michael Gits' scheduling assistant.
I can schedule business consultations, project meetings, and advisory sessions.
📝 To book: name, topic, day, time, length, type: GoogleMeet (requires your email), or call (requires your phone #)
(Otherwise I will ask for it and may get the email address wrong unless you spell it out military style.)
ChatCal.ai v0.3.0 | ⚡ Streaming + Interruption | 📧 Smart Email Verification
""" @router.get("/widget", response_class=HTMLResponse) async def embeddable_widget(): """Minimal embeddable widget for other websites.""" return """ """