How would you create a dynamic campaign tailored to a contact

Hi,
This is a little complicated but hopefully someone can help.

We have a directory website of wedding locations.
When brides search for wedding locations on our site we record the locations they search eg. London, Paris, New York etc.

We would like to create and send an email campaign to each bride based on their search parameters and include in it offers and suggestions of places they might like.

Using the data we have on the brides search location, can we use the API call ‘message_add’ to trigger a campaign to each bride and pass through the brides search location preferences in the htmlfetch parameter URL to an email template on our site that would generate a bespoke html email for that specific bride?

Parameter details from API docs:
htmlfetch* HTML version. URL where to fetch the body from.
Example: ‘somedomain.com

eg.
Bride AC contactID: 21
Location Search: Alaska
htmlfetch URL: http://ourdomain.com/emailtemplates.php&location=alaska&bride=21

Bride AC contactID: 287
Location Search: Berlin
htmlfetch URL: http://ourdomain.com/emailtemplates.php&location=Berlin&bride=287

Bride AC contactID: 67
Location Search: Chicago
htmlfetch URL: http://ourdomain.com/emailtemplates.php&location=Chicago&bride=67

At he same time, it wold be nice not to create hundreds of campaigns on our AC account in the process - I’m worried that each unique URL that contains bride variables would be treated as a new campaign.

In time we would want to create a number of activity based emails that would all have an html email template on our site and pull in suggested content for that bride.

Any thoughts on this and if it’s possible to pass the data and not generate a thousand campaigns a week?

Best regards,

Bob

1 Like

I would recommand sometihing like that:
Instead of sending individual message to the bride using API I would use the API to set a specific tag when a search is done.

Let say a brdie search for london then add a tag “london” to the bride contact using API calls.
Then you can setup any automation for any specifique location you want.
this will automaticly add the brides searching for london in the “london” automation sending her some marvelous mail about weddings in london.

I did it like that to qualify my AC contacts:
Hope it helps.

3 Likes

Thanks StudioConnect, appreciate the advice.
Think through things further I think we would still want to generate the html email campaign on our server.

To do this I’d really like to know if I can make an API call using the htmlfech endpoint and pass variables in the URL to the email creative?
eg.
htmlfetch URL: http://ourdomain.com/emailtemplates.php&location=alaska&bride=21

And if this would be treated as a single campaign or as a new campaign?

We intend to do other similar triggered mails based on user interaction with the site eg. Adding a venue to shortlist or viewing some news item or reading a blog article. Most of this means we’d have to use logic on our side to generate suggested content and build a dynamic email campaign taylored to indevidual brides actions on the fly. Hence the interest in passing vars through the htmlfetch URL and my concern that we’ll generate a lot of campaign.

Hope this makes things clearer and any help is much appreciated.

Cheers
Bob