Intro

If you're using Marketo as your Marketing Automation Tool, it is possible for you to connect it to Livestorm. You can send data from Livestorm to Marketo using our native integration. But you may also want to pull additional data from Livestorm to Marketo.

In this article, we'll show you how to add a webhook to your Marketo smart campaign to pull those data.

How to

  1. Create a custom field "Livestorm_sessionid" for your leads:

    1. In "Admin">"Data Management">"Field Management" click on "New Custom Field"
    2. On object "Person", create a "String" named "Livestorm_sessionid"

    Untitled

  2. Create a Livestorm Webhook:

    1. In"Admin">"Integration">"Webhooks" click on "New Webhook"
    2. Fill the form with the following information: Webhook Name : Get People Attributes URL : https://api.livestorm.co/v1/sessions/{{lead.Livestorm_sessionid:default=edit me}}/people?filter[email]={{lead.Email Address:default=edit me}} Request Type: GET

    Reponse type: JSON

    Untitled

    1. Click on "Webhook actions">"Set Custom Header" and add the following properties to your header: Authorization: [your API Key]

    Untitled

  3. In “Response Mapping” click “Edit” and, for each of the people attributes you’d like to gather in Maketo, map data[0].attributes.registrant_detail.fields[n].value where n is the number of your attributes in the list, with the marketo field where you want to store this field.

Untitled

  1. In your Program smart campaign trigger by someone being added to your program in "Flow" add an action "Change Data Value" for attribute "livestorm_sessionid" and for the "New Value", input the ID of your session you'd like to register contacts to. (you can find it in the URL of the room of your event)

Untitled

  1. Add a "Call Webhook" action and select the "Get People Attributes" webhook you just created