Support using decision models like jev to do categorisation

Open
#698 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
ai, backend

Research direction

Start by reading the existing email categorization and tagging flow, then identify how the app handles user settings and integrations. The issue does not name files or tests, and leaves the model, prompt interface, email preprocessing, and custom category support open for design. Done would mean agreeing on a scope and supporting decision model categorization with the chosen email content and category options.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Categorizing mail is currently quite inflexible and not very automated. AI could help, but LLMs are a bit expensive to be reading every email.

Describe the solution you'd like
Decision models are perfect for auto categorizing and tagging email, they are cheap and perfect for choosing between a fixed set of options.

Ideally the user could create a prompt describing how the ai should categorize the emails (perhaps with a helper interface so the user knows to set a description per category)

I think the user should also be able to set how much of the email should be sent and ideally the email would have it's content simplified.
eg: always send the subject and their email, plus a configurable number of lines of the content. the content could be converted to markdown and have the images stripped out. so the ai can read it easily and it doesn't waste tokens on crap.

Describe alternatives you've considered
setting up regex based rules and filters like gmail has. it's okay but it kind of sucks when decision models are so crazy cheap

Additional context
If we have custom category support maybe I could make this as a plugin at first and you can work off my design for that if you want to introduce it into the main app

Dominant language
JavaScript
Stars
518
Forks
50
Avg merge
4d 45m
Merged PRs (30d)
43

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from maathimself/mailflow

All issues in maathimself/mailflow

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.