Journeys
The Journey Model describes a means of conceptualizing how Airkit keeps track of where users are within the flow of the application, as well as what they've done, entered, or requested in the process of going through it.
Whenever someone uses your app, they're going on a guided Journey, a term in Airkit used interchangeably with "Session". Keeping track of what each user has done and where they're going is an important part of tailoring the experience for them, especially if the app spans multiple channels. Additionally, by automatically distinguishing each Journey as a separate entity, Airkit's Journey Model makes it possible to gather information regarding how a user is engaging with an application, even if nothing else is known about the user themselves.
Defining a Journey
An Airkit Journey starts when a user first begins to go through the flow of an app. This can happen in a multitude of ways, but regardless of how a Journey starts, it spans all of the user's interactions with that app, across all relevant channels, as long as the app has some way of recognizing the Journey. This is done by associating a Journey with unique identifiers. By default, Airkit provides the first identifier automatically: as soon as a Journey begins, it is assigned a unique ID (the "session ID") as an identifier. This allows every Journey to be immediately considered as its own separate entity, even if nothing else is known about the person embarking on it.
If an app is sufficiently simple, automatically-assigned identifiers might be the only pieces of data associated with Journeys through that app. Similarly, a user might exit an app before providing any information that might serve as unique identifier. In both cases, it is still valuable to keep track the Journey via its default identifier, for the purposes of data analytics if nothing else. You might want, for instance, to compare the number of Journeys started with the number of Journeys completed.
However, the real power of the Journey Model lies in how it allows a single Journey to span multiple channels by collecting relevant information and storing it in the form of identifiers. The exact nature of this relevant information varies, though emails and phone numbers are among the most common. If a Journey begins with a user making an appointment via a web app, and then continues through the user getting a confirmation text, this is made possible only because the user's phone number was in some way tied to their Journey. It wouldn't work otherwise – a phone number is required to receive a confirmation text, and if you send one, you want to ensure it's precisely confirming the appointment that was made online.
Identifying a Journey by information known by the user also allows said user to pick up their Journey where they left off should they leave – by design, force, or accident – in the middle of it. This is technically possible even when a Journey is identified only by automatically-assigned IDs. For example, in the case of web apps, an initial identifier is stored in the URL path. (For security reasons, this identifier is not the same as the session ID.) If a user records the URL path associated with the Journey they started – which is, critically, distinct from the more general URL they went to in order to start their Journey in the first place – they can resume their Journey where they left off. However, if the user did not take note of the identifier in the URL path before exiting the web app, as is more likely the case, they will have no way of finding it out, and will therefore not be able to access that initial Journey upon their return. They will be forced to start a new Journey, and repeat any aspects of it that they have already gone through.
Starting a Journey
A Journey starts whenever a user begins engaging with or being engaged by an Airkit app; this is when they are automatically assigned a unique ID as an identifier. You can start a Journey upon a potential user clicking a link, sending a text message, or calling a phone number. A Journey might also start when an API is triggered. Choosing a way for users to begin their Journey is one of the first things you do when creating an app in Airkit:
A single app might allow users to begin their Journeys through it via multiple channels. While each individual Journey can only begin once, different users accessing the app might begin their interactions with it – and thus their Journeys – in different ways. An app might, for example, allow users to begin their Journeys via either sending a text or making a phone call.
For a more detailed discussion on how to start Journeys from multiple channels, check out Sending Journey Links via Chat Bot.
Ending a Journey
Journeys don't last forever. By default, a Journey ends after thirty days, although this default can be changed in the Configuration Builder, modified dynamically with the Extend Journey Expiration Time Action, or overridden by the End Journey Action. The existence of this default is largely a matter of efficiency. Consider, for instance, cases where a user accidentally exits an app before reaching the end or providing any information that might serve as unique identifier. If the only way to end a Journey was by explicitly ending it once the user had successfully completed what they set out to do, this Journey would remain active but untouchable, in limbo, forever. With this default expiration, it only stays in this limbo for thirty days.
Once a Journey is over, a user cannot return to it; if they access the app again, they will begin a Journey anew.
Last updated