MetorialDocs

Set up WhatsApp Business in Metorial for AI agents

Share WhatsApp Business with your team in Claude, ChatGPT and Cursor through Metorial: access token sign-in, 15 tools (5 read-only).

To give your team WhatsApp Business in Claude, ChatGPT, Cursor and other AI clients, an admin shares the WhatsApp Business integration in a Metorial portal, and each person connects with an access token. Agents can send and receive WhatsApp messages at scale, including text, images, audio, video, documents, locations, contacts, and interactive elements (buttons, lists). The integration has 15 tools, 5 read-only, 8 write and 2 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
Access TokenAPI tokentoken

Access Token

To connect, a person enters:

  • token: Permanent access token generated from a System User in Meta Business Manager, or a temporary token from the Meta App Dashboard

Setup settings

Setup also asks for:

  • phoneNumberId: The Phone Number ID from Meta App Dashboard under WhatsApp > API Setup
  • wabaId: The WhatsApp Business Account ID from Meta App Dashboard
  • apiVersion (optional): Graph API version to use (e.g. v21.0)

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

Limit the tools

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

Choose who gets it

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

metorial-admin portals access list <portal-id> --type provider_template --search "whatsapp business"

Employee: connect WhatsApp Business

In the portal

Open WhatsApp Business in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your access 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 "whatsapp business"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your WhatsApp Business 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 "whatsapp business"
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 5 read-only tools, such as get_media_url and list_templates, and lose the 8 write tools, such as send_message or create_template, and the 2 destructive tools, such as delete_media or delete_template.

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 "whatsapp business"
metorial tools <integration-id>
metorial call <integration-id> list_phone_numbers -d '{}'

metorial tools lists the 15 tools, minus any you rejected. list_phone_numbers takes no input. It lists all phone numbers associated with your WhatsApp Business Account, including their verified names, display numbers, quality ratings, and verification status.

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

Tools

Read-only tools (5)

  • list_templates: List message templates in your WhatsApp Business Account.
  • get_business_profile: Retrieve the WhatsApp Business profile information for your phone number, including description, address, email, websites, industry vertical, and profile picture.
  • get_phone_number: Get details of a specific phone number registered with your WhatsApp Business Account. Needs phoneNumberId.
  • list_phone_numbers: List all phone numbers associated with your WhatsApp Business Account, including their verified names, display numbers, quality ratings, and verification status.
  • get_media_url: Retrieve a WhatsApp media file by its media ID and provide it as a downloadable file, along with its MIME type, size, and SHA256 hash. Needs mediaId.

Write tools (8)

  • send_template_message: Send a pre-approved WhatsApp message template to a recipient. Needs to, templateName and languageCode.
  • create_template: Create a new WhatsApp message template. Needs name, language, category and components.
  • send_message: Send a WhatsApp message to a recipient. Needs to and type.
  • register_phone_number: Register a phone number for use with the WhatsApp Business Platform. Needs phoneNumberId and pin.
  • update_business_profile: Update the WhatsApp Business profile for your phone number.
  • send_interactive_message: Send an interactive WhatsApp message with **reply buttons**, a **list menu**, or a **call-to-action URL button**. Needs to, interactiveType and body.
  • mark_message_read: Mark an incoming WhatsApp message as read. Needs messageId.
  • update_template: Edit an existing WhatsApp message template by its template ID, for example to fix a rejected template and resubmit it for review.

Destructive tools (2)

  • delete_template: Delete a WhatsApp message template by name. Needs templateName.
  • delete_media: Delete a media file from WhatsApp servers by its media ID. Needs mediaId.

Triggers

WhatsApp Business has 2 triggers, which fire on events in WhatsApp Business:

  • message_status: Triggers when the delivery status of a sent message changes.
  • message_received: Triggers when an incoming WhatsApp message is received.

Next steps