Skip to content

Commit b25989b

Browse files
committed
fix: add required template settings to workflow push step tool
1 parent 9b4294d commit b25989b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/cold-gifts-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@knocklabs/agent-toolkit": patch
3+
---
4+
5+
Adds required template settings parameter to `createOrUpdatePushStepInWorkflow`

src/lib/tools/workflow-steps.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ const createOrUpdatePushStepInWorkflow = KnockTool({
407407
template: {
408408
title: params.title,
409409
text_body: params.content,
410+
settings: {
411+
delivery_type: "content",
412+
},
410413
} as PushTemplate,
411414
ref: params.stepRef ?? generateStepRef("push"),
412415
},

0 commit comments

Comments
 (0)