Account team and customer tasks
Both live on an account's page (Groups -> an account) and in the API under the group /v1/projects/{p}/groups/{typeindex}/{key}/.... Reading needs person...
Both live on an account's page (Groups -> an account) and in the API under the group /v1/projects/{p}/groups/{type_index}/{key}/.... Reading needs person read access; changing needs person write access. Every change is audited.
Relationships (who covers the account)
A relationship is a role key (csm, ae, am, se, sponsor, or any lowercase key), an org member, a start date and an optional end date. Reassigning a CSM = end the old one ("End today") and assign the new one; history stays.
Route | |
|---|---|
|
|
|
|
|
|
|
Routing
Alerts: add a channel
{"type":"account_team","group_type_index":0,"group_key":"acme","relationships":["csm"]}(alert dialog: "Account team"). When the alert fires or resolves, whoever holds those roles on that day is emailed; emptyrelationships= every current holder.Scouts:
emit_signaltakesaccount: {group_type_index, group_key, relationships?}. lc-api files the signal and sends the current holders an in-app notice linking to the inbox report. Any caller ofPOST /v1/projects/{p}/signalscan passaccounttoo.
Tasks (customer-success to-dos)
Title, notes, assignee (org member), due date, open/done. The account page lists open and done tasks; the Customers page (Accounts mode) shows My tasks across accounts.
Route | |
|---|---|
| `?status=open |
| same filters across accounts |
| patch any field; |
Verify: cargo test -p lc-api account_ and cargo test -p lc-api account_team_channels, go test ./ai/scouts -run TestSignalCarriesTheAccount, pnpm --filter web test account-team.