MetorialDocs

Set up Userflow in Metorial for Claude, ChatGPT and Cursor

Share Userflow with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 16 tools (9 read-only).

To give your team Userflow in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Userflow integration in a Metorial portal, and each person connects with an API key. Agents can manage users, companies, memberships, and events for in-app onboarding. The integration has 16 tools, 9 read-only, 4 write and 3 destructive, plus 3 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: Userflow API key. For user/group/event/content/webhook operations, use an environment API key from Settings > API. For account management, use a personal API key from My Account > Personal API Keys.

Setup settings

Setup also asks for:

  • apiVersion (optional): Userflow API version to use (e.g. 2020-01-03)

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

Limit the tools

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

Choose who gets it

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

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

Employee: connect Userflow

In the portal

Open Userflow in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (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 userflow
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Userflow 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 userflow
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 9 read-only tools, such as get_user and get_group, and lose the 4 write tools, such as track_event or create_or_update_user, and the 3 destructive tools, such as delete_user or delete_group.

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

metorial tools lists the 16 tools, minus any you rejected. get_user takes no input.

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

Tools

Read-only tools (9)

  • list_users: Lists users with pagination support.
  • list_groups: Lists groups (companies) with pagination support.
  • get_user: Retrieves a user by ID or finds a user by email.
  • list_event_definitions: Lists all event definitions configured in the account.
  • get_group: Retrieves a group (company) by its ID. Needs groupId.
  • list_content: Lists all content objects (flows, checklists, and launchers) in the account.
  • get_content: Retrieves a specific content item (flow, checklist, or launcher) by ID. Needs contentId.
  • list_content_sessions: Lists onboarding sessions, completion state, progress, and survey answers.
  • list_attribute_definitions: Lists attribute names, data types, and scopes to help build user or company filters and choose attributes for updates.

Write tools (4)

  • manage_webhook_subscription: Creates, retrieves, lists, or deletes webhook subscriptions. Needs action.
  • track_event: Tracks a custom event for a user and/or group. Needs name.
  • create_or_update_user: Creates a new user or updates an existing one (upsert). Needs userId.
  • create_or_update_group: Creates a new group (company) or updates an existing one (upsert). Needs groupId.

Destructive tools (3)

  • delete_user: Permanently deletes a user and all associated data including attributes, memberships, events, and flow history. Needs userId.
  • delete_group: Permanently deletes a group (company) and all associated data including attributes, memberships, and events. Needs groupId.
  • remove_group_membership: Removes a user from a group (company). Needs userId and groupId.

Triggers

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

  • event_tracked: Triggers when any event is tracked for a user or group in Userflow.
  • user_events: Triggers when a user is created or updated in Userflow.
  • group_events: Triggers when a group (company) is created or updated in Userflow.

Next steps