Fetch achievement data from Talon.One using Adobe
In this tutorial, let's set up Adobe Experience Platform to fetch achievement data from Talon.One using the Talon.One Batch Source Connector.
After that, you can use Adobe Journey Optimizer, for example, to send a reward code to every customer who completed a specific achievement in the last week.
How it works
If a customer has completed an
achievement in a session,
this is recorded as an
effect in a
talon_session_closed event in Talon.One.
The batch source connector pulls these events from Talon.One, filtered by event type. Adobe Journey Optimizer can then act on that data to send targeted messages.
This approach is well suited for handling high-volume batched event data. For use cases where you need to react immediately as events occur, use the streaming events source.
For more information, see our overview page and the documentation provided by Adobe.
Talon.One requirements
- You have an Application and campaign in Talon.One.
- The Achievements feature is enabled in your campaign.
Set up the integration
Create an API key in Talon.One
In the Campaign Manager, create a Management API key.
We will use the API key in a later step to configure the batch source connector.
(Optional) Create an achievements schema in Adobe
If you already have a schema in Adobe Experience Platform that includes the necessary fields to capture achievement data, you can skip this step.
For this tutorial, let's assume we don't have a suitable schema yet. As a starting point, we can use the Loyalty Challenge State field group provided by Adobe.
- In Adobe Experience Platform, open the Schemas workspace.
- At the top right of the page, click Create schema.
- Choose Manual and click Select.
- Choose Experience Event as the schema base class and click Next.
- In Name and review, provide a name for the schema, for example,
Talon.One Achievements Schema, and click Finish.
The schema editor opens. - In the left sidebar, under Composition, next to Field groups, click Add.
- In the list of field groups, find Loyalty Challenge State, select it, and click
Add field groups.
The schema should now include an_experience.ajo.loyalty.challengeobject. - In the right sidebar, under Schema properties, enable Profile, confirm the dialog regarding the primary identity, and click Enable.
- Click Save.
Create the achievement in Talon.One
Let's create the achievement and complete it, so that we have some data to work with when configuring the batch connector:
-
In your campaign, create an achievement with the following properties:
- Type: Recurring on completion
- Name:
Stamp Collector - API name:
stamp_collector - Description:
You earned a stamp with every purchase and filled your card. Reward unlocked. - Target:
5
-
Create a rule with the following properties:
What Name Properties Conditions Check for event types
and custom event valuesEvent type: Customer Session ClosingEffects Update customer progress - Achievement name: Select the achievement you created.
- Update progress by:
1
Now, whenever a customer session closes, the achievement progress is increased by
1. When the customer reaches the target of5, the achievement is marked as completed. -
Send five API calls to the Update customer session endpoint, each with a different
customerSessionIdand with thestateproperty set toclosed.
The last API call should trigger the completion of the achievement for the corresponding
customer session, and create an effect of type increaseAchievementProgress with the
isJustCompleted property set to true.
Configure the batch source connector in Adobe
- Download the example achievement mapping file.
- In Adobe Experience Platform, open the Sources workspace.
- On the Catalog page, in the Loyalty section, find the Talon.One Batch Source Connector. If available, use the (Beta) version to access the latest features and improvements.
- Click Set up or, if you used the connector before, Add data.
- Select New account and provide the following authentication details:
- Account name: Type a descriptive name, for example,
Talon.One Batch Account. - baseUrl: Type the base URL of your Talon.One deployment, for example,
mycompany.europe-west1.talon.one. - Talon.One Management API key: Type
ManagementKey-v1, followed by the API key you created in the previous step. For example,ManagementKey-v1 abcdef1234567890.
- Account name: Type a descriptive name, for example,
- Click Connect to source, then click Next.
- In Select data, provide the following details:
- applicationId: The ID of your Talon.One Application.
tip
To see the Application ID, open your Talon.One application and check the URL in your browser.
For example, if the URL ishttps://mycompany.europe-west1.talon.one/applications/198/, the application ID is198. - sessionType: The event
type. In this tutorial, we
want to track completed achievements in closed sessions, so we use
talon_session_closed.
- applicationId: The ID of your Talon.One Application.
- Click Select, verify that data has been fetched, and click Next.
important
Without data, you will not be able to complete the next steps.
- In Dataset details, create a new dataset based on the schema you
created and name it, for example,
Talon.One Achievements Dataset. - Enable the Profile dataset option.
- In Dataflow details, provide a name for the dataflow, for example,
Talon.One Achievements Dataflow, and click Next. - In Mapping, click Clear all.
- Click Import mapping > Import mapping from file, upload the example mapping file from step 1, and click Next.
- In Scheduling, choose how often you want the dataflow to run. To run it once a
week, select Week and set the interval to
1. - Click Next and review the dataflow details. If everything looks good, click Finish.
The batch source connector now runs immediately and again next week, pulling any new achievement data from Talon.One into Adobe Experience Platform.
Preview the data
Let's check if the achievement data has arrived in Adobe Experience Platform:
- In Adobe Experience Platform, open the Datasets workspace and open the dataset you
created for this tutorial, for example,
Talon.One Achievements Dataset. - In the top right of the page, click Preview dataset to check for new data.
If the button is disabled and labeled Preview not available, wait and check again. It can take several minutes for the data to be received from Talon.One and appear in the dataset.
Next steps
Now that you have achievement data in Adobe Experience Platform, you can use it to trigger personalized customer journeys in Adobe Journey Optimizer.
For example, you can set up a journey that sends a congratulatory email with a unique reward code to customers who completed a specific achievement in the last week.