MetorialDocs

Set up Botstar in Metorial for Claude, ChatGPT and Cursor

Share Botstar with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 16 tools (7 read-only).

To give your team Botstar in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Botstar integration in a Metorial portal, and each person connects with an API token. Agents can manage chatbots, broadcast messages, and handle CMS content on the BotStar platform. The integration has 16 tools, 7 read-only, 5 write and 4 destructive, plus 3 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenAPI tokentoken and botToken

API Token

To connect, a person enters these values:

  • token: Account-level API token from app.botstar.com/account/profile
  • botToken (optional): Bot-level access token from bot Settings page (required for broadcasting messages)

Admin: share Botstar 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 Botstar. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

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

Choose who gets it

Add the access groups that should see Botstar. 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 Botstar integration. Once it exists, check which groups have it:

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

Employee: connect Botstar

In the portal

Open Botstar in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token).

Confirm

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

With the CLI

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

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Botstar 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 botstar
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 7 read-only tools, such as get_bot and get_user, and lose the 5 write tools, such as create_bot or update_user, and the 4 destructive tools, such as publish_bot or manage_cms_item.

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 botstar
metorial tools <integration-id>
metorial call <integration-id> list_bots -d '{}'

metorial tools lists the 16 tools, minus any you rejected. list_bots takes no input. It retrieves all chatbots associated with your BotStar account.

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

Tools

Read-only tools (7)

  • get_user: Retrieve audience/user information for a specific chatbot user. Needs botId and userId.
  • list_cms_items: Retrieve items from a CMS entity. Needs botId and entityId.
  • get_bot: Retrieve details for a specific chatbot by its ID, including its name and team association. Needs botId.
  • list_bots: Retrieve all chatbots associated with your BotStar account.
  • get_cms_entity: Retrieve a CMS entity with its field definitions and unique field keys for item updates.
  • list_cms_entities: Retrieve all CMS entities for a specific bot. Needs botId.
  • get_cms_item: Retrieve one CMS item and its field values.

Write tools (5)

  • broadcast_message: Send text messages to a specific chatbot user via the BotStar broadcast API. Needs userId and messages.
  • send_message: Send a formatted message to a Facebook audience user via the BotStar Public API. Needs recipientId and message.
  • update_user: Update a chatbot user's profile information and custom attributes. Needs botId and userId.
  • create_user_attribute: Create a new custom attribute field for users of a specific bot. Needs botId, fieldName and fieldType.
  • create_bot: Create an empty chatbot in your BotStar account and return its ID.

Destructive tools (4)

  • manage_cms_item: Create, update, or delete a CMS item within an entity. Needs botId, entityId and action.
  • manage_cms_entity: Create, update, or delete a CMS entity for a bot. Needs botId and action.
  • manage_bot_attributes: List, create, update, or delete bot-level attributes (variables). Needs botId and action.
  • publish_bot: Publish a bot to the live environment. Needs botId.

Triggers

Botstar has 3 triggers, which fire on events in Botstar:

  • cms_item_created: Triggers when a new CMS item is created in a BotStar entity.
  • user_event: Triggers on user-related webhook events from BotStar: new subscriber, updated user attribute, new tag on user, new request for human takeover.
  • chatbot_event: Triggers on chatbot flow events from BotStar: new checkpoint record, user capture response.

Next steps