To run Alyce 1:Many campaigns that leverage the members of your Marketo Smart Campaigns, you'll first need to set up a webhook with custom header in your Marketo instance.
- Start at dashboard.alyce.com. Navigate to: Organization Settings > Integrations, and click "Manage" in the Marketo box. Find "Generated Marketo Webhook URL" and click "Copy URL".
- Navigate to your Marketo instance. Within Admin, navigate to: Integrations > Webhooks > New Webhook.
- Populate the following fields:
- Webhook Name - ex: Alyce Webhook
- URL - paste in the Generated Marketo Webhook URL you just gathered from Alyce
- Request Type - POST
- Template - you must copy and paste the template below
- Request Token Encoding - JSON
- Response type - None
- Click "Create"
New Webhook Template:
{"leadId": {{lead.id}}, "email": {{lead.Email Address}}, "firstName": {{lead.First Name}}, "lastName": {{lead.Last Name}}, "smartCampaignId":{{campaign.id}}}
Next, with the webhook created, add a custom header. The webhook will not work without it.
- Navigate to Webhook Actions > Set Custom Header
- Click "+Add"and enter
- Header: Content-Type
- Value: application/json
- NOTE: any inconsistencies in formatting will cause payload errors
- Click "SAVE"