Actions

The Interactions panel lets you define how flow elements respond to events — such as taps, element appearances, and form submissions. For each event, you assign one or more actions: navigate between screens, show or hide elements, open URLs, set variables, and more. Use conditions to customize the flow based on user data.

Each interaction follows a three-part chain:

  1. Element: The screen component that starts the interaction — a button, quiz answer, input field, or anything else.
  2. Trigger: The event that activates the logic, such as a tap, an element appearance, or a form submission.
  3. Action: The task the flow performs in response. A single trigger can run multiple actions in sequence.

Set up interactions

To set up an interaction:

  1. Select an element on the screen or in the Layers panel.
  2. On the right, switch to the Interactions panel and click Add trigger.
Add trigger button
  1. In the Button triggers section, select the trigger type.
Trigger type selection
  1. Click Add action, click the action name, and select an action type from the dropdown in the Edit action window.
Add action button
  1. Configure the action properties based on the action type you selected.
  2. If needed, click Add action to add more actions for the same trigger.

Trigger types

Triggers fire in response to user behavior, element state changes, or the screen loading. On screen appear is universal; the others are element-specific.

TriggerFires when…Supported on
On screen appearThe screen loadsAll elements
On tapThe user taps the elementButtons, quiz options, toggles, countdowns, videos, images, and icons, text, containers, carousels, and bottom sheets, tabs, products
On changedThe user changes the input’s value (typing, picking a date or time)All input elements
On submitThe user submits a text input by pressing Enter or Done on the keyboardText-based inputs
On timer endA Countdown element reaches zeroCountdown
On playback finishedA Video reaches the endVideo

For elements with no built-in interactions (such as Loader), On screen appear is the only trigger available.

Action types

This is the primary action for moving users between screens. You set up the destination screen and, optionally, add a transition animation.

To move users to another screen a few seconds after the current screen opens, delay a Navigate to Screen action under the On Screen Appear trigger.

For dynamic navigation, see Navigation and branching or the Conditional actions section.

Edit action window for Navigate to Screen with Paywall as the destination, Slide in upward with Ease out bounce, a 400 ms duration, and no delay

Advances the user to the next screen in the flow’s screen order. Use this for linear flows, where the order of screens in the editor matches the order you want the users to see them.

The transition to the next screen always uses the default push animation. To customize the animation, change the action to Navigate to screen.

Returns the user to the previous screen in their navigation history, rather than the previous screen in the sequence.

The transition back uses the same animation as the transition to the current screen, played in reverse.

Open URL

Tip

Use inline links to insert links to flowing text.

Opens a specific web address. Use this to send users to web pages, articles, or social media profiles outside of your app’s native screens.

For this action, you can configure two settings:

  • URL address: Set a URL address. Additionally, you can make it dynamic — for example, to navigate users to different pages based on their quiz answer or using the data they’ve submitted. To do this, click Variable icon and select a variable you want to use. To set a different URL for a specific locale, change the corresponding cell value in the Localizations panel.
  • Open in external browser: Define where you want to open external links. By default, they open in an in-app browser to keep users within the app. Select the Open in external browser checkbox if you want to open links in an external browser.
Open URL

Close flow

Closes the current flow.

This action has no animation setting. Your app is responsible for the transition between the flow and your native UI.

Show/hide elements

Shows or hides a specific element on the screen.

This action overrides the initial state set in Visibility in the Design panel. If Visibility is set to Hide, the Show element action will make it appear.

You can delay the change or animate it, for example to show a close button a few seconds after the screen opens.

Important

A Show element or Hide element action with no target element blocks previewing and publishing. Select a target or remove the action.

Show alert

Displays a native pop-up window that can be dismissed. The pop-up does not pause the flow. Actions queued with the alert continue to run during the alert.

For alerts, you must set up their Title and Message. In both, you can use variables to make the content dynamic. To do this, click Variable icon and select a variable you want to use.

Important

A Show alert action with an empty or incomplete configuration blocks previewing and publishing. Fill in both fields or remove the action.

