Skip to main content
Answered

Can I use event metadata as parameter in e-mails

  • March 31, 2024
  • 4 replies
  • 180 views

I tried to send personalised email to my user and used event metadata with some parameters into email.

  • I created data attributes, new event with metadata 
  • Triggered series on this event
  • Created email, and inserted event parameters there, but the problem is that when I receive email, value from event metadata custom_attributes are always empty.

Is there any way to fix it?

Thank you

Best answer by mateusz.leszkiewicz

Hi Keti, It’s Mat from the Support Engineering Team 😀

There might be several reasons behind that.

Did you create a conversation custom_attribute to send your event metadata to?
Are you creating this email via API? 

Please reach out to us to get help with this issue.

View original
Did this topic help you find an answer to your question?

4 replies

mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

Hi Keti, It’s Mat from the Support Engineering Team 😀

There might be several reasons behind that.

Did you create a conversation custom_attribute to send your event metadata to?
Are you creating this email via API? 

Please reach out to us to get help with this issue.


Hi Mat,

What I have done is

  1. Created data attribute from  https://api.intercom.io/data_attributes API call
  2. Created Series from Intercome portal: Event is triggered when the user changes their status via API, as a result automated email notification is sent
  3. Generated changestatus event from https://api.intercom.io/events API 

    {

    "event_name": “changestatus",

    "created_at": 1671028894,

    "user_id": 111111,

    "id": "8a88a590-e1c3-41e2-a502-e0649dbf721c",

    "email": "keti@test.me",

    "metadata": {

    "onetime_code": "12345",

    "custom_attributes.Test_Status": "Active",

    "custom_attributes.Test_GoogleMeet":"https://test.com"

    }

    }

  4. Email was sent, but custom_attributes were empty.

My goal is to get values from custom_attributes and put them into the email template.

 

Thank you very much,

Keti

 

 


Hello Mat,

Thank you for your reply, 

What I've been trying was

  1. I created data attributes via API https://api.intercom.io/data_attributes
  2. I created event https://api.intercom.io/events via API

"event_name": "changestatus",

"created_at": 1671028894,

"id": "8a88a590-e1c3-41e2-a502-e0649dbf721c",

"email": "keti@test.me",

"metadata": {

"onetime_code": "12345",

“custom_attributes.Test_Status": "Active",

"custom_attributes.Test_GoogleMeet":"https://meetgoogleblablabla.com"

  1. I created Series from Intercome portal which is called when the "changestatus" event occurs and sends email template. Email should be filled out with custom_attributes

The problem I face is that, values of custom_attributes aren’t visible into email

 

Thank you,

Keti 


mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

Hi Keti,

It looks like you might get stumble with some bug I bet our Product Team would want to have a better look at this.
Can you please reach out to us via Messenger in your workspace to see what we can do to help you resolve this roadblock?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings