@synap-core/workspace-templates 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/automations/lead-converted-becomes-client.automation.json +89 -0
- package/automations/lead-converted-becomes-client.catalog.json +13 -0
- package/capabilities/apify.capability.json +8 -1
- package/capabilities/apollo.capability.json +8 -1
- package/capabilities/cal-com.capability.json +8 -1
- package/capabilities/exa.capability.json +8 -1
- package/capabilities/fal-ai.capability.json +8 -1
- package/capabilities/fal-media-lab.capability.json +8 -1
- package/capabilities/fireflies.capability.json +8 -1
- package/capabilities/mailgun.capability.json +8 -1
- package/capabilities/omniroute.capability.json +7 -1
- package/capabilities/posthog-analytics.capability.json +7 -1
- package/capabilities/postiz.capability.json +7 -1
- package/capabilities/replicate-rvm.capability.json +21 -5
- package/capabilities/stripe.capability.json +10 -1
- package/capabilities/vercel.capability.json +8 -1
- package/dist/index.js +476 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agency-os.yaml +1 -1
- package/src/crm.yaml +34 -19
- package/src/foundation.yaml +22 -10
- package/src/grants.yaml +4 -0
- package/src/intent.test.ts +4 -2
- package/src/lead-automations.test.ts +93 -0
- package/src/lead-becomes-client.template.test.ts +134 -0
- package/src/lifecycle-declarations.test.ts +19 -0
- package/src/lifecycle-presets.test.ts +39 -7
- package/src/operations.yaml +147 -16
- package/src/templates.ts +144 -16
package/src/operations.yaml
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
# Operations workspace template — client-delivery domain.
|
|
2
|
-
# How client work gets delivered end to end: the
|
|
3
|
-
#
|
|
2
|
+
# How client work gets delivered end to end: the clients you serve, the
|
|
3
|
+
# engagements you're running, the deliverables due inside them, and the
|
|
4
|
+
# contracts that govern them. Consumes the `crm` domain, provides `operations`.
|
|
5
|
+
#
|
|
6
|
+
# The Clients space (founder, 17 Nov 2026, design 05ed390c). A lead that signs
|
|
7
|
+
# in the CRM becomes a client here: a person moves the lead to `converted`
|
|
8
|
+
# (= signed), the CRM automation `lead-converted-becomes-client` attaches the
|
|
9
|
+
# pod-wide `client` role (handoffStatus handed_off, handoffDestination
|
|
10
|
+
# Operations), and "Onboard a client" below starts on that role: Welcome
|
|
11
|
+
# (clientStatus onboarding) → open or reuse the engagement → kick-off confirmed
|
|
12
|
+
# by a person (active). The engagement then runs "Deliver a client engagement".
|
|
13
|
+
# The 07:00 "Pick up handed-off clients" stays as a safety net.
|
|
4
14
|
# Validated against types.ts at build time.
|
|
5
15
|
|
|
6
16
|
meta:
|
|
7
17
|
slug: operations
|
|
8
18
|
domain: company
|
|
9
19
|
name: Operations
|
|
10
|
-
description: "Deliver client work end to end — the engagements you're running, the deliverables due inside them, and the contracts that govern them.
|
|
20
|
+
description: "Deliver client work end to end — the clients you serve, the engagements you're running, the deliverables due inside them, and the contracts that govern them. A lead that signs in the CRM becomes a client here, is onboarded, and its work runs as an engagement."
|
|
11
21
|
icon: briefcase
|
|
12
22
|
color: "#0F766E"
|
|
13
23
|
tags: [operations, delivery, clients, engagements]
|
|
@@ -36,9 +46,12 @@ meta:
|
|
|
36
46
|
label: Delivery
|
|
37
47
|
# The ONE primary output (One model decision 3): a delivered engagement (Deliver a client engagement).
|
|
38
48
|
primary: engagement
|
|
49
|
+
# `client` joined on 17 Nov 2026: Operations is the Clients space (design
|
|
50
|
+
# 05ed390c); the client's lifecycle (onboarding → active …) is worked here.
|
|
39
51
|
produces:
|
|
40
52
|
- profile: engagement
|
|
41
53
|
- profile: deliverable
|
|
54
|
+
- profile: client
|
|
42
55
|
|
|
43
56
|
workspace:
|
|
44
57
|
name: Operations
|
|
@@ -64,9 +77,19 @@ dependencies:
|
|
|
64
77
|
- slug: foundation
|
|
65
78
|
kind: workspace
|
|
66
79
|
relation: require
|
|
67
|
-
reason: "Provides the pod-wide `client` role
|
|
80
|
+
reason: "Provides the pod-wide `client` role this space onboards and serves (Clients board, Onboard a client) and its automations query."
|
|
68
81
|
|
|
69
82
|
profiles:
|
|
83
|
+
# The pod-wide `client` role, REFERENCED (foundation's SSOT body; crm.yaml
|
|
84
|
+
# declares the same reference). Declaring it grants this space the role, so
|
|
85
|
+
# the Clients board, "Onboard a client" and the engagement's client field
|
|
86
|
+
# see it (founder, 17 Nov 2026, design 05ed390c). No extra properties: the
|
|
87
|
+
# handoff fields are the CRM's overlay.
|
|
88
|
+
- slug: client
|
|
89
|
+
displayName: Client
|
|
90
|
+
scope: shared
|
|
91
|
+
profileKind: role
|
|
92
|
+
properties: []
|
|
70
93
|
- slug: engagement
|
|
71
94
|
displayName: Engagement
|
|
72
95
|
icon: briefcase
|
|
@@ -88,10 +111,15 @@ profiles:
|
|
|
88
111
|
valueType: string
|
|
89
112
|
inputType: select
|
|
90
113
|
constraints: { defaultValue: proposed }
|
|
114
|
+
# The client the work is for: whoever wears the `client` role, a company
|
|
115
|
+
# or a person (founder, 17 Nov 2026: a solo client like Claire is the
|
|
116
|
+
# client herself). It is also the dedupe key of every door that opens an
|
|
117
|
+
# engagement for a client ("Onboard a client", "Pick up handed-off
|
|
118
|
+
# clients"): one engagement per client, whichever door runs first.
|
|
91
119
|
- slug: engagement-client
|
|
92
120
|
label: Client
|
|
93
121
|
valueType: entity_id
|
|
94
|
-
targetProfileSlug:
|
|
122
|
+
targetProfileSlug: client
|
|
95
123
|
inputType: entity_select
|
|
96
124
|
- slug: engagement-start
|
|
97
125
|
label: Start Date
|
|
@@ -301,6 +329,15 @@ entityLinks:
|
|
|
301
329
|
|
|
302
330
|
# CURATED views — the delivery motion, not one per profile
|
|
303
331
|
views:
|
|
332
|
+
# The flow board of "Onboard a client": the client role's lifecycle, a drag
|
|
333
|
+
# is the governed status move (onboarding → active is a person's call there).
|
|
334
|
+
- name: Clients
|
|
335
|
+
slug: clients
|
|
336
|
+
type: kanban
|
|
337
|
+
scopeProfileSlug: client
|
|
338
|
+
config:
|
|
339
|
+
groupByField: clientStatus
|
|
340
|
+
description: "Clients on a board by status, from onboarding to active."
|
|
304
341
|
- name: Engagements
|
|
305
342
|
slug: engagements
|
|
306
343
|
type: kanban
|
|
@@ -372,6 +409,10 @@ layout:
|
|
|
372
409
|
defaultView: Engagements
|
|
373
410
|
defaultApp: null
|
|
374
411
|
sidebarItems:
|
|
412
|
+
- kind: view
|
|
413
|
+
viewName: Clients
|
|
414
|
+
label: Clients
|
|
415
|
+
icon: users
|
|
375
416
|
- kind: view
|
|
376
417
|
viewName: Engagements
|
|
377
418
|
label: Engagements
|
|
@@ -670,14 +711,24 @@ automations:
|
|
|
670
711
|
- { id: e-resolve-post, source: resolve-team, target: post-recap }
|
|
671
712
|
|
|
672
713
|
# ══════════════════════════════════════════════════════════════════════════
|
|
673
|
-
# CRM → Operations HANDOFF PICKUP
|
|
714
|
+
# CRM → Operations HANDOFF PICKUP — the SAFETY NET
|
|
715
|
+
#
|
|
716
|
+
# Since 17 Nov 2026 (design 05ed390c) a client arrives through ONE door: a
|
|
717
|
+
# person moves the lead to `converted` (= signed), the CRM automation
|
|
718
|
+
# `lead-converted-becomes-client` attaches the pod-wide `client` role with
|
|
719
|
+
# `handoffStatus: handed_off`, and "Onboard a client" (below) starts on that
|
|
720
|
+
# attach and opens or reuses the engagement. This daily job stays as the
|
|
721
|
+
# safety net (founder default 6): a client whose onboarding never started
|
|
722
|
+
# (a declined run, an attach before the cross-space delivery landed, a client
|
|
723
|
+
# attached by another door such as The Arch's "Win and hand off") still gets
|
|
724
|
+
# its delivery shell — a `proposed` engagement plus a `draft` contract — at
|
|
725
|
+
# most 24 h late.
|
|
674
726
|
#
|
|
675
|
-
#
|
|
676
|
-
#
|
|
677
|
-
#
|
|
678
|
-
#
|
|
679
|
-
#
|
|
680
|
-
# delivery shell — a `proposed` engagement plus a `draft` contract.
|
|
727
|
+
# ONE DEDUPE KEY for every door: an engagement belongs to a client through
|
|
728
|
+
# its `engagement-client` property (plus the `engagement_for_client` edge).
|
|
729
|
+
# "Onboard a client" sets both on the engagement it opens and reuses the one
|
|
730
|
+
# this job opened; this job skips a client that already has one. Whichever
|
|
731
|
+
# door runs first, a client gets one engagement.
|
|
681
732
|
#
|
|
682
733
|
# WHY THE SHARED `client` SLUG MATTERS: this reads foundation's pod-wide
|
|
683
734
|
# `client` role. When the CRM wrote a workspace-scoped `crm-client` instead,
|
|
@@ -724,10 +775,12 @@ automations:
|
|
|
724
775
|
- key: operations-crm-handoff-pickup
|
|
725
776
|
name: Pick up handed-off clients
|
|
726
777
|
description: >-
|
|
727
|
-
Daily. Finds pod-wide clients the CRM marked ready or handed
|
|
728
|
-
no engagement yet
|
|
729
|
-
|
|
730
|
-
|
|
778
|
+
Daily safety net. Finds pod-wide clients the CRM marked ready or handed
|
|
779
|
+
off that have no engagement yet (Onboard a client normally opens it), and
|
|
780
|
+
opens the delivery shell for them — a proposed engagement plus a draft
|
|
781
|
+
contract, both linked to the client. Deduped per client on the
|
|
782
|
+
engagement's client, the key Onboard a client uses too, so it is safe to
|
|
783
|
+
re-run.
|
|
731
784
|
triggerType: cron
|
|
732
785
|
triggerConfig:
|
|
733
786
|
expression: "0 7 * * *"
|
|
@@ -924,6 +977,84 @@ automations:
|
|
|
924
977
|
- { id: h-contract-link, source: create-contract, target: link-contract }
|
|
925
978
|
|
|
926
979
|
playbooks:
|
|
980
|
+
# ── Onboard a client — the Clients space's process ───────────────────────
|
|
981
|
+
# Founder decision 17 Nov 2026 (design 05ed390c, defaults approved). Its
|
|
982
|
+
# subject is the pod-wide `client` ROLE, whose lifecycle foundation declares
|
|
983
|
+
# (clientStatus, with `onboarding` before `active`). It starts when the role
|
|
984
|
+
# is attached (`on: created` on a role = the attach; `mode: propose`, so a
|
|
985
|
+
# person approves the run): normally by the CRM automation
|
|
986
|
+
# `lead-converted-becomes-client`, once a person moved the lead to converted
|
|
987
|
+
# (= signed). An attach made under the CRM space reaches this Operations rule
|
|
988
|
+
# only once the backend delivers a pod-wide role attach to every space of the
|
|
989
|
+
# entity (wave W1); until then the 07:00 safety net opens the engagement.
|
|
990
|
+
# Engagement dedupe: `engagement-client` (see the pickup automation above).
|
|
991
|
+
# Sending the welcome goes through the pod's one send door (a proposed
|
|
992
|
+
# message a person approves); the commitment, kick-off done → active, is a
|
|
993
|
+
# person's gate.
|
|
994
|
+
- name: Onboard a client
|
|
995
|
+
description: Welcome a new client, open or reuse their engagement, and have a person confirm the kick-off — the client moves from onboarding to active.
|
|
996
|
+
goalTemplate: >-
|
|
997
|
+
Onboard this new client ({client}); each stage moves the client's
|
|
998
|
+
status. WELCOME: read how they became a client — the converted lead,
|
|
999
|
+
the won deal and its proposal, every message with them, and the
|
|
1000
|
+
handoff notes on the client role — and write a short brief in the
|
|
1001
|
+
client's notes: what they bought, who signs, and what they expect
|
|
1002
|
+
first. Draft one welcome message to them as a proposed message in
|
|
1003
|
+
their channel, through the pod's send door (messaging.send): a person
|
|
1004
|
+
approves it before it is sent; never send it another way.
|
|
1005
|
+
ENGAGEMENT: find the engagement whose client is this client (the daily
|
|
1006
|
+
pick-up may already have opened one) and reuse it. Only when there is
|
|
1007
|
+
none, open one at proposed with its client set to this client and its
|
|
1008
|
+
scope and value from the won deal, and link it to the client. Never
|
|
1009
|
+
open a second one. Opening it starts "Deliver a client engagement".
|
|
1010
|
+
KICK-OFF: propose the kick-off (its date, who attends, what is decided
|
|
1011
|
+
there) as the engagement's next step; a person confirms the kick-off
|
|
1012
|
+
happened, which makes the client active.
|
|
1013
|
+
subjectProfile:
|
|
1014
|
+
profileSlug: client
|
|
1015
|
+
activators:
|
|
1016
|
+
- { on: created, mode: propose }
|
|
1017
|
+
params:
|
|
1018
|
+
- { name: client, type: entity, label: Client, required: true }
|
|
1019
|
+
executor: is-agent
|
|
1020
|
+
status: active
|
|
1021
|
+
tools: [list_records, send_message]
|
|
1022
|
+
metadata:
|
|
1023
|
+
lineage: { method: "Agency client onboarding: welcome, engagement set-up, kick-off" }
|
|
1024
|
+
stages:
|
|
1025
|
+
- key: welcome
|
|
1026
|
+
name: Welcome
|
|
1027
|
+
category: planned
|
|
1028
|
+
subjectStatus: onboarding
|
|
1029
|
+
goal: Write the client brief in the client's notes and propose a welcome message in their channel for a person to approve.
|
|
1030
|
+
criteria:
|
|
1031
|
+
- key: welcome-brief
|
|
1032
|
+
statement: The client's notes hold a short brief — what they bought, who signs, and what they expect first.
|
|
1033
|
+
check: { kind: judge }
|
|
1034
|
+
- key: welcome-message-proposed
|
|
1035
|
+
statement: A welcome message to the client is proposed in their channel for a person to approve.
|
|
1036
|
+
check: { kind: judge }
|
|
1037
|
+
- key: engagement
|
|
1038
|
+
name: Open or reuse the engagement
|
|
1039
|
+
category: started
|
|
1040
|
+
goal: Reuse the engagement whose client is this client; only when none exists, open one at proposed with its client set and link it to the client.
|
|
1041
|
+
expectedOutputs:
|
|
1042
|
+
- { kind: engagement, label: Client engagement, relationToSubject: engagement_for_client }
|
|
1043
|
+
criteria:
|
|
1044
|
+
- key: engagement-one-per-client
|
|
1045
|
+
statement: Exactly one engagement names this client as its client.
|
|
1046
|
+
check: { kind: judge }
|
|
1047
|
+
- key: engagement-linked
|
|
1048
|
+
statement: That engagement is linked to the client.
|
|
1049
|
+
check: { kind: judge }
|
|
1050
|
+
- key: kickoff
|
|
1051
|
+
name: Kick-off confirmed
|
|
1052
|
+
category: completed
|
|
1053
|
+
subjectStatus: active
|
|
1054
|
+
goal: A person confirms the kick-off happened; the client becomes active.
|
|
1055
|
+
gate: { kind: human }
|
|
1056
|
+
onFail: { toStage: engagement }
|
|
1057
|
+
|
|
927
1058
|
- name: Deliver a client engagement
|
|
928
1059
|
description: Run one client engagement from kick-off to close — scope, contract, deliverables, final review and the closing invoice — with a person approving the start and the close.
|
|
929
1060
|
goalTemplate: >-
|
package/src/templates.ts
CHANGED
|
@@ -41,7 +41,7 @@ const DATA = {
|
|
|
41
41
|
"slug": "operations",
|
|
42
42
|
"kind": "workspace",
|
|
43
43
|
"relation": "require",
|
|
44
|
-
"reason": "
|
|
44
|
+
"reason": "Clients, their engagements, deliverables and contracts — where a lead that signs becomes a client, is onboarded and delivered."
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"slug": "finance",
|
|
@@ -13953,9 +13953,6 @@ const DATA = {
|
|
|
13953
13953
|
{
|
|
13954
13954
|
"profile": "lead"
|
|
13955
13955
|
},
|
|
13956
|
-
{
|
|
13957
|
-
"profile": "client"
|
|
13958
|
-
},
|
|
13959
13956
|
{
|
|
13960
13957
|
"profile": "deal"
|
|
13961
13958
|
},
|
|
@@ -15150,7 +15147,7 @@ const DATA = {
|
|
|
15150
15147
|
{
|
|
15151
15148
|
"name": "Qualify a lead",
|
|
15152
15149
|
"description": "Research one lead, decide with a person whether it is worth pursuing, and set a pursued lead qualified with \"book a meeting\" as its next action.",
|
|
15153
|
-
"goalTemplate": "Qualify this lead ({lead}). RESEARCH: verify and enrich only facts you can support — company, role, size, recent signal — and record the source of each. SCORE: assess fit against the offers and the ideal client, set the ICP score, qualification notes and outreach channels, and write the step you recommend as the lead's next action: `nextAction` one imperative line (e.g. \"Send the first message on LinkedIn\") and `nextActionAt` its date, and say in the qualification notes whether you recommend pursuing, nurturing or dropping it. Stop there: the pod asks the person to pick pursue, nurture or drop and wakes you with their answer, which is the decision. DECIDE: record it on the lead. NURTURE: set the lead to nurturing, with `nextAction` to check in again and `nextActionAt` the date they gave (three months out when they gave none). DROP: write their reason in `disqualificationReason` and move the lead to disqualified; that move is the person's (disqualified is human-only), so it comes back proposed for them to approve, which is success; never write it another way. PURSUE: only when they chose pursue, set the lead to qualified with `nextAction` \"Book a meeting\" (one line naming the channel, e.g. \"Ask for a meeting on LinkedIn\") and `nextActionAt` its date. Never create a deal: a deal is opened when a person records a booked meeting
|
|
15150
|
+
"goalTemplate": "Qualify this lead ({lead}). RESEARCH: verify and enrich only facts you can support — company, role, size, recent signal — and record the source of each. SCORE: assess fit against the offers and the ideal client, set the ICP score, qualification notes and outreach channels, and write the step you recommend as the lead's next action: `nextAction` one imperative line (e.g. \"Send the first message on LinkedIn\") and `nextActionAt` its date, and say in the qualification notes whether you recommend pursuing, nurturing or dropping it. Stop there: the pod asks the person to pick pursue, nurture or drop and wakes you with their answer, which is the decision. DECIDE: record it on the lead. NURTURE: set the lead to nurturing, with `nextAction` to check in again and `nextActionAt` the date they gave (three months out when they gave none). DROP: write their reason in `disqualificationReason` and move the lead to disqualified; that move is the person's (disqualified is human-only), so it comes back proposed for them to approve, which is success; never write it another way. PURSUE: only when they chose pursue, set the lead to qualified with `nextAction` \"Book a meeting\" (one line naming the channel, e.g. \"Ask for a meeting on LinkedIn\") and `nextActionAt` its date. Never create a deal: a deal is opened when a person records a booked meeting. Never move the lead to converted and never mark it a client: the lead converts when the client signs, and that is a person's move.",
|
|
15154
15151
|
"subjectProfile": {
|
|
15155
15152
|
"profileSlug": "lead"
|
|
15156
15153
|
},
|
|
@@ -15302,7 +15299,7 @@ const DATA = {
|
|
|
15302
15299
|
{
|
|
15303
15300
|
"name": "Win a deal",
|
|
15304
15301
|
"description": "Take a deal from first conversation to won or lost — qualify it, write and send the proposal, negotiate, and hand a won deal to delivery, with a person deciding every commitment.",
|
|
15305
|
-
"goalTemplate": "Work this deal ({deal}) through its stages; each stage moves the deal's commercial stage. QUALIFY: from the pod (the company, its people, every past message and meeting) and public sources, establish the four facts a proposal needs — the problem the buyer wants solved and what it costs them, a budget range, who signs, and when they need it — and link the people involved to the deal. Do not guess a fact: when one is missing, ask the person who owns the relationship. WRITE: draft the proposal document (scope, deliverables, timeline, price, terms) from the agency's offers and past won proposals, and set the deal's value and close date. SEND: a person approves the proposal before it goes to the client; nothing is sent without that approval. AWAIT: wait for the client's answer and record it on the deal. NEGOTIATE: its check reads that answer; log every objection and counter-offer and propose the next step. WON: once a person confirms the client said yes,
|
|
15302
|
+
"goalTemplate": "Work this deal ({deal}) through its stages; each stage moves the deal's commercial stage. QUALIFY: from the pod (the company, its people, every past message and meeting) and public sources, establish the four facts a proposal needs — the problem the buyer wants solved and what it costs them, a budget range, who signs, and when they need it — and link the people involved to the deal. Do not guess a fact: when one is missing, ask the person who owns the relationship. WRITE: draft the proposal document (scope, deliverables, timeline, price, terms) from the agency's offers and past won proposals, and set the deal's value and close date. SEND: a person approves the proposal before it goes to the client; nothing is sent without that approval. AWAIT: wait for the client's answer and record it on the deal. NEGOTIATE: its check reads that answer; log every objection and counter-offer and propose the next step. WON: once a person confirms the client said yes, propose moving the deal's lead (the company's lead, else the person's) to converted, which means signed. That move is the person's (converted is human-only), so it comes back proposed for them to approve, which is success. Never attach the client role and never open an engagement yourself: once the person approves, the pod stamps the lead, makes the company (or person) a client handed off to Operations, and Operations' \"Onboard a client\" opens or reuses the engagement. A lost deal is a person's call — record why it was lost.",
|
|
15306
15303
|
"subjectProfile": {
|
|
15307
15304
|
"profileSlug": "deal"
|
|
15308
15305
|
},
|
|
@@ -15337,11 +15334,6 @@ const DATA = {
|
|
|
15337
15334
|
{
|
|
15338
15335
|
"kind": "document",
|
|
15339
15336
|
"label": "Proposal"
|
|
15340
|
-
},
|
|
15341
|
-
{
|
|
15342
|
-
"kind": "engagement",
|
|
15343
|
-
"label": "Client engagement",
|
|
15344
|
-
"relationToSubject": "relates_to"
|
|
15345
15337
|
}
|
|
15346
15338
|
],
|
|
15347
15339
|
"metadata": {
|
|
@@ -15473,7 +15465,7 @@ const DATA = {
|
|
|
15473
15465
|
"name": "Won",
|
|
15474
15466
|
"category": "completed",
|
|
15475
15467
|
"subjectStatus": "won",
|
|
15476
|
-
"goal": "A person confirms the client said yes; then
|
|
15468
|
+
"goal": "A person confirms the client said yes; then propose moving the deal's lead to converted (signed), which the person approves. That approved move makes the company (or person) a client handed off to Operations, which onboards it.",
|
|
15477
15469
|
"gate": {
|
|
15478
15470
|
"kind": "human"
|
|
15479
15471
|
},
|
|
@@ -19183,6 +19175,10 @@ const DATA = {
|
|
|
19183
19175
|
"key": "prospect",
|
|
19184
19176
|
"category": "open"
|
|
19185
19177
|
},
|
|
19178
|
+
{
|
|
19179
|
+
"key": "onboarding",
|
|
19180
|
+
"category": "open"
|
|
19181
|
+
},
|
|
19186
19182
|
{
|
|
19187
19183
|
"key": "active",
|
|
19188
19184
|
"category": "active"
|
|
@@ -19209,6 +19205,7 @@ const DATA = {
|
|
|
19209
19205
|
"inputType": "select",
|
|
19210
19206
|
"enumValues": [
|
|
19211
19207
|
"prospect",
|
|
19208
|
+
"onboarding",
|
|
19212
19209
|
"active",
|
|
19213
19210
|
"paused",
|
|
19214
19211
|
"former",
|
|
@@ -20908,6 +20905,10 @@ const DATA = {
|
|
|
20908
20905
|
"key": "prospect",
|
|
20909
20906
|
"category": "open"
|
|
20910
20907
|
},
|
|
20908
|
+
{
|
|
20909
|
+
"key": "onboarding",
|
|
20910
|
+
"category": "open"
|
|
20911
|
+
},
|
|
20911
20912
|
{
|
|
20912
20913
|
"key": "active",
|
|
20913
20914
|
"category": "active"
|
|
@@ -20934,6 +20935,7 @@ const DATA = {
|
|
|
20934
20935
|
"inputType": "select",
|
|
20935
20936
|
"enumValues": [
|
|
20936
20937
|
"prospect",
|
|
20938
|
+
"onboarding",
|
|
20937
20939
|
"active",
|
|
20938
20940
|
"paused",
|
|
20939
20941
|
"former",
|
|
@@ -28694,7 +28696,7 @@ const DATA = {
|
|
|
28694
28696
|
"slug": "operations",
|
|
28695
28697
|
"domain": "company",
|
|
28696
28698
|
"name": "Operations",
|
|
28697
|
-
"description": "Deliver client work end to end — the engagements you're running, the deliverables due inside them, and the contracts that govern them.
|
|
28699
|
+
"description": "Deliver client work end to end — the clients you serve, the engagements you're running, the deliverables due inside them, and the contracts that govern them. A lead that signs in the CRM becomes a client here, is onboarded, and its work runs as an engagement.",
|
|
28698
28700
|
"icon": "briefcase",
|
|
28699
28701
|
"color": "#0F766E",
|
|
28700
28702
|
"tags": [
|
|
@@ -28763,6 +28765,9 @@ const DATA = {
|
|
|
28763
28765
|
},
|
|
28764
28766
|
{
|
|
28765
28767
|
"profile": "deliverable"
|
|
28768
|
+
},
|
|
28769
|
+
{
|
|
28770
|
+
"profile": "client"
|
|
28766
28771
|
}
|
|
28767
28772
|
]
|
|
28768
28773
|
}
|
|
@@ -28787,10 +28792,17 @@ const DATA = {
|
|
|
28787
28792
|
"slug": "foundation",
|
|
28788
28793
|
"kind": "workspace",
|
|
28789
28794
|
"relation": "require",
|
|
28790
|
-
"reason": "Provides the pod-wide `client` role
|
|
28795
|
+
"reason": "Provides the pod-wide `client` role this space onboards and serves (Clients board, Onboard a client) and its automations query."
|
|
28791
28796
|
}
|
|
28792
28797
|
],
|
|
28793
28798
|
"profiles": [
|
|
28799
|
+
{
|
|
28800
|
+
"slug": "client",
|
|
28801
|
+
"displayName": "Client",
|
|
28802
|
+
"scope": "shared",
|
|
28803
|
+
"profileKind": "role",
|
|
28804
|
+
"properties": []
|
|
28805
|
+
},
|
|
28794
28806
|
{
|
|
28795
28807
|
"slug": "engagement",
|
|
28796
28808
|
"displayName": "Engagement",
|
|
@@ -28845,7 +28857,7 @@ const DATA = {
|
|
|
28845
28857
|
"slug": "engagement-client",
|
|
28846
28858
|
"label": "Client",
|
|
28847
28859
|
"valueType": "entity_id",
|
|
28848
|
-
"targetProfileSlug": "
|
|
28860
|
+
"targetProfileSlug": "client",
|
|
28849
28861
|
"inputType": "entity_select"
|
|
28850
28862
|
},
|
|
28851
28863
|
{
|
|
@@ -29167,6 +29179,16 @@ const DATA = {
|
|
|
29167
29179
|
}
|
|
29168
29180
|
],
|
|
29169
29181
|
"views": [
|
|
29182
|
+
{
|
|
29183
|
+
"name": "Clients",
|
|
29184
|
+
"slug": "clients",
|
|
29185
|
+
"type": "kanban",
|
|
29186
|
+
"scopeProfileSlug": "client",
|
|
29187
|
+
"config": {
|
|
29188
|
+
"groupByField": "clientStatus"
|
|
29189
|
+
},
|
|
29190
|
+
"description": "Clients on a board by status, from onboarding to active."
|
|
29191
|
+
},
|
|
29170
29192
|
{
|
|
29171
29193
|
"name": "Engagements",
|
|
29172
29194
|
"slug": "engagements",
|
|
@@ -29257,6 +29279,12 @@ const DATA = {
|
|
|
29257
29279
|
"defaultView": "Engagements",
|
|
29258
29280
|
"defaultApp": null,
|
|
29259
29281
|
"sidebarItems": [
|
|
29282
|
+
{
|
|
29283
|
+
"kind": "view",
|
|
29284
|
+
"viewName": "Clients",
|
|
29285
|
+
"label": "Clients",
|
|
29286
|
+
"icon": "users"
|
|
29287
|
+
},
|
|
29260
29288
|
{
|
|
29261
29289
|
"kind": "view",
|
|
29262
29290
|
"viewName": "Engagements",
|
|
@@ -29540,7 +29568,7 @@ const DATA = {
|
|
|
29540
29568
|
{
|
|
29541
29569
|
"key": "operations-crm-handoff-pickup",
|
|
29542
29570
|
"name": "Pick up handed-off clients",
|
|
29543
|
-
"description": "Daily. Finds pod-wide clients the CRM marked ready or handed off that have no engagement yet, and opens the delivery shell for them — a proposed engagement plus a draft contract, both linked to the client. Deduped per client, so it is safe to re-run.",
|
|
29571
|
+
"description": "Daily safety net. Finds pod-wide clients the CRM marked ready or handed off that have no engagement yet (Onboard a client normally opens it), and opens the delivery shell for them — a proposed engagement plus a draft contract, both linked to the client. Deduped per client on the engagement's client, the key Onboard a client uses too, so it is safe to re-run.",
|
|
29544
29572
|
"triggerType": "cron",
|
|
29545
29573
|
"triggerConfig": {
|
|
29546
29574
|
"expression": "0 7 * * *"
|
|
@@ -29821,6 +29849,106 @@ const DATA = {
|
|
|
29821
29849
|
}
|
|
29822
29850
|
],
|
|
29823
29851
|
"playbooks": [
|
|
29852
|
+
{
|
|
29853
|
+
"name": "Onboard a client",
|
|
29854
|
+
"description": "Welcome a new client, open or reuse their engagement, and have a person confirm the kick-off — the client moves from onboarding to active.",
|
|
29855
|
+
"goalTemplate": "Onboard this new client ({client}); each stage moves the client's status. WELCOME: read how they became a client — the converted lead, the won deal and its proposal, every message with them, and the handoff notes on the client role — and write a short brief in the client's notes: what they bought, who signs, and what they expect first. Draft one welcome message to them as a proposed message in their channel, through the pod's send door (messaging.send): a person approves it before it is sent; never send it another way. ENGAGEMENT: find the engagement whose client is this client (the daily pick-up may already have opened one) and reuse it. Only when there is none, open one at proposed with its client set to this client and its scope and value from the won deal, and link it to the client. Never open a second one. Opening it starts \"Deliver a client engagement\". KICK-OFF: propose the kick-off (its date, who attends, what is decided there) as the engagement's next step; a person confirms the kick-off happened, which makes the client active.",
|
|
29856
|
+
"subjectProfile": {
|
|
29857
|
+
"profileSlug": "client"
|
|
29858
|
+
},
|
|
29859
|
+
"activators": [
|
|
29860
|
+
{
|
|
29861
|
+
"on": "created",
|
|
29862
|
+
"mode": "propose"
|
|
29863
|
+
}
|
|
29864
|
+
],
|
|
29865
|
+
"params": [
|
|
29866
|
+
{
|
|
29867
|
+
"name": "client",
|
|
29868
|
+
"type": "entity",
|
|
29869
|
+
"label": "Client",
|
|
29870
|
+
"required": true
|
|
29871
|
+
}
|
|
29872
|
+
],
|
|
29873
|
+
"executor": "is-agent",
|
|
29874
|
+
"status": "active",
|
|
29875
|
+
"tools": [
|
|
29876
|
+
"list_records",
|
|
29877
|
+
"send_message"
|
|
29878
|
+
],
|
|
29879
|
+
"metadata": {
|
|
29880
|
+
"lineage": {
|
|
29881
|
+
"method": "Agency client onboarding: welcome, engagement set-up, kick-off"
|
|
29882
|
+
}
|
|
29883
|
+
},
|
|
29884
|
+
"stages": [
|
|
29885
|
+
{
|
|
29886
|
+
"key": "welcome",
|
|
29887
|
+
"name": "Welcome",
|
|
29888
|
+
"category": "planned",
|
|
29889
|
+
"subjectStatus": "onboarding",
|
|
29890
|
+
"goal": "Write the client brief in the client's notes and propose a welcome message in their channel for a person to approve.",
|
|
29891
|
+
"criteria": [
|
|
29892
|
+
{
|
|
29893
|
+
"key": "welcome-brief",
|
|
29894
|
+
"statement": "The client's notes hold a short brief — what they bought, who signs, and what they expect first.",
|
|
29895
|
+
"check": {
|
|
29896
|
+
"kind": "judge"
|
|
29897
|
+
}
|
|
29898
|
+
},
|
|
29899
|
+
{
|
|
29900
|
+
"key": "welcome-message-proposed",
|
|
29901
|
+
"statement": "A welcome message to the client is proposed in their channel for a person to approve.",
|
|
29902
|
+
"check": {
|
|
29903
|
+
"kind": "judge"
|
|
29904
|
+
}
|
|
29905
|
+
}
|
|
29906
|
+
]
|
|
29907
|
+
},
|
|
29908
|
+
{
|
|
29909
|
+
"key": "engagement",
|
|
29910
|
+
"name": "Open or reuse the engagement",
|
|
29911
|
+
"category": "started",
|
|
29912
|
+
"goal": "Reuse the engagement whose client is this client; only when none exists, open one at proposed with its client set and link it to the client.",
|
|
29913
|
+
"expectedOutputs": [
|
|
29914
|
+
{
|
|
29915
|
+
"kind": "engagement",
|
|
29916
|
+
"label": "Client engagement",
|
|
29917
|
+
"relationToSubject": "engagement_for_client"
|
|
29918
|
+
}
|
|
29919
|
+
],
|
|
29920
|
+
"criteria": [
|
|
29921
|
+
{
|
|
29922
|
+
"key": "engagement-one-per-client",
|
|
29923
|
+
"statement": "Exactly one engagement names this client as its client.",
|
|
29924
|
+
"check": {
|
|
29925
|
+
"kind": "judge"
|
|
29926
|
+
}
|
|
29927
|
+
},
|
|
29928
|
+
{
|
|
29929
|
+
"key": "engagement-linked",
|
|
29930
|
+
"statement": "That engagement is linked to the client.",
|
|
29931
|
+
"check": {
|
|
29932
|
+
"kind": "judge"
|
|
29933
|
+
}
|
|
29934
|
+
}
|
|
29935
|
+
]
|
|
29936
|
+
},
|
|
29937
|
+
{
|
|
29938
|
+
"key": "kickoff",
|
|
29939
|
+
"name": "Kick-off confirmed",
|
|
29940
|
+
"category": "completed",
|
|
29941
|
+
"subjectStatus": "active",
|
|
29942
|
+
"goal": "A person confirms the kick-off happened; the client becomes active.",
|
|
29943
|
+
"gate": {
|
|
29944
|
+
"kind": "human"
|
|
29945
|
+
},
|
|
29946
|
+
"onFail": {
|
|
29947
|
+
"toStage": "engagement"
|
|
29948
|
+
}
|
|
29949
|
+
}
|
|
29950
|
+
]
|
|
29951
|
+
},
|
|
29824
29952
|
{
|
|
29825
29953
|
"name": "Deliver a client engagement",
|
|
29826
29954
|
"description": "Run one client engagement from kick-off to close — scope, contract, deliverables, final review and the closing invoice — with a person approving the start and the close.",
|