Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Copilot UI Requirements and Flow #20

Open
Grinzypino opened this issue Jul 8, 2024 · 1 comment
Open

AI Copilot UI Requirements and Flow #20

Grinzypino opened this issue Jul 8, 2024 · 1 comment

Comments

@Grinzypino
Copy link
Contributor

AI Copilot UI Requirements and Flow

Admin Panel

  1. Input Field for Document Types

    • An input field where the admin can specify the types of documents they will provide for training.
    • + and - buttons to increase or decrease the number of fields.
  2. Upload File Button

    • A button to upload files to the backend.
  3. Train Button

    • A button to send a request to the backend for creating a JSON Schema for each kind of input file the admin has uploaded.

User Side - QnA Page

  1. Document Type Dropdown

    • A dropdown menu where the user can select the type of document they want to generate.
  2. Generate Button

    • A button for generating questions, which sends a POST request to the backend API with the selected document type as a string.
  3. Display dynamic JSON Object of Questions

    • The JSON object of questions received in response is displayed to the user.
  4. Answer Form

    • A form-like structure where the user fills in answers for each question displayed below them.
  5. Fill Button

    • A button to send the answers in a set JSON format to the backend along with the questions.
  6. Repeat Steps 7-9

    • Steps 7-9 are repeated until all relevant answers are obtained/filled. When this happens, the UI receives an empty JSON object.
  7. Generate Draft Button

    • A button that appears to send a request to create a draft of the document.
  8. Edit Generated Draft

    • The generated draft appears to the user with added functionality to edit it if desired.
@biratdatta
Copy link

Questions:-
image

-[ ] n no of input field can be made
-[ ] What to use in the editor for generating a draft? JSON or rich-text editor
-[ ] User FLOW, should the questions be pre-made or they need to be generated everytime there is a generate call
@Grinzypino you can add other questions if I missed any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants