top of page

Prompt to App

Using Figma Make

Steps

Feature: An Ask AI chatbot

I recently tried Figma Make to make some prototypes, and I'd like to share my experience. Figma currently runs on Claude, and Gemini 3 launched while I was writing this.

#1 The Prompt 

Overview
Develop a chat button feature for the page. Users can click this button to open a chat window, ask questions about documentation, and interact with an AI assistant. Special states and behaviors are included for various user actions.
Functional Requirements
1. Chat Button Access

  • Requirement: The chat button must be present and accessible on the page.

  • Acceptance Criteria:

    • When a user opens the page, a chat button is visible and accessible in the UI.

2. Open Chat Window

  • Requirement: Clicking the chat button opens a chat window interface.

  • Acceptance Criteria:

    • The chat window overlays or slides into view.

    • The user sees an input area to type questions.

3. AI Is Thinking State

  • Requirement: While the AI is generating a response, show a visual indicator ("AI is thinking...").

  • Acceptance Criteria:

    • After sending a message, a "AI is thinking..." message or animation appears until the AI response is received.

4. Chat Expansion

  • Requirement: The chat window includes an “Expand” option to switch the chat to full-page view.

  • Acceptance Criteria:

    • Clicking the expand button maximizes the chat to fill the page.

    • All chat history and controls remain visible.

5. Chat Minimization

  • Requirement: Chat includes a “Minimize” option.

  • Acceptance Criteria:

    • Clicking minimize shrinks the chat window (e.g., back to a floating button).

    • When reopened, the full chat history is preserved.

6. Chat Closure

  • Requirement: The chat includes a "Close" option with data-clearing behavior and confirmation.

  • Acceptance Criteria:

    • Clicking "Close" prompts an alert box: “Closing will clear the chat history. Are you sure?”

    • If the user confirms, chat history is erased; the window closes.

    • If canceled, chat window remains open with chat preserved.

7. Scrollbar for Long Conversations

  • Requirement: The chat window should automatically provide a scrollbar when there are enough messages.

  • Acceptance Criteria:

    • A vertical scrollbar appears when needed, so the user can view the full conversation.

8. Stop Button During AI Response

  • Requirement: Add a “Stop” button to the chat UI that appears while the AI is generating a response, allowing users to cancel the current query.

  • Acceptance Criteria:

    • When a user submits a question and the "AI is thinking..." state is shown, a "Stop" button is displayed alongside or below the status indicator.

    • Clicking the "Stop" button cancels the AI's response.

    • The chat window indicates the operation was stopped, and the user can input a new question.

    • The “Stop” button is only visible while waiting for the AI.

Non-Functional Requirements

  • Accessibility: All buttons and controls must be keyboard navigable.

  • Responsiveness: Interface adapts to various screen sizes.

  • Consistency: Match page styling and company branding.

User Flow Summary

  1. User opens the page → sees chat button.

  2. Clicks chat button → chat window opens.

  3. User sends a question → "AI is thinking..." and "Stop" button are displayed.

  4. User can stop the AI response if desired.

  5. User can expand (full page), minimize (floating), or close (with warning and confirmation) the chat.

  6. On closure, if confirmed, chat history is cleared.

  7. If conversation grows, scrollbar is available for navigation.

© 2035 by ART SCHOOL. Powered and secured by Wix

bottom of page