Show alert

Set variable

Updates the value of a variable in the flow. Before adding this action, create variables in the Variables panel on the left (see Variables).

Click Add variable and set as many variables and their values as you need.

Important

A Set variable action with no assignment blocks previewing and publishing. Configure at least one assignment or remove the action.

Set variable

Purchase

Triggers a purchase flow directly from a button or interaction in your onboarding. Use this to let users subscribe or buy a product without leaving the flow.

You can configure two behaviors for this action:

  • In-App Store: Initiates a native purchase. Set Product to a specific product, or to products.selectedProduct for the user’s current selection on the screen.
  • Web Payment: Sends the user to a web paywall instead of triggering a native purchase. Use this when you want to handle the transaction outside the app, such as for web-based subscription offers.

For an In-App Store purchase, you can configure follow-up actions for each purchase result. For example, run Navigate to Screen in response to When succeeded to show buyers the next screen.

Important

A Purchase action without a target Product or Web Paywall URL blocks previewing and publishing. Assign a target or remove the action.

Purchase action configuration in the Edit action window

Restore purchases

Triggers the restore purchases flow on the device. Users tap this when they’ve previously bought a subscription on another device or after reinstalling the app, and need to recover access to their products.

Adapty handles the restore through the native store flow. You can configure follow-up actions for each restoration result: When restore completed and When restore failed.

The Restore purchases action is also pre-configured on the Restore link in the Links button preset (see Set up purchases).

Select product

Sets which product is selected in a product group on the screen. Use it when an element other than the product card should change the selection — for example, a toggle that switches the user between a yearly and a weekly plan.

When the action runs, the selection moves to the target product. The card highlight, any text bound to products.selectedProduct, and the Purchase action’s target all follow the new selection.

For this action, set Product to the target product element. The picker lists only product elements that belong to a product selectable group on the same screen. If the screen has several product groups, the picker lists the valid products from all of them. Products from other screens, product elements outside a group, and other element types don’t appear. Each product appears under its Adapty product title rather than its element name.

Select product action in the Edit action window with the Product picker listing product cards

You can also add Select product inside a conditional action — for example, to select one product when a toggle is on and another when it’s off.

Select product isn’t available in two places:

  • Inside reusable components: Product selection works per screen, so an action inside a component can’t resolve a product. If a saved action ends up inside a component, the Product field shows a warning instead of the picker.
  • On a product card’s own On tap trigger: Tapping a card already selects it, so an explicit selection on the same interaction would conflict. The action stays available on that card for other triggers, and on every other element.
Important

A Select product action blocks previewing and publishing when its target product is missing, sits on another screen, or no longer belongs to a product group. Assign a valid product or remove the action.

Request permission

Asks the user to allow push notifications, for example on an onboarding screen that explains what the notifications are for. Your app shows the system permission dialog and returns the user’s answer to the flow. Then the flow runs the actions in the After response section.

You can add this action to the On Tap and On Screen Appear triggers. In the Edit action window, the Permission row shows Push notifications, the only permission the action requests.

Request permission action in the Edit action window with Push notifications as the permission and Navigate Next in After response

The actions in After response run after the user answers, whether the user allows or denies the permission. A new Request permission action starts with Navigate Next in this section. Inside the section, you can’t add Purchase, Restore purchases, or another Request permission action. If you remove every action from the section, the flow stays on the screen after the user answers. Without After response actions, the flow also sends the request every time the screen appears, including after Navigate back, and on every tap.

When the system doesn’t show the dialog, for example because the user already allowed notifications, your app answers at once, and the flow runs the After response actions right away. If those actions leave the screen, the screen appears only for a moment. How often the flow sends the request depends on the trigger:

  • On Screen Appear: The flow sends the request when the screen appears. It doesn’t send it again when the user comes back to the screen with Navigate back.
  • On Tap: The flow sends the request on every tap. While a request waits for the answer, the flow sends no other permission request, from this element or any other.

On a screen that explains the notifications, put the action on the On Tap trigger of its button, so users read the screen before the dialog covers it. Use On Screen Appear when an earlier screen already explained the request.

