Configuring a Smart Campaign in Marketo to Automatically Send a Thnks
This guide walks you through automatically triggering the sending of a Thnks as part of a Marketo Smart Campaign.Prerequisites
- Access to the Thnks API.
- Thnks API Key (Authorization Token).
- URL for Thnks API endpoint.
Setup
Prepare Webhook Data
Thnks API URL
https://api.thnks.com/api/v1/gift_requests
HTTP Method
POST
Data (JSON format)
-
Replace
<GIFT_ID>
with the Thnks ID of the gift you want to send. -
Use Marketo tokens (e.g.,
{{lead.Email Address}}
) to populate dynamic lead information.
Headers
-
Content-Type:
application/json
- Authorization: Your Thnks API key (Authorization Token).
Create a Webhook in Marketo
Log into Marketo and go to the Admin section
Under Integrations, click Webhooks
Click New Webhook to create a new webhook
-
Webhook Name: Give your webhook a meaningful name, e.g.,
Thnks_Welcome_Program_CA
. -
URL: Use the Thnks API URL:
https://api.thnks.com/api/v1/gift_requests
-
Request Type: Set this to
POST
. - Template: Copy the JSON template mentioned above and adjust as needed with the correct tokens for dynamic data population.
- Request Token Encoding: None.
-
Response Type: Set to
JSON
.
Add Custom Headers
-
Content-Type:
application/json
- Authorization: Paste your Thnks API Key.
Map Webhook Response (Optional)
Response Mappings
Add Webhook to Smart Campaign
Create or Edit a Smart Campaign in Marketo
In the Flow tab of the campaign, add the Call Webhook action
Select the webhook you just created (e.g., Thnks_Welcome_Program_CA)
Adjust other flow actions and campaign settings as needed
Test and Verify
Run a test by triggering the Smart Campaign with a test lead
Check the response from Thnks in the webhook log
Make any necessary adjustments to the payload or tokens based on the test results
Best Practices
Error Handling
Security
Testing