SMART
Overview
What is SMART?
Q2 SMART is a targeting and messaging platform that will help FI marketers target messaging in online banking (including banner ads) based on user behavior, and easily manage multiple customized promotional campaigns.
What is a Trait?
A trait is a user-level data metric or model that represents a characteristic or behavior about an online banking user. It is stored in the form of a key and value.
What is an Audience?
An Audience is a logical collection of Traits. Audiences are created by our customers in order to identify interesting groups of users that they can target in SMART or Composable Dashboard today.
How do I interact with SMART?
The SDK maintains the q2-smart package in partnership with the Q2 SMART team. You can install the q2-smart package with the q2 upgrade command and selecting the q2-smart package.
This will install a package that acts as a wrapper to the internal SMART API.
Online form extensions also have a helper property that will allow for easy interaction. For example:
config = SmartTraitStoreConfig("smarttest-dev", "tps-reports")
self.smart_ts = config
audiences = await self.smart_ts.audience.get()
self.logger.debug(audiences.audience_list[0])
audience_id = audiences.audience_list[0].id
users = await self.smart_ts.audience.get_users(audience_id)
count = await self.smart_ts.audience.get_count(audience_id)
What are those values used for the configuration?
The SMART Trait Store Configs takes two values. These values are environment stack identifiers (also known as env stacks).
The first value is the source, and identifies the requester. This is used for a number of things like auditing and permissions.
The second value is the target. The target env stack can usually be found in the self.hq_credentials.env_stack variable.