@synap-core/workspace-templates 0.35.0 → 0.37.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 -0
- package/dist/{define-DHDi8C33.d.ts → define-YL-hIPcn.d.ts} +10 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +319 -10
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/brand-library.yaml +17 -1
- package/src/crm-health.template.test.ts +82 -0
- package/src/crm-messages-cadence.template.test.ts +39 -0
- package/src/crm-rules-guidance.template.test.ts +156 -0
- package/src/crm.yaml +324 -20
- package/src/lifecycle-declarations.test.ts +6 -1
- package/src/templates.ts +319 -10
- package/src/types.ts +5 -0
package/src/templates.ts
CHANGED
|
@@ -2359,7 +2359,8 @@ const DATA = {
|
|
|
2359
2359
|
},
|
|
2360
2360
|
{
|
|
2361
2361
|
"key": "approved",
|
|
2362
|
-
"category": "done"
|
|
2362
|
+
"category": "done",
|
|
2363
|
+
"humanOnly": true
|
|
2363
2364
|
},
|
|
2364
2365
|
{
|
|
2365
2366
|
"key": "deprecated",
|
|
@@ -2382,7 +2383,8 @@ const DATA = {
|
|
|
2382
2383
|
"social",
|
|
2383
2384
|
"legal",
|
|
2384
2385
|
"editorial",
|
|
2385
|
-
"investor"
|
|
2386
|
+
"investor",
|
|
2387
|
+
"outreach"
|
|
2386
2388
|
],
|
|
2387
2389
|
"constraints": {
|
|
2388
2390
|
"defaultValue": "general"
|
|
@@ -2933,6 +2935,12 @@ const DATA = {
|
|
|
2933
2935
|
}
|
|
2934
2936
|
],
|
|
2935
2937
|
"entityLinks": [
|
|
2938
|
+
{
|
|
2939
|
+
"sourceProfileSlug": "brand-voice-guide",
|
|
2940
|
+
"targetProfileSlug": "brand-voice-guide",
|
|
2941
|
+
"type": "revises",
|
|
2942
|
+
"label": "Revises"
|
|
2943
|
+
},
|
|
2936
2944
|
{
|
|
2937
2945
|
"sourceProfileSlug": "brand-token-set",
|
|
2938
2946
|
"targetProfileSlug": "brand-color",
|
|
@@ -14210,6 +14218,113 @@ const DATA = {
|
|
|
14210
14218
|
"inputType": "textarea"
|
|
14211
14219
|
}
|
|
14212
14220
|
]
|
|
14221
|
+
},
|
|
14222
|
+
{
|
|
14223
|
+
"slug": "outreach-angle",
|
|
14224
|
+
"displayName": "Outreach angle",
|
|
14225
|
+
"icon": "compass",
|
|
14226
|
+
"color": "violet",
|
|
14227
|
+
"description": "One row of \"By kind of lead\": if the lead is X, lead with this angle, offer, proof, tone and channel. The first row that fits the lead wins; a person makes a row current.",
|
|
14228
|
+
"lifecycle": {
|
|
14229
|
+
"property": "angle-status",
|
|
14230
|
+
"options": [
|
|
14231
|
+
{
|
|
14232
|
+
"key": "draft",
|
|
14233
|
+
"category": "open"
|
|
14234
|
+
},
|
|
14235
|
+
{
|
|
14236
|
+
"key": "current",
|
|
14237
|
+
"category": "done",
|
|
14238
|
+
"humanOnly": true
|
|
14239
|
+
},
|
|
14240
|
+
{
|
|
14241
|
+
"key": "retired",
|
|
14242
|
+
"category": "lost",
|
|
14243
|
+
"humanOnly": true
|
|
14244
|
+
}
|
|
14245
|
+
]
|
|
14246
|
+
},
|
|
14247
|
+
"properties": [
|
|
14248
|
+
{
|
|
14249
|
+
"slug": "angle-status",
|
|
14250
|
+
"label": "Status",
|
|
14251
|
+
"valueType": "string",
|
|
14252
|
+
"inputType": "select",
|
|
14253
|
+
"enumValues": [
|
|
14254
|
+
"draft",
|
|
14255
|
+
"current",
|
|
14256
|
+
"retired"
|
|
14257
|
+
],
|
|
14258
|
+
"constraints": {
|
|
14259
|
+
"defaultValue": "draft"
|
|
14260
|
+
}
|
|
14261
|
+
},
|
|
14262
|
+
{
|
|
14263
|
+
"slug": "angle-if",
|
|
14264
|
+
"label": "If the lead",
|
|
14265
|
+
"valueType": "string",
|
|
14266
|
+
"inputType": "textarea",
|
|
14267
|
+
"placeholder": "e.g. Posted a small automation project on Codeur or Malt"
|
|
14268
|
+
},
|
|
14269
|
+
{
|
|
14270
|
+
"slug": "angle-audience",
|
|
14271
|
+
"label": "Audience",
|
|
14272
|
+
"valueType": "entity_id",
|
|
14273
|
+
"targetProfileSlug": "audience",
|
|
14274
|
+
"inputType": "entity_select"
|
|
14275
|
+
},
|
|
14276
|
+
{
|
|
14277
|
+
"slug": "angle-about-offer",
|
|
14278
|
+
"label": "About the offer",
|
|
14279
|
+
"valueType": "entity_id",
|
|
14280
|
+
"targetProfileSlug": "offer",
|
|
14281
|
+
"inputType": "entity_select"
|
|
14282
|
+
},
|
|
14283
|
+
{
|
|
14284
|
+
"slug": "angle-lead-with",
|
|
14285
|
+
"label": "Lead with",
|
|
14286
|
+
"valueType": "string",
|
|
14287
|
+
"inputType": "textarea"
|
|
14288
|
+
},
|
|
14289
|
+
{
|
|
14290
|
+
"slug": "angle-offer",
|
|
14291
|
+
"label": "Offer",
|
|
14292
|
+
"valueType": "string",
|
|
14293
|
+
"inputType": "textarea",
|
|
14294
|
+
"placeholder": "e.g. Fixed small set-up, tool costs listed apart"
|
|
14295
|
+
},
|
|
14296
|
+
{
|
|
14297
|
+
"slug": "angle-proof",
|
|
14298
|
+
"label": "Proof",
|
|
14299
|
+
"valueType": "string",
|
|
14300
|
+
"inputType": "textarea"
|
|
14301
|
+
},
|
|
14302
|
+
{
|
|
14303
|
+
"slug": "angle-avoid",
|
|
14304
|
+
"label": "Avoid",
|
|
14305
|
+
"valueType": "string",
|
|
14306
|
+
"inputType": "textarea"
|
|
14307
|
+
},
|
|
14308
|
+
{
|
|
14309
|
+
"slug": "angle-tone",
|
|
14310
|
+
"label": "Tone",
|
|
14311
|
+
"valueType": "string",
|
|
14312
|
+
"inputType": "text"
|
|
14313
|
+
},
|
|
14314
|
+
{
|
|
14315
|
+
"slug": "angle-channel",
|
|
14316
|
+
"label": "Channel",
|
|
14317
|
+
"valueType": "string",
|
|
14318
|
+
"inputType": "text",
|
|
14319
|
+
"placeholder": "e.g. LinkedIn, else email"
|
|
14320
|
+
},
|
|
14321
|
+
{
|
|
14322
|
+
"slug": "order",
|
|
14323
|
+
"label": "Order",
|
|
14324
|
+
"valueType": "number",
|
|
14325
|
+
"inputType": "number"
|
|
14326
|
+
}
|
|
14327
|
+
]
|
|
14213
14328
|
}
|
|
14214
14329
|
],
|
|
14215
14330
|
"entityLinks": [
|
|
@@ -14296,6 +14411,12 @@ const DATA = {
|
|
|
14296
14411
|
"targetProfileSlug": "audience",
|
|
14297
14412
|
"type": "targets",
|
|
14298
14413
|
"label": "Targets"
|
|
14414
|
+
},
|
|
14415
|
+
{
|
|
14416
|
+
"sourceProfileSlug": "outreach-angle",
|
|
14417
|
+
"targetProfileSlug": "outreach-angle",
|
|
14418
|
+
"type": "revises",
|
|
14419
|
+
"label": "Revises"
|
|
14299
14420
|
}
|
|
14300
14421
|
],
|
|
14301
14422
|
"views": [
|
|
@@ -14366,6 +14487,16 @@ const DATA = {
|
|
|
14366
14487
|
"sentDate"
|
|
14367
14488
|
]
|
|
14368
14489
|
}
|
|
14490
|
+
},
|
|
14491
|
+
{
|
|
14492
|
+
"name": "Health",
|
|
14493
|
+
"slug": "health",
|
|
14494
|
+
"type": "bento",
|
|
14495
|
+
"description": "The health of your sales at a glance, one tile per question you asked, each one approved by you.",
|
|
14496
|
+
"config": {
|
|
14497
|
+
"layout": "bento",
|
|
14498
|
+
"blocks": []
|
|
14499
|
+
}
|
|
14369
14500
|
}
|
|
14370
14501
|
],
|
|
14371
14502
|
"onboarding": {
|
|
@@ -14996,7 +15127,7 @@ const DATA = {
|
|
|
14996
15127
|
{
|
|
14997
15128
|
"name": "Draft a first message",
|
|
14998
15129
|
"description": "Draft one personal first message for a lead, citing its buying signal or a past exchange, in the person's language, as a proposed message in their channel for a person to approve; the agent never sends.",
|
|
14999
|
-
"goalTemplate": "Draft the first message to the lead {lead} on {channel}. READ: the lead's score fields (icpScore, buyingSignal, buyingSignalSource, qualificationNotes) as they are, never rescoring them; its channels, past messages and notes in the pod; and the outreach campaign given ({campaign}), if any: its value proposition and call to action are the angle. WHO: a person lead is written to directly; for a company lead, write to the person who decides there (from the pod, else its public decider), and when no decider is known ask the person who to write to. DRAFT: one first message on channel {channel}, in the campaign's angle when one is given. DRAFT RULES: each draft is one proposed message in the channel of the person it is written to, filed through the pod's send door: run messaging.send with to = that person's entity id (for a company lead, its decider: when that person is not in the pod, create them through the entity door with only their own fields, such as name, role and LinkedIn URL, never the company's website, domain or email), text = the message, and provider linkedin or email. Read their channel first (synap_get_channel, mode person) for what was already said. The pod files it for a person to review in that channel; it goes out only once they approve it. Never call a tool's own send verb (Unipile, Gmail), never create an outreach touch, a note or a task holding the message, and never use synap_capture for it. Never send. A LinkedIn message is drafted whatever their reach: the pod holds a draft to someone who is not a connection yet, shows it with the next step and lets it go out once they connect, so never hold a draft back for want of a connection. Draft it, then, in this order: (1) a person with no linkedinUrl: find their profile with linkedin_find_profile (their full name and company); on a match, propose its linkedinUrl and linkedinProviderId on the person for a person to approve; on none or several, ask the person to choose among its candidates (the process \"Find their LinkedIn\" does this for one lead). (2) Read their linkedinConnection, which only the pod writes (never set it or linkedinInvitedAt): connected, nothing more; none or not set, ask to connect with linkedin_send_invite (it refuses someone already connected or already invited: then nothing more); pending, the draft waits for them; ignored, draft by email instead when they have an email address. While the draft waits for them to connect, set the lead's nextAction to \"Wait for <name> to accept the LinkedIn request\" and its nextActionAt 7 days later. An email message needs none of this.
|
|
15130
|
+
"goalTemplate": "Draft the first message to the lead {lead} on {channel}. READ: the lead's score fields (icpScore, buyingSignal, buyingSignalSource, qualificationNotes) as they are, never rescoring them; its channels, past messages and notes in the pod; and the outreach campaign given ({campaign}), if any: its value proposition and call to action are the angle. WHO: a person lead is written to directly; for a company lead, write to the person who decides there (from the pod, else its public decider), and when no decider is known ask the person who to write to. DRAFT: one first message on channel {channel}, in the campaign's angle when one is given. DRAFT RULES: each draft is one proposed message in the channel of the person it is written to, filed through the pod's send door: run messaging.send with to = that person's entity id (for a company lead, its decider: when that person is not in the pod, create them through the entity door with only their own fields, such as name, role and LinkedIn URL, never the company's website, domain or email), text = the message, and provider linkedin or email. Read their channel first (synap_get_channel, mode person) for what was already said. The pod files it for a person to review in that channel; it goes out only once they approve it. Never call a tool's own send verb (Unipile, Gmail), never create an outreach touch, a note or a task holding the message, and never use synap_capture for it. Never send. A LinkedIn message is drafted whatever their reach: the pod holds a draft to someone who is not a connection yet, shows it with the next step and lets it go out once they connect, so never hold a draft back for want of a connection. Draft it, then, in this order: (1) a person with no linkedinUrl: find their profile with linkedin_find_profile (their full name and company); on a match, propose its linkedinUrl and linkedinProviderId on the person for a person to approve; on none or several, ask the person to choose among its candidates (the process \"Find their LinkedIn\" does this for one lead). (2) Read their linkedinConnection, which only the pod writes (never set it or linkedinInvitedAt): connected, nothing more; none or not set, ask to connect with linkedin_send_invite (it refuses someone already connected or already invited: then nothing more); pending, the draft waits for them; ignored, draft by email instead when they have an email address. While the draft waits for them to connect, set the lead's nextAction to \"Wait for <name> to accept the LinkedIn request\" and its nextActionAt 7 days later. An email message needs none of this. RULES: follow the rules this process follows, in order: Voice, then By kind of lead (the first row that fits the lead; a given campaign's angle comes first). A rule shown as not available is left out: say so. Draft one message only: a person reviews it in the channel, edits it if needed and approves it. NEXT ACTION: set the lead's nextAction to \"Send the first message to <name> on LinkedIn\" (\"Send the first message to <name> by email\" on email), naming the person written to, and its nextActionAt to today. Never move the lead's stage while drafting. SENT: once the message is sent, follow the cadence, so \"Follow up on leads in outreach\" drafts the next one. CADENCE: when a message is sent (a person approved its proposed message, so it is an outbound message in the channel), set its lead's lastContactedAt to the sent day, count the messages sent to the lead (the outbound messages in its channels, read with synap_get_channel mode person: for a company lead, the channels of the person written to there), and set the lead's next action: after the first message, nextAction \"Follow up with <name> if no reply\" and nextActionAt the sent day + 3 days; after the first follow-up, nextAction \"Follow up with <name> a last time if no reply\" and nextActionAt the sent day + 7 days; after the second follow-up, nextAction \"No reply after two follow-ups: nurture or drop <name>\" and nextActionAt the sent day + 7 days, and when that date passes with no reply, \"Follow up on leads in outreach\" proposes nurturing. Never a third follow-up. Propose moving a lead at new or researching to outreach through the status door, with its expected status. A reply stops the cadence: a reply is an inbound message after our last outbound one in the channel, and \"Follow up on leads in outreach\" reads it and proposes the next step.",
|
|
15000
15131
|
"subjectProfile": {
|
|
15001
15132
|
"profileSlug": "lead"
|
|
15002
15133
|
},
|
|
@@ -15031,6 +15162,22 @@ const DATA = {
|
|
|
15031
15162
|
],
|
|
15032
15163
|
"executor": "is-agent",
|
|
15033
15164
|
"status": "active",
|
|
15165
|
+
"guidance": [
|
|
15166
|
+
{
|
|
15167
|
+
"ref": "kind:brand-voice-guide",
|
|
15168
|
+
"label": "Voice",
|
|
15169
|
+
"where": {
|
|
15170
|
+
"voice-context": [
|
|
15171
|
+
"general",
|
|
15172
|
+
"outreach"
|
|
15173
|
+
]
|
|
15174
|
+
}
|
|
15175
|
+
},
|
|
15176
|
+
{
|
|
15177
|
+
"ref": "kind:outreach-angle",
|
|
15178
|
+
"label": "By kind of lead"
|
|
15179
|
+
}
|
|
15180
|
+
],
|
|
15034
15181
|
"grants": [
|
|
15035
15182
|
"entity.create"
|
|
15036
15183
|
],
|
|
@@ -15063,8 +15210,8 @@ const DATA = {
|
|
|
15063
15210
|
}
|
|
15064
15211
|
},
|
|
15065
15212
|
{
|
|
15066
|
-
"key": "first-message-
|
|
15067
|
-
"statement": "The message
|
|
15213
|
+
"key": "first-message-rules",
|
|
15214
|
+
"statement": "The message follows the rules this process follows, as its instructions showed them (the approved Voice, then the first By kind of lead row that fits the lead, or the campaign's angle when one was given).",
|
|
15068
15215
|
"check": {
|
|
15069
15216
|
"kind": "judge"
|
|
15070
15217
|
}
|
|
@@ -15291,7 +15438,7 @@ const DATA = {
|
|
|
15291
15438
|
{
|
|
15292
15439
|
"name": "Follow up on leads in outreach",
|
|
15293
15440
|
"description": "Each weekday, read the channels of the leads in outreach; summarise a reply and propose the next step, or, when the follow-up is due with no reply, draft the next message in the angle of its outreach campaign as a proposed message for a person to approve; the agent never sends.",
|
|
15294
|
-
"goalTemplate": "Follow up on the leads in outreach. For each, read its channels (synap_get_channel, mode person: for a company lead, the channels of the person who decides there) and its notes. A REPLY is an inbound message after our last outbound one in a channel. With a reply, draft nothing: summarise it for a person; when they show interest, propose the next step (prepare the free estimate, \"Prepare a pre-sale estimate\", or book a meeting) and propose moving the lead to engaged; when they decline, propose nurturing or disqualified with their reason (in disqualificationReason). Unless you propose dropping them, write the next step on the lead as nextAction, one imperative line, and nextActionAt, the date they named or today. Never open a deal and never answer the reply yourself; a person does. With no reply, and only when the lead's next action date is today or past and no proposed message to it is still waiting, draft the next message, to the lead (for a company, the person who decides there) and in the angle of the lead's outreach campaign: follow its value proposition and call to action
|
|
15441
|
+
"goalTemplate": "Follow up on the leads in outreach. For each, read its channels (synap_get_channel, mode person: for a company lead, the channels of the person who decides there) and its notes. A REPLY is an inbound message after our last outbound one in a channel. With a reply, draft nothing: summarise it for a person; when they show interest, propose the next step (prepare the free estimate, \"Prepare a pre-sale estimate\", or book a meeting) and propose moving the lead to engaged; when they decline, propose nurturing or disqualified with their reason (in disqualificationReason). Unless you propose dropping them, write the next step on the lead as nextAction, one imperative line, and nextActionAt, the date they named or today. Never open a deal and never answer the reply yourself; a person does. With no reply, and only when the lead's next action date is today or past and no proposed message to it is still waiting, draft the next message, to the lead (for a company, the person who decides there) and in the angle of the lead's outreach campaign: follow its value proposition and call to action. With no campaign and no By kind of lead row that fits, ask the person which campaign. Draft at most two follow-ups per lead: a lead already sent two follow-ups gets no draft, never a third follow-up; when its last date passes in silence, propose moving it to nurturing through the status door, with its expected status. DRAFT RULES: each draft is one proposed message in the channel of the person it is written to, filed through the pod's send door: run messaging.send with to = that person's entity id (for a company lead, its decider: when that person is not in the pod, create them through the entity door with only their own fields, such as name, role and LinkedIn URL, never the company's website, domain or email), text = the message, and provider linkedin or email. Read their channel first (synap_get_channel, mode person) for what was already said. The pod files it for a person to review in that channel; it goes out only once they approve it. Never call a tool's own send verb (Unipile, Gmail), never create an outreach touch, a note or a task holding the message, and never use synap_capture for it. Never send. A LinkedIn message is drafted whatever their reach: the pod holds a draft to someone who is not a connection yet, shows it with the next step and lets it go out once they connect, so never hold a draft back for want of a connection. Draft it, then, in this order: (1) a person with no linkedinUrl: find their profile with linkedin_find_profile (their full name and company); on a match, propose its linkedinUrl and linkedinProviderId on the person for a person to approve; on none or several, ask the person to choose among its candidates (the process \"Find their LinkedIn\" does this for one lead). (2) Read their linkedinConnection, which only the pod writes (never set it or linkedinInvitedAt): connected, nothing more; none or not set, ask to connect with linkedin_send_invite (it refuses someone already connected or already invited: then nothing more); pending, the draft waits for them; ignored, draft by email instead when they have an email address. While the draft waits for them to connect, set the lead's nextAction to \"Wait for <name> to accept the LinkedIn request\" and its nextActionAt 7 days later. An email message needs none of this. RULES: follow the rules this process follows, in order: Voice, then By kind of lead (the first row that fits the lead; a given campaign's angle comes first). A rule shown as not available is left out: say so. For each draft, set the lead's `nextAction` to send it (e.g. \"Send the drafted message to Ana on LinkedIn\") and `nextActionAt` to today. The person reviews each proposed message in its channel, edits it if needed and approves it; the agent never sends. CADENCE: when a message is sent (a person approved its proposed message, so it is an outbound message in the channel), set its lead's lastContactedAt to the sent day, count the messages sent to the lead (the outbound messages in its channels, read with synap_get_channel mode person: for a company lead, the channels of the person written to there), and set the lead's next action: after the first message, nextAction \"Follow up with <name> if no reply\" and nextActionAt the sent day + 3 days; after the first follow-up, nextAction \"Follow up with <name> a last time if no reply\" and nextActionAt the sent day + 7 days; after the second follow-up, nextAction \"No reply after two follow-ups: nurture or drop <name>\" and nextActionAt the sent day + 7 days, and when that date passes with no reply, \"Follow up on leads in outreach\" proposes nurturing. Never a third follow-up. Propose moving a lead at new or researching to outreach through the status door, with its expected status. A reply stops the cadence: a reply is an inbound message after our last outbound one in the channel, and \"Follow up on leads in outreach\" reads it and proposes the next step.",
|
|
15295
15442
|
"subjectProfile": {
|
|
15296
15443
|
"profileSlug": "lead"
|
|
15297
15444
|
},
|
|
@@ -15309,6 +15456,22 @@ const DATA = {
|
|
|
15309
15456
|
],
|
|
15310
15457
|
"executor": "is-agent",
|
|
15311
15458
|
"status": "active",
|
|
15459
|
+
"guidance": [
|
|
15460
|
+
{
|
|
15461
|
+
"ref": "kind:brand-voice-guide",
|
|
15462
|
+
"label": "Voice",
|
|
15463
|
+
"where": {
|
|
15464
|
+
"voice-context": [
|
|
15465
|
+
"general",
|
|
15466
|
+
"outreach"
|
|
15467
|
+
]
|
|
15468
|
+
}
|
|
15469
|
+
},
|
|
15470
|
+
{
|
|
15471
|
+
"ref": "kind:outreach-angle",
|
|
15472
|
+
"label": "By kind of lead"
|
|
15473
|
+
}
|
|
15474
|
+
],
|
|
15312
15475
|
"expectedOutputs": [
|
|
15313
15476
|
{
|
|
15314
15477
|
"kind": "messaging",
|
|
@@ -15332,7 +15495,7 @@ const DATA = {
|
|
|
15332
15495
|
},
|
|
15333
15496
|
{
|
|
15334
15497
|
"key": "followup-angle",
|
|
15335
|
-
"statement": "Each draft follows the angle of the lead's outreach campaign and its call to action.",
|
|
15498
|
+
"statement": "Each draft follows the angle of the lead's outreach campaign and its call to action, or, with no campaign, the first By kind of lead row that fits the lead, and the approved Voice.",
|
|
15336
15499
|
"check": {
|
|
15337
15500
|
"kind": "judge"
|
|
15338
15501
|
}
|
|
@@ -15377,7 +15540,7 @@ const DATA = {
|
|
|
15377
15540
|
{
|
|
15378
15541
|
"name": "Personalized Outreach",
|
|
15379
15542
|
"description": "Run one outreach campaign — write the angle and its offer, pick the people, draft one personal first message each as a proposed message in their channel; a person approves the list, then approves each message, which the pod sends.",
|
|
15380
|
-
"goalTemplate": "Run this outreach campaign ({campaign}) on {channel}; each stage moves its status. If its type is not outreach, stop and say so. PREPARE: write the target audience, the value proposition and the call to action. Pick the people to reach from the pod (and public sources when the pod has too few), resolving each one before creating anything, link each as a member of the campaign with the lead role (lead source cold-outreach when it has none), and for each draft one first message to that person in this campaign's angle
|
|
15543
|
+
"goalTemplate": "Run this outreach campaign ({campaign}) on {channel}; each stage moves its status. If its type is not outreach, stop and say so. PREPARE: write the target audience, the value proposition and the call to action (from the By kind of lead row that fits the audience, when one does). Pick the people to reach from the pod (and public sources when the pod has too few), resolving each one before creating anything, link each as a member of the campaign with the lead role (lead source cold-outreach when it has none), and for each draft one first message to that person in this campaign's angle. DRAFT RULES: each draft is one proposed message in the channel of the person it is written to, filed through the pod's send door: run messaging.send with to = that person's entity id (for a company lead, its decider: when that person is not in the pod, create them through the entity door with only their own fields, such as name, role and LinkedIn URL, never the company's website, domain or email), text = the message, and provider linkedin or email. Read their channel first (synap_get_channel, mode person) for what was already said. The pod files it for a person to review in that channel; it goes out only once they approve it. Never call a tool's own send verb (Unipile, Gmail), never create an outreach touch, a note or a task holding the message, and never use synap_capture for it. Never send. A LinkedIn message is drafted whatever their reach: the pod holds a draft to someone who is not a connection yet, shows it with the next step and lets it go out once they connect, so never hold a draft back for want of a connection. Draft it, then, in this order: (1) a person with no linkedinUrl: find their profile with linkedin_find_profile (their full name and company); on a match, propose its linkedinUrl and linkedinProviderId on the person for a person to approve; on none or several, ask the person to choose among its candidates (the process \"Find their LinkedIn\" does this for one lead). (2) Read their linkedinConnection, which only the pod writes (never set it or linkedinInvitedAt): connected, nothing more; none or not set, ask to connect with linkedin_send_invite (it refuses someone already connected or already invited: then nothing more); pending, the draft waits for them; ignored, draft by email instead when they have an email address. While the draft waits for them to connect, set the lead's nextAction to \"Wait for <name> to accept the LinkedIn request\" and its nextActionAt 7 days later. An email message needs none of this. RULES: follow the rules this process follows, in order: Voice, then By kind of lead (the first row that fits the lead; a given campaign's angle comes first). A rule shown as not available is left out: say so. START: a person approves the audience, the offer and the list, then reviews each proposed message in its channel and approves it; nothing goes out before they approve it, and the agent never sends. Once a message is sent, follow the cadence, so \"Follow up on leads in outreach\" drafts the next one. CADENCE: when a message is sent (a person approved its proposed message, so it is an outbound message in the channel), set its lead's lastContactedAt to the sent day, count the messages sent to the lead (the outbound messages in its channels, read with synap_get_channel mode person: for a company lead, the channels of the person written to there), and set the lead's next action: after the first message, nextAction \"Follow up with <name> if no reply\" and nextActionAt the sent day + 3 days; after the first follow-up, nextAction \"Follow up with <name> a last time if no reply\" and nextActionAt the sent day + 7 days; after the second follow-up, nextAction \"No reply after two follow-ups: nurture or drop <name>\" and nextActionAt the sent day + 7 days, and when that date passes with no reply, \"Follow up on leads in outreach\" proposes nurturing. Never a third follow-up. Propose moving a lead at new or researching to outreach through the status door, with its expected status. A reply stops the cadence: a reply is an inbound message after our last outbound one in the channel, and \"Follow up on leads in outreach\" reads it and proposes the next step. FINISH: when every person written to has replied or their follow-ups ended in silence, record in the campaign notes how many messages were sent (the outbound messages in their channels), how many got a reply and how many led to a booked meeting. Pausing or cancelling is a person's call.",
|
|
15381
15544
|
"subjectProfile": {
|
|
15382
15545
|
"profileSlug": "campaign"
|
|
15383
15546
|
},
|
|
@@ -15407,6 +15570,22 @@ const DATA = {
|
|
|
15407
15570
|
],
|
|
15408
15571
|
"executor": "is-agent",
|
|
15409
15572
|
"status": "active",
|
|
15573
|
+
"guidance": [
|
|
15574
|
+
{
|
|
15575
|
+
"ref": "kind:brand-voice-guide",
|
|
15576
|
+
"label": "Voice",
|
|
15577
|
+
"where": {
|
|
15578
|
+
"voice-context": [
|
|
15579
|
+
"general",
|
|
15580
|
+
"outreach"
|
|
15581
|
+
]
|
|
15582
|
+
}
|
|
15583
|
+
},
|
|
15584
|
+
{
|
|
15585
|
+
"ref": "kind:outreach-angle",
|
|
15586
|
+
"label": "By kind of lead"
|
|
15587
|
+
}
|
|
15588
|
+
],
|
|
15410
15589
|
"requiredIntents": [
|
|
15411
15590
|
"find_people",
|
|
15412
15591
|
"enrich_entity"
|
|
@@ -15437,8 +15616,8 @@ const DATA = {
|
|
|
15437
15616
|
}
|
|
15438
15617
|
},
|
|
15439
15618
|
{
|
|
15440
|
-
"key": "outreach-
|
|
15441
|
-
"statement": "Every drafted message
|
|
15619
|
+
"key": "outreach-rules",
|
|
15620
|
+
"statement": "Every drafted message follows the rules this process follows, as its instructions showed them (the approved Voice, in this campaign's angle).",
|
|
15442
15621
|
"check": {
|
|
15443
15622
|
"kind": "judge"
|
|
15444
15623
|
}
|
|
@@ -15664,6 +15843,136 @@ const DATA = {
|
|
|
15664
15843
|
]
|
|
15665
15844
|
}
|
|
15666
15845
|
]
|
|
15846
|
+
},
|
|
15847
|
+
{
|
|
15848
|
+
"name": "Propose my rules from my sent messages",
|
|
15849
|
+
"description": "Propose the first rules your drafts follow, the voice (say, don't say) and what to lead with by kind of lead, from the rules your drafters held until now and the messages you sent; they stay drafts until you make them current.",
|
|
15850
|
+
"goalTemplate": "Propose the rules the CRM drafters write by, as drafts for a person to make current. READ: the current and draft voice guides (synap_get_entities profileSlug brand-voice-guide) and By kind of lead rows (profileSlug outreach-angle), the audiences and offers, and the messages already sent: for the leads with a lastContactedAt, newest first, at most 20, their channels (synap_get_channel, mode person) and the outbound messages they show. SEED: the drafters' rules until now, word for word: \"Its message is personal: it cites the buying signal and what it showed, or a past exchange, never a generic template; short; in the person's language, French by default, and in French it says vous. It offers one useful next step, never pressure.\" VOICE: one voice guide, context outreach, status draft, in the Brand Library space: its Do lines (what to say) and Don't lines (what never to say), one per line, start from the seed and add only what at least two sent messages show; Source IDs lists the messages' channel or entity ids. BY KIND OF LEAD: one row per kind of lead the sent messages show, status draft: If the lead (the condition in words), its audience and offer when one fits, Lead with, Offer, Proof, Avoid, Tone, Channel and an order, the most specific first; end with an \"Anything else\" row with the highest order. Never invent a proof: leave it empty and say so. When a current version exists, the draft is a new record that revises it (a revises edge to it) and says what changed; never edit or retire a current one. DRAFTS ONLY: never set a voice guide to approved or deprecated, nor a row to current or retired; a person does, on the Brand and communication page. With fewer than three sent messages, propose the voice from the seed alone and one \"Anything else\" row, and say so. FINISH: list each draft with the messages it came from.",
|
|
15851
|
+
"executor": "is-agent",
|
|
15852
|
+
"status": "active",
|
|
15853
|
+
"grants": [
|
|
15854
|
+
"entity.create"
|
|
15855
|
+
],
|
|
15856
|
+
"expectedOutputs": [
|
|
15857
|
+
{
|
|
15858
|
+
"kind": "brand-voice-guide",
|
|
15859
|
+
"label": "Draft outreach voice",
|
|
15860
|
+
"relationToSubject": "none"
|
|
15861
|
+
},
|
|
15862
|
+
{
|
|
15863
|
+
"kind": "outreach-angle",
|
|
15864
|
+
"label": "Draft \"By kind of lead\" rows",
|
|
15865
|
+
"relationToSubject": "none"
|
|
15866
|
+
}
|
|
15867
|
+
],
|
|
15868
|
+
"stages": [
|
|
15869
|
+
{
|
|
15870
|
+
"key": "draft",
|
|
15871
|
+
"name": "Propose the drafts",
|
|
15872
|
+
"category": "started",
|
|
15873
|
+
"goal": "Read the current rules, the audiences and offers and the sent messages; write one draft outreach voice guide from the seed and the messages, and one draft By kind of lead row per kind of lead, ending with an \"Anything else\" row.",
|
|
15874
|
+
"criteria": [
|
|
15875
|
+
{
|
|
15876
|
+
"key": "rules-drafts-only",
|
|
15877
|
+
"statement": "Every voice guide and By kind of lead row this run wrote is a draft (voice status draft, angle status draft), and no approved voice guide or current row was edited, approved or retired.",
|
|
15878
|
+
"check": {
|
|
15879
|
+
"kind": "judge"
|
|
15880
|
+
}
|
|
15881
|
+
},
|
|
15882
|
+
{
|
|
15883
|
+
"key": "rules-seeded",
|
|
15884
|
+
"statement": "The draft voice holds the seed lines (cite the signal or a past exchange, never a generic template, short, the person's language, French by default with vous, one useful next step, never pressure) as Do and Don't lines, plus only what at least two sent messages show.",
|
|
15885
|
+
"check": {
|
|
15886
|
+
"kind": "judge"
|
|
15887
|
+
}
|
|
15888
|
+
},
|
|
15889
|
+
{
|
|
15890
|
+
"key": "rules-rows-sourced",
|
|
15891
|
+
"statement": "Each By kind of lead row names the sent messages it came from, has an order, and the last one is an \"Anything else\" row; no proof is invented.",
|
|
15892
|
+
"check": {
|
|
15893
|
+
"kind": "judge"
|
|
15894
|
+
}
|
|
15895
|
+
}
|
|
15896
|
+
]
|
|
15897
|
+
},
|
|
15898
|
+
{
|
|
15899
|
+
"key": "review",
|
|
15900
|
+
"name": "Person makes them current",
|
|
15901
|
+
"category": "completed",
|
|
15902
|
+
"goal": "The person reads the drafts, edits them if needed and makes each one current (a voice guide approved, a row current) on the Brand and communication page or in the pod, or drops it.",
|
|
15903
|
+
"gate": {
|
|
15904
|
+
"kind": "human"
|
|
15905
|
+
},
|
|
15906
|
+
"onFail": {
|
|
15907
|
+
"toStage": "draft"
|
|
15908
|
+
}
|
|
15909
|
+
}
|
|
15910
|
+
]
|
|
15911
|
+
},
|
|
15912
|
+
{
|
|
15913
|
+
"name": "Propose a Health cell",
|
|
15914
|
+
"description": "Answer one question about your sales with a tile on the Health dashboard; the AI writes the tile and you approve it before it shows. Run by one of your agents for now (Synap AI cannot place a tile yet).",
|
|
15915
|
+
"goalTemplate": "Propose one Health tile that answers: {question}. FIND THE VIEW: in the CRM space, the bento view named Health (synap_list_views with the space's workspaceId, type bento). When the space has none, stop and say so: never create another dashboard. READ FIRST: what already sits on Health (its config.blocks: each widget tile names a cell by widgetType) and the space's cells (synap_list_widgets); when a tile already answers the question, say which one and stop. DATA: decide where each number comes from. A cell reads the pod ONLY through the cell bridge, at render time: window.synap.query(op, params), with an op of the bridge table (entities.list, entities.get, views.list, profiles.list, lifecycle.board, lifecycle.throughput, attention.needsYou, attention.count, sessions.list, lifecycle.home, lifecycle.moving, documents.get, lens.page) and only that op's params; the host stamps the space, so never put a workspaceId, a token, a pod URL or a fetch in the page. What the bridge reads stays live: query it in the page, never paste its rows. What it cannot read yet (messages, replies, sends: the bridge has no message op) you read now with your own tools (synap_get_channel, synap_get_entities) and write into the page as a snapshot, with the date it was taken shown on the tile (for example \"au 8 novembre\") and how it was counted. Never invent a number: a figure you cannot source is left out and the tile says what is missing. THE PAGE: one self-contained HTML page, inline script and style only (no CDN, no remote font or image: the frame's CSP refuses them), that answers the question in one glance (a number, a short table or a small chart), in the person's language (French by default), readable in light and dark, and that shows an error, never an empty tile, when a query fails. FILE IT: synap_create_cell with name = a short title of the question, rendererSource = the page, workspaceId = the CRM space (never pod-wide: the CRM app reads only its space's cells), contentKind widget, placeOn = {viewId: the Health view's id}, and reasoning = the question in the person's words. It comes back proposed: that is success, never retry it; the person approves it in the CRM or the pod, which defines the cell and puts its tile on Health in one act. One cell per run.",
|
|
15916
|
+
"params": [
|
|
15917
|
+
{
|
|
15918
|
+
"name": "question",
|
|
15919
|
+
"type": "text",
|
|
15920
|
+
"label": "What should the tile answer?",
|
|
15921
|
+
"required": true
|
|
15922
|
+
}
|
|
15923
|
+
],
|
|
15924
|
+
"executor": "external-agent",
|
|
15925
|
+
"status": "active",
|
|
15926
|
+
"stages": [
|
|
15927
|
+
{
|
|
15928
|
+
"key": "draft",
|
|
15929
|
+
"name": "Write the tile",
|
|
15930
|
+
"category": "started",
|
|
15931
|
+
"goal": "Find the Health view, check no tile already answers the question, write one self-contained HTML page that answers it (live through the cell bridge, a dated snapshot for what the bridge cannot read), and file it with synap_create_cell, contentKind widget, workspaceId the CRM space and placeOn the Health view.",
|
|
15932
|
+
"expectedOutputs": [
|
|
15933
|
+
{
|
|
15934
|
+
"kind": "cell",
|
|
15935
|
+
"label": "Proposed Health tile",
|
|
15936
|
+
"relationToSubject": "none"
|
|
15937
|
+
}
|
|
15938
|
+
],
|
|
15939
|
+
"criteria": [
|
|
15940
|
+
{
|
|
15941
|
+
"key": "health-cell-placed",
|
|
15942
|
+
"statement": "One cell/define proposal was filed through synap_create_cell with contentKind widget, workspaceId the CRM space and placeOn the Health view's id, and no other dashboard or view was created.",
|
|
15943
|
+
"check": {
|
|
15944
|
+
"kind": "judge"
|
|
15945
|
+
}
|
|
15946
|
+
},
|
|
15947
|
+
{
|
|
15948
|
+
"key": "health-cell-bridge-only",
|
|
15949
|
+
"statement": "The page reads pod data only through window.synap.query with ops of the cell bridge table, and holds no token, pod URL, workspaceId, fetch or remote script, style, font or image.",
|
|
15950
|
+
"check": {
|
|
15951
|
+
"kind": "judge"
|
|
15952
|
+
}
|
|
15953
|
+
},
|
|
15954
|
+
{
|
|
15955
|
+
"key": "health-cell-sourced",
|
|
15956
|
+
"statement": "Every number the page shows is either queried live through the bridge or a snapshot shown with the date it was taken and how it was counted; no number is invented.",
|
|
15957
|
+
"check": {
|
|
15958
|
+
"kind": "judge"
|
|
15959
|
+
}
|
|
15960
|
+
}
|
|
15961
|
+
]
|
|
15962
|
+
},
|
|
15963
|
+
{
|
|
15964
|
+
"key": "approve",
|
|
15965
|
+
"name": "You approve the tile",
|
|
15966
|
+
"category": "completed",
|
|
15967
|
+
"goal": "The person previews the proposed tile and approves it (the cell is defined and its tile placed on Health) or rejects it.",
|
|
15968
|
+
"gate": {
|
|
15969
|
+
"kind": "human"
|
|
15970
|
+
},
|
|
15971
|
+
"onFail": {
|
|
15972
|
+
"toStage": "draft"
|
|
15973
|
+
}
|
|
15974
|
+
}
|
|
15975
|
+
]
|
|
15667
15976
|
}
|
|
15668
15977
|
],
|
|
15669
15978
|
"actionPlacements": [
|
package/src/types.ts
CHANGED
|
@@ -584,6 +584,11 @@ export interface TemplatePlaybook {
|
|
|
584
584
|
* closed `capability_intents` vocabulary (`@synap-core/types/capability-intents`).
|
|
585
585
|
*/
|
|
586
586
|
requiredIntents?: string[];
|
|
587
|
+
/**
|
|
588
|
+
* The rules the process follows, in order (pod `playbookGuidanceSchema`,
|
|
589
|
+
* backend#924): `{ ref: "kind:<slug>" | "skill:<slug>", label?, when?, where? }`.
|
|
590
|
+
*/
|
|
591
|
+
guidance?: Array<{ ref: string; label?: string; when?: string; where?: Record<string, string[]> }>;
|
|
587
592
|
/**
|
|
588
593
|
* DECLARATIONS of when the process starts. Compiled at install/apply into
|
|
589
594
|
* governed rules through the pod's ONE rule door and linked in
|