Send daily surveys to active customer accounts

Recipe ToolsMarketingWorkatoCRMDeveloper Tool

What it does

When the scheduled time arrives each weekday at 4 PM, this automation queries Salesforce for accounts in Implementation with activity in the last day. It retrieves related GuideCX projects and Slack user IDs, then prepares survey data for bulk upload.

Who it's for

Customer success teams who track account health through daily surveys tied to recent customer activity.

How teams use this

Track health of active customer accounts

Send surveys each weekday to team members supporting accounts that had activity in the last 24 hours. The survey data feeds into a health score that stays current without manual updates.

Exclude closed projects from surveys

Filter out GuideCX projects with closed status so surveys only reach teams on active engagements. The automation skips those records before preparing the bulk upload.

Add custom survey questions per account type

Extend the Python code to check the Account type and include different survey questions based on whether the customer is in onboarding or ongoing support. That requires a condition in the formatting step.

Send surveys to a Slack channel instead

Retarget this automation to post survey links in a dedicated Slack channel for the team to complete, rather than sending direct messages. The data gathering stays the same and only the delivery method changes.

How it works

  1. Run every weekday at 4 PM. This automation starts on a daily schedule at 4 PM, but skips Saturdays and Sundays so surveys only go out on business days.
  2. Find accounts with recent activity. Search Salesforce for all Accounts in Implementation status for BuildOpsCore that had activity within the last day, and join the related GuideCX projects to get project IDs.
  3. Filter active GuideCX projects. Run Python code to get all GuideCX projects that are not closed and match the project IDs from the accounts with recent activity.
  4. Retrieve Slack and GuideCX user IDs. Search Salesforce Users to get the Slack User IDs and GuideCX User IDs needed to send surveys to the right team members.
  5. Prepare survey data for bulk upload. Run Python code to loop through all Salesforce Users, identify any missing Slack IDs, and format an API payload for bulk uploading the survey recipients.