The Actor Model

Every Journey App has an Actor. The Actor represents an individual customer going through an Airkit App. Airkit uses this Actor to help route incoming chat and voice interactions to the correct customer. The Actor Model allows the Airkit platform to co-exist on multiple different channels of communication, allowing for the creation of omni-channel Journeys.

A key piece of the Actor is a user's phone number. Chat and Voice operations rely on the Actor being correctly configured. Typically, this process occurs during the Journey Start Event. 

Setting a Customer Mobile Number

Actor initialization requires two steps to be performed. First, the actor variable must be initialized. This can be done using a Set-Variable Action

organizing infoorganizing info should be the phone number associated with the customer. The phone variable on the actor must be initialized for Chat and Voice communication. The phone number must also be formatted into the E164 format.

The second step is to invoke the Initialize Actor Action. This Action performs the final registration of the Actor. There is a possibility that an Actor already exists. An Actor might already exist if this customer has gone through the Journey before, or they might have started a Journey via a different channel. Regardless, the set Actor Action allows for this conflict to be resolved. The two options are:

  • Replace: If a matching Actor exists, replace the Actor. This associates the Actor with the current Journey.
  • Fail: If a matching Actor exists, cancel the Set Actor Action. Chat and Voice channels will not be enabled for this journey
organizing infoorganizing info

Starting from Voice and Chat

If a Journey is started from an SMS message being sent to a phone number or a voice call to that phone number, Airkit captures the incoming phone number in the session.start. With the phone number surfaced in session.start, the actor variable can be set and initialized on Journey Started, to set the Actor to the incoming phone number.

organizing infoorganizing info

Updating Actor Mid Journey

Most Actor initialization occurs at the beginning of an app. However, some Journeys may not capture the customers phone number up front. The Actor Initialization can still occur.

The two steps to initialize an Actor can be performed in any Event. For example, after capturing a user's phone number in a string input, a Button Click Event could trigger the two needed Actions. This enables configuring the Actor mid-Journey. After configuration, Chat and Voice bots will be enabled.

Did this page help you?