---
title: [Tech] Configuring a custom action
slug: danske-bank-hol/tech-configuring-a-custom-action
docTags: 
createdAt: 2025-01-22T18:15:32.891Z
---

## Actions overview

To get an overview of all actions in Adobe Journey Optimizer:

1. In the menu on the left side, under **Administration**, click on **Configurations**. You will see a set of tiles. Click on **Manage** in the **Actions** tile to get an overview with all existing custom actions.

## Configuring a custom action

We'll be configuring a custom action to notify the customer's local branch to reach out to the customer via direct communication, such as by phone. In our case, the customer has submitted their home loan application, received the documents to sign, but still have not signed them. We want to let the branch know to reach out if they still haven't signed their documents after 1 week.

:::hint{type="warning"}
If you do not want to configure your own custom action, you can reuse the custom action **notifyBranch** that has aleady been created for you. Feel free to skip this exercise and proceed to **Creating the journey.**
:::

To configure a new action, click **Create Action**. A menu will open on the right side.

1. Set the **name** to  `yourName_NotifyBranch`.
2. Keep **Action type** as **Custom.**&#x20;
3. Keep **Channel** as **Other.**
4. Keep **required marketing action** as **none.**
5. In the Endpoint configuration section:
   1. Enter **URL** as `https://webhook.site/e8bd3957-17c5-45e2-8087-648e39282b92`
      *(This is a fake API endpoint created to send the product and notification to the call centre/branch, it sends the payload to a demo webhook)*
   2. Select the **Method** as **POST**
6. In the Headers section, ensure there are two headers that are available by default:
   1. Header 1 with **Label** as **Content-Type** and **Value** as **application/json**
   2. Header 2 with **Label** as **Charset** and **Value** as **UTF-8**
7. Leave the **Query parameters** section empty.
8. Keep **Authentication type** as `No authentication` .
9. On the payload section, **click** on the **pencil** button to open a popup to paste the response payload.

   ![](https://api.archbee.com/api/optimize/6H6rknlvdVrktAepVnpsA-wTPnLk8vaszCeLUVSRgDr-20250124-171814.png)
10. Paste the below response:
    `{`
    `	"customerID": {`
    `		"toBeMapped": true,`
    `		"dataType": "string",`
    `		"label": "Email Address"`
    `	},`
    `	"status": "Agreement not signed",`
    `	"product": "Home loan",`
    `	"purchase price": {`
    `		"optionalMapping": true,`
    `		"toBeMapped": true,`
    `		"dataType": "integer",`
    `		"label": "Purchase Price"`
    `	},`
    `	"interest rate": {`
    `		"optionalMapping": true,`
    `		"toBeMapped": true,`
    `		"dataType": "decimal",`
    `		"label": "Interest Rate"`
    `	},`
    `	"deposit": {`
    `		"optionalMapping": true,`
    `		"toBeMapped": true,`
    `		"dataType": "integer",`
    `		"label": "Deposit"`
    `	}`
    `}`
11. The payload should auto detect the datatypes of the attributes as below. Click on **Save** to continue.

    ![](https://api.archbee.com/api/optimize/Kr9jNQk3X89PNSZafWHK9-0IhTeIdPDesRXh66olpdt-20250318-100109.png)
12. Now the response field should say 6 fields selected:
13. ![](https://api.archbee.com/api/optimize/Kr9jNQk3X89PNSZafWHK9-lidXrWYMQyasuJsUK6oVw-20250318-100506.png)

Scroll all the way to top and click on **Save.**

![](https://api.archbee.com/api/optimize/Kr9jNQk3X89PNSZafWHK9-cWxtqTa8X_TLOsVfznfmP-20250318-100808.png)

:::hint{type="success"}
You have now successfully created the custom action to send data to an external endpoint! This can be used to integrate with any system that needs to receive real-time notifications.
:::

