MetorialDocs

Set up ChatBotKit in Metorial for Claude, ChatGPT and Cursor

Share ChatBotKit with your team in Claude, ChatGPT and Cursor through Metorial: API secret key sign-in, 14 tools (4 read-only).

To give your team ChatBotKit in Claude, ChatGPT, Cursor and other AI clients, an admin shares the ChatBotKit integration in a Metorial portal, and each person connects with an API secret key. Agents can build, manage, and deploy AI chatbots and conversational agents. The integration has 14 tools, 4 read-only, 2 write and 8 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares ChatBotKit in a portal and how each person connects
  • What ChatBotKit asks for when you connect, and where to find it
  • How to keep the 4 read-only tools and reject the other 10

Before you start

Sign-in method

MethodTypeWhat a person provides
API Secret KeyAPI tokenapiSecretKey

API Secret Key

To connect, a person enters:

  • apiSecretKey: ChatBotKit API secret key (starts with sk-)

Setup settings

Setup also asks for:

  • runAsUserId (optional): Optional child user ID for Partner API impersonation (X-RunAs-User-ID header)

Admin: share ChatBotKit in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose ChatBotKit. For how members connect, choose Each person connects so everyone enters their own API secret key, or Shared connection to enter one API secret key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from ChatBotKit.

Choose who gets it

Add the access groups that should see ChatBotKit. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user ChatBotKit integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search chatbotkit

Employee: connect ChatBotKit

In the portal

Open ChatBotKit in the catalog

Sign in to your portal and open ChatBotKit. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API secret key (apiSecretKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search chatbotkit
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your ChatBotKit connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list chatbotkit
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_task and list_models, and lose the 2 write tools, such as send_message or conversation_feedback, and the 8 destructive tools, such as manage_bot or manage_space.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list chatbotkit
metorial tools <integration-id>
metorial call <integration-id> list_resources -d '{"resourceType":"bots"}'

metorial tools lists the 14 tools, minus any you rejected. list_resources needs resourceType, so replace the placeholders. It lists resources across ChatBotKit: bots, conversations, datasets, skillsets, contacts, memories, integrations, files, spaces, secrets, tasks, or blueprints.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (4)

  • list_messages: Retrieve the message history for a conversation. Needs conversationId.
  • get_task: Inspect a background task, including execution status, outcome, schedule and associated bot or contact.
  • list_models: Discover available AI models, their identifiers, providers and token limits before configuring a bot or sending a completion.
  • list_resources: List resources across ChatBotKit: bots, conversations, datasets, skillsets, contacts, memories, integrations, files, spaces, secrets, tasks, or blueprints. Needs resourceType.

Write tools (2)

  • conversation_feedback: Submit upvote or downvote feedback on conversations or individual messages. Needs conversationId and vote.
  • send_message: Send a message in a conversation and optionally receive the bot's response. Needs text.

Destructive tools (8)

  • manage_dataset: Create, update, delete, or fetch datasets. Needs action.
  • manage_integration: Create, update, delete, or fetch integrations (deployment channels). Needs action.
  • manage_space: Create, update, delete, or fetch spaces. Needs action.
  • manage_skillset: Create, update, delete, or fetch skillsets and their abilities. Needs action.
  • manage_conversation: Create, update, delete, or fetch conversations. Needs action.
  • manage_contact: Create, update, delete, fetch, or ensure contacts. Needs action.
  • manage_memory: Create, update, delete, fetch, or search memories. Needs action.
  • manage_bot: Create, update, delete, or fetch ChatBotKit bots. Needs action.

Triggers

ChatBotKit has 1 trigger, which fire on events in ChatBotKit:

  • chatbotkit_events: Receives webhook events from ChatBotKit including bot activity, conversation events, and integration operations.

Next steps