Skip to content

Conversation

@AyushKumar123456789
Copy link
Contributor

@AyushKumar123456789 AyushKumar123456789 commented Apr 11, 2025

Proposed Changes

This PR introduces new feature to the Rocket.Chat AI Chat Summarizer app by supporting multiple summary modes. Users now have the flexibility to add summary style keywords (such as "brief", "detailed", or "bullet") in their /chat-summary commands. Based on the keyword provided, the app selects an appropriate prompt to generate a tailored summary output. This feature is implemented with minimal code changes that integrate seamlessly into the existing executor logic of the slash command.

Key changes:

  • Modified command argument parsing to detect summary mode keywords.
  • Integrated calls to new prompt functions corresponding to the summary modes (brief, detailed, and bullet).
  • Retained existing functionality for filtering messages (e.g., filtering by “today”, “week”, “unread”, and help command handling) without altering the overall code structure.

Issue(s) Addressed

Closes #

Steps to Test or Reproduce

In any Rocket.Chat channel or thread, use the command with one of the new mode keywords:

  • /chat-summary brief
  • /chat-summary detailed
  • /chat-summary bullet

Further Comments

@JeffreytheCoder
Copy link
Contributor

Hi @AyushKumar123456789 , thanks for implementing this! This feature is a great addition to summary commands

Some comments:

  1. Could you provide a demo testing these commands on separate chats to show they generate a similar output format?
  2. You can improve the prompts using one-shot / few-shot prompts to improve the consistency in output format for each command
  3. Could you append these commands as sub-commands to existing commands (/unread, /today, /user, etc.) so we can show different output format for each existing command? Also you can add the subcommands as another option in UI model based on feat: Add UI for summarzing messages #36

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

Successfully merging this pull request may close these issues.

2 participants