ÃÛ¶¹ÊÓÆµ

3.2.3 Define a custom action

In this exercise, you’ll create a custom action to send a message to a Slack channel.

Login to ÃÛ¶¹ÊÓÆµ Journey Optimizer by going to . Click Journey Optimizer.

ACOP

You’ll be redirected to the Home view in Journey Optimizer. First, make sure you’re using the correct sandbox. The sandbox to use is called --aepSandboxName--. You’ll then be in the Home view of your sandbox --aepSandboxName--.

ACOP

You’ll now use an existing Slack channel and send messages to that Slack channel. Slack has an easy-to-use API and you’ll use ÃÛ¶¹ÊÓÆµ Journey Optimizer to trigger their API.

Demo

In the left menu, scroll down and click Configurations. Next, click the Manage button under Actions.

Demo

You’ll then see the Actions list. Click Create Action.

Demo

You’ll see an empty Action popup.

Demo

As a Name for the Action, use --aepUserLdap--TextSlack.

Set Description to: Send Message to Slack.

For the URL Configuration, use this:

  • URL: https://2mnbfjyrre.execute-api.us-west-2.amazonaws.com/prod
  • Method: POST
NOTE
The above URL refers to an AWS Lambda function which will then forward your request to the Slack channel as mentioned above. This is done to protect access to an ÃÛ¶¹ÊÓÆµ-owned Slack channel. If you have your own Slack channel, you should create a Slack App through , you then need to create an Incoming Webhook in that Slack App, and then replace the above URL by your Incoming Webhook URL.

Demo

You don’t need to change the Header Fields.

Demo

Authentication should be set to No Authentication.

Demo

Under Payloads, you need to define which fields should be sent towards Slack. Logically, you want ÃÛ¶¹ÊÓÆµ Journey Optimizer and ÃÛ¶¹ÊÓÆµ Experience Platform to be the brain of personalization, so the text to send to Slack should be defined by ÃÛ¶¹ÊÓÆµ Journey Optimizer and then sent to Slack for execution.

For the Request, click the Edit Payload icon.

Demo

You’ll then see an empty popup-window.

Demo

Copy the below text and paste it in the empty popup window.

{
 "text": {
  "toBeMapped": true,
  "dataType": "string",
  "label": "textToSlack"
 }
}

You’ll then see this:

Demo

Scroll up and click Save one more time to save your action.

Demo

Your custom action is now part of the Actions list.

Demo

You’ve defined events, an external data sources and actions. Now let’s consolidate all of that in one journey.

Next Step: 3.2.4 Create your journey and messages

Go Back to Module 3.2

Go Back to All Modules

recommendation-more-help
aeafc5b5-cd01-4e88-8d47-d76c18d7d349