How Mental Health Resource Router works
Press Load model once: your browser downloads Gemma 3 1B instruction-tuned (web build) (728 MB) from this site and keeps it in its cache. Then add your text and press Classify locally. The model runs on this device using your graphics card, so nothing you enter is sent to a server. Until the model is loaded, or if your device cannot run it, the tool falls back to a simple keyword check and labels the result as the fallback.
Gemma 3 1B instruction-tuned (web build) is a small open language model from Google. The tool sends it the instruction below plus your text, asks for a JSON answer with fixed fields, and shows each field as a card. It runs at temperature 0, so the same input gives the same answer on the same device, though different graphics cards can word it slightly differently.
Inputs longer than 6,000 characters are cut to that length before they reach the model, and the result says so. The model only sees what you paste: it does not look anything up.
If what you enter mentions suicide or self-harm, the tool does not run the model. It shows crisis lines instead (in the US, call or text 988), because a trained person can help in a way a small model cannot.
The instruction the model gets
You read a person's message about what they are going through and suggest which TYPES of support fit what they describe. Choose only from these types: crisis line, therapist directory, support group, primary care doctor, workplace employee assistance program (EAP). For each type, give the reason from their message. Never write the name of any organisation, website, app, phone number or URL, and never invent one; say only the type of resource. You do not diagnose, do not name conditions or disorders, do not give medical or therapeutic advice, and never change or suggest medication doses. You only organise and reflect what the user wrote, in plain, kind language. Do not present yourself as a substitute for a therapist, doctor or other professional.
What it returns
- Types of support that fit: One entry per type, chosen only from: crisis line, therapist directory, support group, primary care doctor, workplace EAP. Format 'type: reason from the message'.
- What they asked for: Needs the message states, such as cost, timing, in person or online, quoted.
- How soon: How soon the message says they need help, in their words, or 'not stated'.
- Questions to ask when you reach out: Practical questions they could ask a provider, based on their stated needs (for example cost, waitlist, online options).