New Chat from Template
New Chat from Template
Overview
Flow ID: new-chat-template
Category: Chat Interactions
Estimated Duration: < 10 seconds
User Role: All Users
Complexity: Simple
Purpose: Start a new chat pre-filled with a specific instruction or structure (e.g., “Blog Post” template that asks for Title, Audience, Tone).
Trigger
What initiates this flow:
- User manually initiates
Specific trigger: Clicking New from Template or selecting a card from the “Empty Chat” dashboard.
Step-by-Step Flow
Main Path (Happy Path)
Step 1: Select Template
- User Action: On the “New Chat” screen, click a template card (e.g., “Explain Code”).
- System Response:
- Chat opens.
- Input box pre-filled with: “Please explain the following code:\n\n[Paste Code Here]”
- Cursor positioned at “[Paste Code Here]”.
Step 2: Fill & Send
- User Action: Paste code and press Enter.
- System Response: AI executes the pre-defined strategy.
Related Flows
Design Considerations
- Library: Consider a “Template Library” for community prompts.
- Edit: User should be able to edit the prompt before sending.
Technical References
src/constants/templates.js