Test the solution

Test the solution

Transcript
To test this use case, a simple HTML form was created to capture a user’s investment preference. The form includes basic input fields for the customer name and email address, and investment preference. When the form is submitted, the entered values are sent to the backend service, which then triggers the event ingestion into Adobe Experience Platform. The received email serves as a confirmation message acknowledging the successful submission of the customer’s investment vehicle preference. It features a large, visually engaging hero image at the top that reinforces themes of financial growth and opportunity. The email opens with a personalized greeting addressing the recipient by name and clearly confirms their selected investment option, stocks. The message reassures the customer that their preference has been recorded and will be used to deliver more relevant financial guidance and tailored opportunities in future communications. The cURL command downloaded during the creation of the HTTP source connection was reused in the Node.js application. The send event route is a server-side endpoint that handles form submission data and sends it to Adobe Experience Platform as an experience event. When the route is called, it extracts the user’s selected asset class, email address, and name from the request body. This data is then mapped into an XDM Experience Event, compliant payload. The event is labeled with a specific event type and includes an identity map using the customer’s email, allowing AEP to associate the event with the correct individual. Finally, the route sends the payload to AEP’s data collection endpoint using the required authentication and sandbox headers.

Deploy the sample assets

If you don’t have Node.js installed, download and install it from here

Verify installation by running:

node -v

npm -v

Set up the project folder

Create a new directory for the sample app using the following commands:

mkdir trigger-journey

cd trigger-journey

Initialize the Project

npm init -y

Install the required frameworks

npm install express dotenv axios cors

Copy asset files

  • Unzip and place the contents of project-root.zip in the trigger-journey folder.

  • Create a folder called public in the trigger-journey folder

  • update the .env file with the appropriate values. These values are available from the cURL command downloaded while creating the HTTP Source connection.

  • Unzip the contents of index.zip into the public folder

Run the server

Make sure you are in the trigger-journey directory.
Execute the command node server.js
Point your browser to web page
Fill and submit the form. The journey gets triggered, and an email is sent to the email id entered in the form.

recommendation-more-help
31a09644-04f1-49b4-a1ef-aa1efd05c6c2