Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io
    Back to all articles
    Engineering
    July 19, 2026
    Updated November 22, 2026
    7 min read

    Introducing CortX: Cross-Module Intelligence for App Growth

    BillDog Engineering

    BillDog Engineering

    AI Orchestration

    CortX is the cross-module intelligence in BillDog, a paywall, subscription and growth platform for mobile and web apps. It lets BillDog's modules use each other's data: a survey answer can decide which paywall a user sees next, a dismissed paywall can start a journey, and verified store events such as a trial starting can trigger journeys too. Targeting is decided on BillDog's servers, so each module reads the same customer record instead of its own copy.

    This post is for mobile and web teams running subscription apps who want onboarding answers and paywall behaviour to change what users see next. It explains how the pieces connect and walks through one illustrative example. It doesn't cover pricing; see the CortX page for plans. BillDog publishes this post and sells CortX, so read the product sections with that in mind. CortX here is BillDog's product, not Seagate CORTX or Palo Alto Networks Cortex.

    The silo problem

    When the survey, paywall and push tools are separate products, each keeps its own copy of the user. The survey tool doesn't hear what happened at the paywall, and the push service doesn't know why someone closed it.

    An illustrative case: a user of a language-learning app says in onboarding that they're learning for travel. They are still shown the generic paywall, and when they close it, a generic "we miss you" push arrives a day later. The survey knew their reason and the paywall knew they hesitated, but neither told the other.

    Connecting separate tools means glue code: listening for a survey callback, copying the answer into user properties, syncing those properties to the paywall and messaging tools, and keeping IDs aligned. Each hop adds delay and another place for two tools to disagree.

    How CortX connects surveys, paywalls and journeys

    In BillDog the modules share one customer and one set of audience rules.

    • Survey answer targeting. Answers are stored as survey responses for that customer. A "Survey answer" rule reads the person's latest answer to a question each time it is evaluated, so a paywall, message or journey can target on it. Nothing is copied into user properties. This rule is on for CortX plans and the Engagement Growth, Scale and Enterprise tiers, not Free or Pay-as-you-go.
    • One rule, many places. The same audience rules can target 12 kinds of item: offerings, paywalls, in-app messages, push, email (sent through your own Resend account), SMS, surveys, survey collectors, journeys, journey steps, experiments and feature flags.
    • Paywall and store events are journey triggers. Paywall dismissed starts a journey. The Trial started trigger comes from verified store events rather than from your app, and Paywall purchased fires only once the purchase is verified.
    • A finished survey starts a journey. Survey completed is also a journey trigger.

    Targeting is server-authoritative. The client SDKs don't run audience rules themselves: they ask the server, which picks the paywall for this user. The SDK caches the paywall the server returned. While that copy is fresh it is shown straight from the cache and refreshed in the background, and if a request fails with nothing cached, no paywall is shown and your app gets the error.

    A worked example

    This continues the illustrative language-learning app above. It isn't a customer deployment. The code uses the web SDK, @billdog.io/web 1.2.0-beta.1; the web SDK guide covers installing it.

    Step 1, the survey. During onboarding the app shows a survey asking why the user is learning. They pick Travel, and the answer is stored for that customer.

    Step 2, the paywall. At the post-onboarding placement, the paywall targeting includes a Survey answer rule that matches Travel. The server sees the answer and returns the travel-themed paywall, which the SDK shows.

    Step 3, the journey. If the user closes the paywall without buying, the Paywall dismissed trigger starts a journey built in the dashboard. In this illustrative setup it waits, then sends a push inviting them to a short travel phrase quiz.

    import BillDog from "@billdog.io/web";
    
    BillDog.configure({ apiKey: "bd_public_live_xxxxxxxx" }); // your public key
    
    const userId = "user_123"; // your app's own user id
    const ONBOARDING_SURVEY_ID = "<survey UUID from the dashboard>";
    
    // Identify the user first: answer-based rules match known customers only.
    await BillDog.logIn(userId);
    
    // Step 1: show the onboarding survey.
    await BillDog.presentSurvey(ONBOARDING_SURVEY_ID, {
      customerId: userId,
      onComplete: (surveyId, result) => {
        console.log("survey submitted", surveyId, result.status);
      },
    });
    
    // Step 2: at the post-onboarding placement, the server applies the
    // placement's audience rules, including the Survey answer rule, and
    // the SDK shows the paywall the server picked for this user.
    await BillDog.presentPaywall("post_onboarding");
    

    The survey id is the UUID the dashboard shows for your survey; the placement name post_onboarding is one you choose when you create the placement. Step 3 needs no code, because the journey and its trigger are set up in the dashboard. A real purchase flow still needs testing in the store's sandbox or on a device.

    How fresh the data is

    Not every link updates instantly, so plan around these:

    • A Survey answer rule reads the latest answer whenever the rule is evaluated.
    • Rule-based segments are recomputed every hour, and analytics cohorts every 6 hours.
    • A paywall the SDK has cached is shown again until the cache expires, so a placement already shown to a user can lag behind a newer answer until the background refresh lands.
    • Answer, segment and cohort rules match only identified customers. A request that can't be tied to a customer matches none of them, so that user sees your default.

    Where to go next

    The CortX page lists every link between modules and what each plan includes. For the building blocks in the worked example, see the placements guide, the web SDK guide and the Journeys page.

    Corrections

    • 22 Nov 2026: This post said survey answers were written to the user's profile. They aren't: answers are stored as survey responses, and a Survey answer audience rule reads them when it runs. It also described the system as running on-device. Targeting runs on BillDog's servers; the SDK only caches the server's choice. We removed a diagram and a journey config sample that didn't match the product, and replaced the code with calls from the published web SDK, including the configure step and a real survey id format.

    Sources

    Frequently asked questions

    What is CortX cross-module intelligence?

    Paywalls, surveys, analytics, messaging and journeys work from the same customer, so data from one module can drive a decision in another. For example, a survey answer can decide which paywall a user sees, and a dismissed paywall can start a journey.

    Are survey answers copied onto the user's profile?

    No. Answers are stored as survey responses for that customer. A Survey answer audience rule reads the latest answer each time it runs, so a paywall or message can target on it without copying anything to user properties. That rule is on for CortX plans and the Engagement Growth, Scale and Enterprise tiers, not Free or Pay-as-you-go.

    Does CortX run on the device?

    No. Survey answer, segment and cohort rules and paywall selection run on BillDog's servers. The SDK caches the paywall the server picked, shows that copy while it is fresh and refreshes it in the background. If a request fails and nothing is cached, no paywall is shown and your app gets the error.

    Topics: #AppGrowth#SubscriptionApps#MobileDev#CortX

    Get the BillDog newsletter

    Practical guides on subscription pricing, paywalls and app growth, about twice a month. No spam.

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.