You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: `Create or update a new email layout within the environment given. Use this tool when you need to define shared pieces of content across multiple email templates, like a header/footer. The email layout will be used to render the email template.
Create or update a message type. A message type is a schema that defines fields available to an editor within Knock. Message types always have at least one variant, that MUST be named "default". Use this tool when you need to create a new message type, or update an existing message type.
Copy file name to clipboardExpand all lines: src/lib/tools/objects.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ const getObject = KnockTool({
48
48
});
49
49
50
50
constcreateOrUpdateObject=KnockTool({
51
-
method: "create_or_update_object",
51
+
method: "upsert_object",
52
52
name: "Create or update object",
53
53
description: `Create or update an object in a specific collection. Objects are used to model custom collections in Knock that are NOT users or tenants. If the object does not exist, it will be created. If the object exists, it will be updated with the provided properties. The update will always perform an upsert operation, so you do not need to provide the full properties each time.
Copy file name to clipboardExpand all lines: src/lib/tools/tenants.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,9 @@ const listTenants = KnockTool({
49
49
},
50
50
});
51
51
52
-
constsetTenant=KnockTool({
53
-
method: "set_tenant",
54
-
name: "Set tenant",
52
+
constcreateOrUpdateTenant=KnockTool({
53
+
method: "upsert_tenant",
54
+
name: "Create or update tenant",
55
55
description: `
56
56
Creates or updates a tenant using the properties provided. Tenants in Knock are used to model organizations, teams, and other groups of users. They are a special type of object.
Copy file name to clipboardExpand all lines: src/lib/tools/users.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ const getUser = KnockTool({
40
40
});
41
41
42
42
constcreateOrUpdateUser=KnockTool({
43
-
method: "create_or_update_user",
43
+
method: "upsert_user",
44
44
name: "Create or update user",
45
45
description: `
46
46
Creates a new user if they don't exist, or updates the user object for the given userId, including email, name, phone number, and any custom properties.
Creates or updates an email step in a workflow. Use this tool when you're asked to create an email notification and you need to specify the content of the email.
Creates a push step in a workflow. Use this tool when you're asked to create a push notification and you need to specify the content of the push notification.
name: "Create or update in app feed step in workflow",
420
420
description: `
421
421
Creates an in app feed step in a workflow. Use this tool when you're asked to create an in app feed notification and you need to specify the content of the in app feed notification.
Creates a chat step in a workflow. Use this tool when you're asked to create a chat, Slack, Discord, or Microsoft Teams notification and you need to specify the content of the chat notification.
Creates a delay step in a workflow. Use this tool when you're asked to add a delay to the workflow that pauses, or waits for a period of time before continuing.
Creates a batch step in a workflow. Use this tool when you're asked to create a batch step or asked to add digesting behavior to a workflow. The batch step collects multiple workflow triggers for a single recipient over a period of time and then flushes the content to the next step.
0 commit comments