Skip to main content
All CollectionsIntegrationsE-mail integration
Request email address from empty advice
Request email address from empty advice

Read here how to find out your customers' email address from empty advice.

Anniek van Vulpen avatar
Written by Anniek van Vulpen
Updated over a year ago

πŸ’‘ Good to know: This feature is available when you have a Professional license or higher.

Are you interested in this functionality? Send us an email at [email protected] and we'll help you get started.

In addition to emailing the advised products, you can also request the customer's email address on an empty advice page or on an info-page.

In this tutorial, we will discuss how to extract the email address when a customer is presented with an empty advice.

πŸ’‘ Good to know: Aiden does not send emails on your behalf and does not store data, so you must connect product finder to your Customer Data Platform to ensure the data is stored properly and action is followed up. You'll find more information about connecting to a CDP below in step 2.

Step 1: Settings in Aiden

1. In the Conversation section, go to Advice and click on the Customer contact tab on the right.

2. Under theEmpty Advice heading, turn on the Ask for customer email address button and fill in the text for the call-to-action button.

3. You can optionally enable the newsletter opt-in with your own text. Use this e.g. to check with customers if they want to subscribe to your newsletter.

4. Finally, complete the customer journey after submitting the email address with a confirmation. You can create your own text for this in the form submitted message field.

5. Next, you need to link the product finder to your CRM or CDP to ensure that actual action is taken when a customer enters their e-mail address.

‍

Step 2: Link your product finder to your customer data platform

Once a customer shares their contact information, they naturally expect to be contacted!

πŸ’‘ Good to know: Aiden does not send emails on your behalf, so you must connect product finder to your Customer Data Platform to ensure an email with the advice is sent to your customer.

This is how linking to email works:

For each customer who fills out the form, Aiden sends an "event" from the product finder to the page in which it is embedded. This event contains:

  • the customer's e-mail address

  • the name of the used product finder

  • Whether the customer checked the checkbox

Here you can see what the actual event looks like - and how you interpret the data.

type NoResultsCustomerInfoSubmittedEvent = {
type: "no-results-customer-info"
advisorId: string
advisorName: string
isPreview: boolean
data: {
email: string
checkboxChecked: boolean
}
}

Name

What it contains

advisorId

The unique identifier of the Aiden app. This is guaranteed to be unique and could be used to differentiate multiple apps with the same name, but is otherwise not needed.

advisorName

The name of the application you’ve set in Aiden

email

The email address entered by the customer

checkboxChecked

This will be either a true or false value and indicates whether the customer ticked the checkbox. If you did not enable a checkbox, the value will always be false.

On your end, you need to put a piece of Javascript on your web page that picks up the Aiden event and sends the information to your CRM/CDP.

You can use the following script as a starting point:

<script type="text/javascript">
// Listen for events on the webpage
window.addEventListener("message", function (event) {
// Check if the event is from Aiden and if it is the
// customer info submission event
if (event.data.advisorId && event.data.type === "no-results-customer-info") {
// Access the event data using event.data
var email = event.data.data.email
var checkboxChecked = event.data.data.checkboxChecked

// ... Add your CRM/CDP script code here
}
});
</script>

Complete the script with a few lines of code that will allow your CRM/CDP to pick up the event and understand what it should do next.

Once this link is set up, you need to set up a trigger in your CRM/CDP that takes the appropriate action. For example, consider an e-mail containing a link that allows a customer to schedule a (physical) appointment.

πŸ’‘ Need help setting up email integration? Get in touch and we'll help you get started: [email protected].

‍

Step 3: Publish your changes and test, test, test!

Finally publish your product finder. After that, make sure to test the CRM/CDP link and check if the data is coming in properly and possible emails are being sent. Test the email link regularly to avoid dissatisfied customers!

Did this answer your question?