Announce new Recurly subscribers in HubSpot, Sheets and Slack

By General Input

Every new Recurly subscription lands in your CRM, your new business log and your revenue channel within seconds, with no duplicate contacts.

Integrations

  • Recurly
  • HubSpot
  • Google Sheets
  • Slack

Type

Deterministic Code

Categories

  • Operations
  • Sales

When Recurly sends a new_subscription_notification webhook, fan the new subscriber out across HubSpot, Google Sheets and Slack. Every step is a fixed field mapping from the webhook payload. There is no judgement, no summarizing and no drafting anywhere in this workflow.

Only react to the subscription notification. When a signup also triggers a payment, Recurly sends two separate notifications, one for the subscription and one for the payment. If the workflow responds to both, the same new customer gets processed and announced twice, so ignore any notification type other than new_subscription_notification.

Read these fields from the notification payload: the account email, the account code, the account first and last name, the plan name, the subscription start date, the subscription amount and the currency. Recurly may deliver the notification as XML rather than JSON, so parse the body accordingly and read the fields by name.

First, use HubSpot Search Contacts to look for a contact whose email exactly matches the account email from the notification. If a contact is found, use it as is and do not modify it. Only if no contact matches, use HubSpot Create Contact to create one with the email, first name and last name from the notification. The search must always run before the create. Recurly can re-deliver the same webhook, and this ordering is the only thing keeping a re-delivery from creating a duplicate contact.

Next, use HubSpot Create Note and associate it with that contact. The note should record the plan name, the subscription start date and the subscription amount with its currency, so anyone opening the contact record can see what the customer bought and when.

Then use Google Sheets Append Values to add one row to the new business log. The columns are in a fixed order: date, account code, email, plan name, amount, currency. Append a single row per subscription notification.

Finally, use Slack Send a Message to post to the revenue channel announcing the new subscriber. The message should name the customer, the plan they signed up for and the value of the subscription with its currency.

Two details about Recurly data matter here. Monetary amounts are decimal values already expressed in the resource currency, for example 9.99, rather than integer cents, so write the amount straight into the spreadsheet row and the Slack message without dividing by 100. The account code is a human readable code, so if you ever need to call back to Recurly for extra account detail, prefix the code with code- in the path, for example code-bob.

If an optional field such as the plan name or the start date is missing from the payload, leave that cell or line blank rather than guessing a value.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageWin back LiveChat visitors whose chats went unansweredLet 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 boardChat quality review board for LiveChat support leadsA searchable RFP answer library your bid team drafts fromLinkedIn Ads budget pacing dashboard for every client account