random assign coupon to new contact

Hello everyone,

Good morning, Good afternoon, Good evening,

i want to assign a coupon code to each contact, so that when i send the marketing email, they can get the specific coupon.

for the excisting contact, we can fill in the coupon in the contatc property by hand. but i want to know for the new created contact, how to wright an woekflow to random assign the coupon to new contact automatically? and where can i store this coupon code?

Hi @Jaylin,

Not out of the box, no. This would either require a custom code workflow action…

… a third party tool like Zapier, Make, or similar in combination with a list of coupon codes:

… or an app from the HubSpot app marketplace designed to handle coupon codes:

Best regards!

You can create a workflow that triggers on new contact creation and uses a custom code action (or integration with a coupon database) to assign a random coupon. Store the coupon code in a custom contact property for easy personalization in future emails.