Update Customer Identifier

The Update Customer Identifier Action is used to update the unique identifier associated with the user that is currently having a Conversation.

📘

Enterprise Feature

Accessing Conversation Actions requires an ENTERPRISE license. If you would like to enable this feature for your Airkit Organization, please contact your Airkit representative or contact [email protected].

Use Cases

Customer Identifiers can be used in tandem with the Find Conversations by Customer Identifier to maintain context across conversations. As Customer Identifiers need to be unique for each user, it is not uncommon to associate them with some property tied directly to the user, such as their phone number or email address. Update Customer Identifier Action allows you to keep using these sorts of things as identifiers, even if:

  • a user changes their phone number, or
  • a user changes their email address.

Properties

Customer Identifier

Expects type Text.

The new Customer Identifier. This value should be unique for each user even after it is updated.

Example

In this example, phone numbers have been used to set Customer Identifiers, as it is usually reasonable to assume that each user has exclusive use of their phone number. The Update Customer Identifier Action is used in tandem with the Ask Question Action to update the Customer Identifier after they've had a phone number change:

The Ask Question Action will send the message "What is your new phone number?" and then bind the user's response to the Global Variable, phone, which is then used to define the Customer Identifier property in the Update Customer Identifier Action.