-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Enhancement Functionality for Chat App: Conversation and Document Sharing
Prerequisites
- Notification System: Develop an in-app notification system to alert users of shared content and actions.
- Email Integration: Implement email functionality to notify users when conversations are shared.
- AI Summary Generation: Integrate AI capabilities to generate summaries of conversations.
- Document Sharing Attributes: Update the document indexing system to include a shared_with_id attribute for tracking shared documents.
Sender's Workflow
- Initiate Sharing
- Select the conversation to share.
- Enter the email addresses of the recipients.
- Optional Document Sharing
- If the conversation includes files with citations, a prompt appears:
- "Do you want to share the original documents for citations with the recipients?"
- If Yes:
- Add the recipients' user IDs to the
shared_with_idattribute in the document index. - The documents will be accessible to the recipients.
- Add the recipients' user IDs to the
- If No:
- Recipients will not have access to the original documents.
- If the conversation includes files with citations, a prompt appears:
- Share Conversation
- The conversation is shared, triggering the following actions:
- Email Notification: An email is sent to each recipient informing them of the shared conversation.
- In-App Notification: A notification appears in the sender's chat, listing the email addresses of the recipients.
- AI-Generated Summary: An AI-generated summary of the conversation is prepared for the recipients.
- The conversation is shared, triggering the following actions:
- Manage Shared Documents
- In the "My Documents" section, the sender can:
- View a list of documents shared with others.
- Click a button to see a popup with a list of recipient emails.
- Add or Remove Access:
- Add more users to share the document with.
- Remove access from existing recipients.
- In the "My Documents" section, the sender can:
Receiver's Workflow
- Receive Notifications
- Email Notification: An email informs the recipient that [Sender's Email] shared a conversation.
- In-App Notification: Upon logging in, a notification shows:
- The sender's email.
- An AI-generated summary of the conversation.
- Accept or Decline Conversation
- Sender is informed on the status of the request for each receipient.
- Accept:
- The conversation is added to their history.
- Timestamp is updated to the time of receipt.
- A message indicates that [Sender's Email] shared the conversation.
- Includes the AI-generated summary.
- Decline:
- The conversation is not added to their history.
- Access to Shared Documents
- If Documents Were Shared:
- Documents appear in the recipient's "My Documents."
- Recipients can remove their own access if desired.
- If Documents Were Not Shared:
- A message indicates that original documents for citations are not accessible.
- If Documents Were Shared:
- Manage Shared Content
- Recipients can manage shared conversations and documents independently.
- Deleting or modifying their copies does not affect the sender or other recipients.
Additional Details
- Shared Conversations
- Are copied to the recipient's account.
- The sender cannot revoke access after sharing.
- Deleting the original conversation does not affect recipients' copies.
- Shared Documents
- Access can be removed by either the owner (sender) or the recipient.
- If the owner deletes a document:
- It is removed from all recipients' "My Documents."
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Scheduled