To get Phrasee generated content into AJO, first, you need to create a Custom Action. The only prerequisite needed is your Phrasee API Token, and there's an article to help with that if needed.
You can find Custom Actions under Administration > Configurations > Actions
Create a new one and give it a meaningful name, like phraseeRealtimeAPI
Configure the endpoint as a GET request to https://realtime.phrasee.co/single_variant
Add a header, with label Authorization and value Bearer followed by your Phrasee API token
Add three variable query parameters: campaign_id, delivery_id, recipient_id
No authentication (covered by the header above)
Edit the response payload
Paste this payload example and set all elements to string
{
"variant_text": "Phrasee Variant 1",
"variant_id": "this is a variantID",
"campaign_id": "this is a experimentID",
"project_id": "this is a projectID",
"batch_id": "0",
"send_id": "this is a sendID",
"statistics_url": "https://mail-tracking.phrasee.co/live/open?parameters=willfollow"
}
That's it, all the configuration is done. Now you can use this Custom Action in journeys.
But first, don't forget to scroll back to the top of the panel to Save!