Send a SurveyMonkey survey when a HubSpot deal is won

By General Input

When a deal moves to Closed Won, the new customer is added to your onboarding survey and the invite goes out three days later.

Integrations

  • SurveyMonkey
  • HubSpot
  • Google Sheets

Type

Deterministic Code

Categories

  • Sales
  • Customer Support

Every time a deal is moved to Closed Won in HubSpot, I want the new customer added to my SurveyMonkey onboarding experience survey automatically, so nobody has to remember to send it. Trigger this from a HubSpot webhook that fires on the deal stage change, and only continue when the new stage is Closed Won.

Start with HubSpot Get Deal for the deal id on the webhook payload, requesting associations so I get the associated contacts along with the deal name and the close date. Take the primary associated contact and call HubSpot Get Contact to grab that person's first name, last name, and email address. If the deal has no associated contact, or the contact has no email address, stop and do nothing rather than sending a broken invite.

Add that person to SurveyMonkey with Create Contact using their email, first name, and last name. Then, on my existing email invite collector for the onboarding experience survey, use Create Message to build the invite, Add Message Recipient to attach the contact I just created, and Send Message to schedule it.

Do not send the invite the same day. Schedule it for three days after the deal close date, so the survey lands once onboarding has actually started. The SurveyMonkey Send Message operation supports scheduling a future send time rather than only sending immediately, so this should be one scheduled send and not a second workflow that waits.

Last, append a row to my Google Sheets tracker with Append Values recording the deal name, the contact email, the close date, and the scheduled send date, so we always have a record of who was surveyed and when.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageLet support send one-off Loops emails without an engineerTurn Mailjet email clicks into ranked HubSpot follow-upsStop cold emails to anyone with a live deal in PipedriveiMessage campaign console with pre-flight checks and delivery boardA searchable RFP answer library your bid team drafts fromLinkedIn Ads budget pacing dashboard for every client accountSee which target accounts just started advertising on LinkedInFront desk appointment confirmation board for the next 3 days