Warning

Set up your app to answer the request before you publish the flow. The Adapty SDK doesn’t show the system dialog: it passes the request to your app code. Without that code, the user sees no dialog, and what the flow does depends on the Adapty SDK in your app:

  • iOS, Flutter, Unity, and Kotlin Multiplatform SDKs: The flow stays on the screen and doesn’t run the After response actions.
  • Android, React Native, and Capacitor SDKs: The flow runs the After response actions right away, and the user is never asked.

A published flow also reaches app versions released before your app could answer the request. Show a flow with Request permission only to app versions that answer it, for example with an audience built from a segment on App version (current).

To set up your app, see the guide for iOS, Android, React Native, Flutter, Unity, Kotlin Multiplatform, or Capacitor.

Action order

Actions start in the order listed in the Interactions panel, top to bottom. The flow launches each action and moves on without waiting for it to finish, so navigation or an alert never holds up the actions below it.

What this means for the actions it affects most:

  • Set variable: The new value is set before the next action starts, so a conditional action below it reads the updated value.
  • Navigate to screen: The actions after it still run, but when the flow launches the next action, the user may already be on the next screen. If that action shows or hides an element on the screen they just left, the user won’t see it. Place actions that change the current screen before the navigation.
  • Show alert: The actions after it run while the alert is open. If one of them navigates to a different screen, the alert remains open during the navigation.
  • Purchase and Restore purchases: The actions after them run on the tap, without waiting for the result. To navigate or close the flow after the result, add the navigation or Close Flow action for a purchase or restoration result instead, such as When succeeded.
  • Request permission: The actions after it run right away, before the user answers. To navigate or close the flow after the answer, add the navigation or Close Flow action to the After response section instead. If one of the actions after the request leaves the screen, the After response actions don’t run at all. The builder shows a warning when a navigation or Close Flow action follows the request in the same list.

Custom actions

A custom action fires a named Action ID that your own app code handles. Use it when the built-in action types don’t cover what you need.

Adapty provides the trigger; your app implements the behavior:

  1. In the builder, you assign an Action ID to an element’s interaction.
  2. When the user triggers the interaction, the flow passes the ID to your app.
  3. Your app matches the ID and runs your code.

Set up a custom action

  1. In the Edit action window, assign an Action ID — a string your app will recognize (for example, show_discount).
  2. In your app code, implement a handler for this Action ID. See Handle paywall actions for implementation details and code examples.
Important

A Custom action without an Action ID blocks previewing and publishing. Assign an Action ID or remove the action.

Custom action configuration with Action ID field in the Edit action window

What you can do with custom actions

A custom action does nothing on its own. You set a static Action ID in the builder, and your app code handles what happens when it receives that ID. Every use case below follows the same pattern: assign an ID in the flow, then handle it in your code.

  • Trigger an in-app event: Fire an ID such as viewed_special_offer, then log the event to your analytics when your app receives it.
  • Request a system permission other than push notifications: Fire an ID such as request_location, then call the OS permission prompt from your app. For permissions the prompt can’t grant, open the phone’s system settings instead. Adapty doesn’t show the prompt — your app does. To ask for push notifications, use the Request permission action instead: its After response actions run after the user answers.
  • Start native authentication: Fire an ID such as login_google, then present your own login screen. The flow can’t sign the user in.
  • Apply business logic: Fire an ID such as apply_discount, then unlock content or change app state on your side.
  • Pass a quiz answer to your app: Assign a different Action ID to each option (for example, goal_weight_loss and goal_muscle), then read the ID in your code. Use the ID to set a custom user attribute you can segment on later. Because the action carries only a fixed ID, this is the only way to report the choice — the flow can’t send the selected value.
Important

A custom action fires the moment the user selects an option. If the user changes their answer, the flow fires the new Action ID too. Your app then receives both in order — for example, goal_weight_loss, then goal_muscle. Make your handler idempotent so the latest signal wins.

What custom actions can’t do

