• SEGMENTS
  • LOGIC
  • AUDIT
  • HUMAN

How to configure user targeting segments with your AI

Connect Flipt to your AI client to manage feature flag targeting. You can build new user groups and set flag constraints through simple chat.

Ask AI about this page

Short answer

How do I set up user segments and constraints with my AI?

Tell your AI to find existing segments or build new ones based on user attributes. You can then apply specific constraints to your flags to control feature visibility. This setup gives you direct control over your rollout logic.

Targeting outcomes

What you get

These are the results of your targeting requests.

SEGMENTS

New user groups

The AI identifies or builds specific user subsets. You get organized groups ready for targeting.

LOGIC

Applied constraints

The AI attaches rules to your flags. This ensures features only trigger for the right people.

AUDIT

Current state check

Your AI pulls the existing segment list. You can verify your current targeting setup instantly.

HUMAN

Manual review

You decide if a new constraint is safe to deploy. The AI prepares the logic, but you hold the trigger.

The workflow

What your AI does when you request targeting changes.

The AI acts as the interface between your intent and the Flipt API.

  1. Scan existing users

    The AI looks through your current segment definitions to see what's already available.

    list_segments
  2. Define new groups

    You describe a user type, and the AI prepares the logic to group them.

    list_segments
  3. Build rules

    The AI translates your requirements into specific attribute constraints for a flag.

    create_constraint
  4. Apply to flags

    The AI maps the new constraints to your specific feature flags to finalize the targeting.

    create_constraint

Try it

Copy these to start.

Use these prompts to kick off your targeting tasks.

Starting points

Swap out the bracketed text with your actual segment names or attribute keys.

Flipt Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_TVcMgPuHtCjr3IvZBRaswl0SFXe5TsrryvQScOOE/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Flipt capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "flipt-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_TVcMgPuHtCjr3IvZBRaswl0SFXe5TsrryvQScOOE/mcp"
    }
  }
}
Copy into chat04
  • List all my current user segments in Flipt.

  • Create a new segment for users in [New York] using the [location] attribute.

  • Add a constraint to the [beta_feature] flag for users where [plan] is [premium].

  • Show me the constraints currently applied to the [search_redesign] flag.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Flipt once, then ask.

Enter your Flipt credentials once. Your connection is encrypted and stays private. After that, you can manage your flags directly from your chat interface.

Connect Flipt to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete my existing segments?

    No. The current tools only allow for listing segments and creating new constraints.

  • 02

    Will the AI change my flag values automatically?

    No. The AI handles the targeting logic and constraints, but it does not modify the flag values themselves.

  • 03

    Can I use this to create entirely new flags?

    No. This specific setup is for managing segments and applying constraints to existing flags.

  • 04

    Does the AI need to know my user attributes?

    Yes. You need to tell the AI which attributes you want to use for your constraints.

  • 05

    Can the AI see my flag rollout percentages?

    The AI can see the constraints you've set, but it doesn't have a tool to modify the percentage-based rollout settings.

  • More questions about Flipt? See everything the Flipt Connector can do

Connect Flipt to Claude, Cursor, ChatGPT & more