Route-Level Prompt Switcher

Same plumbing, distinct behaviors dictated by route-specific system instructions

CLIENT LAYER (BROWSER) SERVER ROUTER (FLASK) EXTERNAL API /ask /summarize ASK FORM General Q&A Input EMAIL FORM Raw Email Body SUBMIT HANDLER FormData & fetch() RENDER RESPONSE Dynamic DOM Update ROUTE: /ASK Flask Endpoint A ROUTE: /SUMMARIZE Flask Endpoint B ASSISTANT PROMPT System Instruction A EDITOR PROMPT System Instruction B OPENAI API gpt-4o-mini engine JSON RESPONSE Structured Payload
Active Server Context /ask
System Instruction:
"You are a helpful, concise personal assistant. Answer the user's question directly and politely."
Client-Side Output Terminal JSON RENDER
Response Payload:
{ "status": "success", "data": "Route-level prompt switching isolates different agent behaviors behind discrete endpoints while routing to the exact same LLM plumbing." }