Custom actions are static. The Action ID is fixed when you build the flow — it can’t read variables or user inputs. When the action fires, your app receives only that ID, never the email, phone number, or other input the user entered. Input fields stay inside the flow as variables for branching and personalization. To use those values in your app, collect them through your own UI or API.

Custom actions are also one-way. Your app can’t return a result to the flow, and the flow doesn’t wait for your code to finish. If a Navigate next action follows the custom action, the user moves to the next screen even when your code fails — for example, when the user closes your login screen without signing in. Combined with the static Action ID, this rules out validating user input in your app — for example, checking an SMS code the user entered and branching on the result. If the rest of the flow depends on what your code did, split the flow between two placements.

Continue the flow based on the result

If some screens should appear only after a custom action succeeds — for example, screens that follow a login — split the flow between two placements and let your app decide when to show the second part:

  1. In the first placement, create a flow that ends with a custom action (for example, login).
  2. In your app, handle the Action ID: present your login screen and check whether the user signed in.
  3. If the user signed in, show the flow from the second placement with the follow-up screens.

This way, your app controls the transition based on the actual result, instead of the flow navigating forward regardless of the outcome.

Conditional actions

Use conditional actions to split the flow into different paths based on user data.

Some common use cases include:

  • You have a quiz on the screen, and you want to navigate users to different screens based on their answers. In this case, add a conditional action to a button.
  • You want to offer different products and offers to different user groups. Place them on different screens and set up conditions for a navigation button.
  • You want to skip certain steps for users who have already completed a tutorial in a previous app session.
  • You want to show a screen on one platform only, such as a screen that explains App Tracking Transparency on iOS. See Show a screen on one platform only.

Conditional actions work like an if / else-if / else chain. The app reads the rules from top to bottom and stops at the first match:

  1. IF: The flow checks the primary condition.
    • Is it True? The flow executes the THEN actions immediately and stops.
    • Is it False? The flow skips to the next section.
  2. ELSE IF: You can add extra checks here (e.g., “If not Premium, is the user on a Trial?”).
  3. ELSE (Fallback): If none of the rules above matched, the flow executes the actions in this final section.
Important
  • If a rule is added but has no action assigned, matching the condition results in doing nothing.
  • An incomplete rule (no operator or value) blocks previewing and publishing.

For each rule, select a variable, the state of another element, or the platform of the device to evaluate, and an action to run. You can set more than one action per rule.

You can’t select a profile attribute or a custom tag in a condition. To show different screens based on a profile attribute, build a separate flow for each group of users. Then, in the placement, show each flow to an audience built from the attribute. For a value from your app, such as a custom tag’s value, set it as a custom attribute before you build the audience.

Important

The flow executes only one rule — the first one it matches. If you need to execute both IF and ELSE IF at the same time, add both actions to IF.

To learn how to make elements selectable and organize them into groups for use in conditions, see Selectable elements and groups.

Conditional actions

Show a screen on one platform only

To keep one flow for iOS and Android, send users to a platform-specific screen with a conditional action on the screen before it. For example, show a screen that explains App Tracking Transparency only on iOS:

  1. On the screen before the iOS screen, select the button that moves users forward, such as Continue.
  2. In the Interactions panel, change its action to Conditional Action.
  3. In the if block, click the Variable field, open the System tab, and select system.platform. Keep =, and select iOS.
  4. In the then block, add Navigate to Screen with the iOS screen.
  5. In the else block, add Navigate to Screen with the screen that comes after the iOS screen.

On Android, users go straight to the next screen. The iOS screen doesn’t open on Navigate back either, because users never visited it.

The Adapty SDK reports the platform, so your app doesn’t need to pass it. Android devices, including Huawei devices, match Android.

Warning

Don’t make a platform-specific screen the first screen of the flow. A conditional action runs when users interact with a screen, so the flow opens on its first screen on every platform.

To show or hide a single element on one platform, use conditional visibility.

Troubleshooting

Any action with missing required fields blocks previewing and publishing. See Common issues for the full list.