Tools reference
Learn more about the tools available in the Knock agent toolkit.
The Knock Agent Toolkit exposes a suite of tools that your AI Agents can invoke to power cross-channel user messaging, without any integration logic. You can find the full list of available tools below.
Channels
listChannels
: List all channels in your Knock account
Commits
listCommits
: List all commits in a single environmentcommitAllChanges
: Commit all changes in an enviroinmentpromoteAllCommits
: Promote all commits from one environment to another
Documentation
searchDocumentation
: Perform a search of the Knock documentation
Email Layouts
listEmailLayouts
: List all email layouts in an environment
Environments
listEnvironments
: List all environments in your Knock account
Message types
listMessageTypes
: List all message types in an environmentcreateOrUpdateMessageType
: Create or update a message type in an environment
Messages
getMessageContent
: Get the content of a sent message
Objects
listObjects
: List all objects in a collection in an environmentcreateOrUpdateObject
: Create or update an object in a collectiongetObject
: Get an object in a collection by its idsubscribeUsersToObject
: Subscribe one or more users to an object in a collectionunsubscribeUsersFromObject
: Unsubscribe one or more users from an object in a collection
Partials
listPartials
: List all partials in an environmentgetPartial
: Get a partial by its keycreateOrUpdatePartial
: Create or update a partial in an environment
Tenants
listTenants
: List all tenants in an environmentsetTenant
: Create or update a tenant in an environmentgetTenant
: Get a tenant by its key
Users
listUsers
: List all users in an environmentcreateOrUpdateUser
: Create or update a user in an environmentgetUser
: Get a user by their idgetUserPreferences
: Get the preferences for a usersetUserPreferences
: Set the preferences for a usergetUserMessages
: Get the messages for a user
Workflows
listWorkflows
: List all workflows in an environmentgetWorkflow
: Get a workflow by its keytriggerWorkflow
: Trigger a workflow by its keycreateWorkflow
: Create a new workflowcreateOneOffWorkflowSchedule
: Create a one-off schedule for a user to trigger a workflow
Workflow steps
createEmailStepInWorkflow
: Create an email step in a workflowcreateDelayStepInWorkflow
: Create a delay step in a workflowcreateBatchStepInWorkflow
: Create a batch step in a workflowcreateInAppFeedStepInWorkflow
: Create an in-app feed step in a workflowcreatePushStepInWorkflow
: Create a push notification step in a workflowcreateSmsStepInWorkflow
: Create an SMS step in a workflowcreateChatStepInWorkflow
: Create a chat step in a workflow