Follow this tutorial to build an agent tool, which is a custom workflow action tailored to AI agents.
npm install -g @hubspot/cli
. If you’ve already installed the CLI, you can update to the latest version by running npm install -g @hubspot/cli@latest
.hs account auth
command in your terminal.Create a project
2025.2
required), skip to the next section.To create a new project:Add an agent tool to the project
workflow-actions/
directory in src/app/
.workflow-actions
directory, create a new JSON file for the tool configuration. The file can have any name, but must end with -hsmeta.json
(e.g., my-agent-tool-hsmeta.json
).supportedClients
array along with its client
, toolType
, and llmConfig
fields, as shown in the example code below.POST
requests.hs project upload
. If you started with a new project, you’ll be prompted press y
to create the project in the account.llmConfig
and your labels
properties in your tool’s hsmeta.json
file to give the LLM more clarity and specificity into what your tool does, and how to provide inputs to it.