@agifyai/leadify-mcp 2.0.0 → 3.0.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/dist/tools/pipeline.js +11 -1
- package/package.json +1 -1
package/dist/tools/pipeline.js
CHANGED
|
@@ -15,8 +15,17 @@ export function registerPipelineTools(server) {
|
|
|
15
15
|
"card_* sequence fields to lead.data). " +
|
|
16
16
|
"The 'force' flag (default false) bypasses the 'already has a message?' guard — " +
|
|
17
17
|
"useful for re-generating on an already-processed lead. " +
|
|
18
|
+
"REQUIRES a 'campaign_id': the pilot slug (e.g. 'agify-medtech-fr-v2') that selects " +
|
|
19
|
+
"which copywriting pilot the writer follows. It is NOT a DB id — it must match a pilot " +
|
|
20
|
+
"authored in the Trigger.dev repo (pilots/{campaign_id}.md + .json), and that pilot's " +
|
|
21
|
+
".json is paired to the lead's group. The skill operator picks it; there is no default. " +
|
|
18
22
|
"Waits up to 120s for the remote agent to complete.", {
|
|
19
23
|
lead_id: z.string().describe("ID of the lead to generate a message for."),
|
|
24
|
+
campaign_id: z
|
|
25
|
+
.string()
|
|
26
|
+
.describe("Pilot slug driving the copywriting (e.g. 'agify-medtech-fr-v2'). NOT a DB campaign id. " +
|
|
27
|
+
"Must match a pilot file pair in the Trigger.dev repo whose .json is paired to this " +
|
|
28
|
+
"lead's group. The writer hard-fails if the pilot is missing."),
|
|
20
29
|
dryrun: z
|
|
21
30
|
.boolean()
|
|
22
31
|
.optional()
|
|
@@ -30,10 +39,11 @@ export function registerPipelineTools(server) {
|
|
|
30
39
|
.default(false)
|
|
31
40
|
.describe("true = bypass the 'already has a message?' check so you can re-generate. " +
|
|
32
41
|
"false (default) = normal behaviour: skip leads that already have card_message."),
|
|
33
|
-
}, async ({ lead_id, dryrun, force }) => {
|
|
42
|
+
}, async ({ lead_id, campaign_id, dryrun, force }) => {
|
|
34
43
|
try {
|
|
35
44
|
const data = await getClient().post("/api/trigger-outreach", {
|
|
36
45
|
leadId: lead_id,
|
|
46
|
+
campaignId: campaign_id,
|
|
37
47
|
dryrun,
|
|
38
48
|
force,
|
|
39
49
|
});
|