Getting started with the Knock agent toolkit

Learn how to use the Knock agent toolkit within your AI agent workflows to power cross-channel messaging and rich human-in-the-loop interactions.

Installing the Knock agent toolkit

You can install the Knock agent toolkit using npm, yarn, or pnpm.

Once installed you can use the toolkit through the exposed SDK adapters, or if you need low-level access to the toolkit you can use the @knocklabs/agent-toolkit package directly.

Setting up your .env file

You'll need to have a service token setup on your Knock account to authenticate with the Knock Agent Toolkit.

Usage with the Vercel AI SDK

Usage with the OpenAI SDK

Usage with the LangChain framework