# Messaging Capabilities with Feature Flags

Maximize feature adoption by creating messaging campaigns for Feature Flag audiences and triggering surveys for users based on interaction with the feature.

A Feature Flag is a toggle for controlling the availability of content or functionality in your app or website. Today's release gives you ways to message users based on their access to and interaction with flagged features.

## Audience

Use a flag's audience as the audience for an [In-App Automation](https://www.airship.com/docs/reference/glossary/#iaa) or [Scene](https://www.airship.com/docs/reference/glossary/#scene). In the composer's Audience step, select **Feature Flag Audience**, then search for and select a flag:

![Selecting a Feature Flag for a message audience](https://www.airship.com/docs/images/whats-new/feature-flag-audience_hu_c4bc3bf0d9d26006.webp)

*Selecting a Feature Flag for a message audience*

## Trigger

Trigger an In-App Automation, Scene, or [Sequence](https://www.airship.com/docs/reference/glossary/#sequence) when a Feature Flag interaction event occurs. This requires tracking user interaction in your app or website. While it is called an "interaction" event, what you track is up to you and depends on the feature. For example, you might want to track a screen view instead of a literal interaction like selecting a button.

Configure the trigger in the Behavior step in the In-App Automation or Scene composers or from the [Journey Map](https://www.airship.com/docs/reference/glossary/#journey_map) for an In-App Automation, Scene, or Sequence:

1. Search for and select a flag.
1. Select who can trigger the In-App Automation, Scene, or Sequence:
   * **Users with feature access** — These are members of the Feature Flag audience. When using the same flag for Audience and Trigger, you can only trigger for this group of users.
   * **Users without feature access** — These users are not members of the Feature Flag audience.
1. Enter the number of times the event must occur before the message is triggered.

## Putting them to work in your campaigns

This example is for feature rollout in an app. Your developer would implement tracking when users view the screen containing the new feature. Your campaign strategy could look like this:

1. **Inform users of the new feature** — Create an In-App Automation or Scene for the **Feature Flag Audience**, and use the **App Update** trigger to determine when to display your message after users install the version of your app that contains the feature and flag code.

1. **Trigger a survey for users who have interacted with the feature** — Create a Scene with questions or an NPS survey for the **Feature Flag Audience**, and use the **Feature Flag Interaction Event** trigger to specify when to display the message for users who have interacted with the feature.

Have a broader use case? Design a [Journey](https://www.airship.com/docs/reference/glossary/#journey) that combines the above with a Sequence that follows a user's interaction with the flagged feature and sends a customized message for each key step along the way.

## Requirements and documentation

Feature Flags for apps require minimum SDK versions iOS 17.1 and Android 17.1. See the [Feature Flag user guide](https://www.airship.com/docs/guides/experimentation/feature-flags/) for all the details.

> **Important:** ~~Feature Flags are available for Airship customers participating in our special access program. *[Sign up here](https://www.airship.com/lp/special-access-feature-flags)*~~ *GA release: [April 30, 2024](https://www.airship.com/docs/whats-new/2024-04-30-feature-flags-scene-rollouts-ga/).*

