Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Log and thank legal referrals with webhooks, Google Sheets, and email digests

When an API call/webhook arrives, it handles email using SMTP Email, Google Sheets.

What it does

## Referral Intake & Thank-You Loop ### How it works 1. The workflow receives and normalizes referral form submissions via webhook. 2. It validates the referral, logs it to a Google Sheets ledger, and conditionally sends thank-you emails to referrers. 3. Notifications about each referral are sent to the firm regardless of thank-you email outcomes. 4. A scheduled monthly trigger reads the referral ledger, computes referral counts, and filters referrers needing a reciprocity reminder. 5. It builds and logs a monthly reminder email for referrers to encourage reciprocal referrals and sends this email. ### Setup steps - [ ] Set up webhook credentials for "When Referral Form Is Submitted" node to receive referral forms. - [ ] Configure Google Sheets credentials and specify the spreadsheet for referral logging in "Log Referral To Ledger" and "Read Referral Ledger" nodes. - [ ] Ensure email credentials are configured for the "Send Referral Thank You Email" and "Send Firm Referral Notification" and "Send Reciprocal Referral Reminder Email" nodes. - [ ] Set up and configure the compliance sub-workflows used in "Check Compliance Before Thanking Referrer" and "Log Reminder For Compliance Audit" nodes. - [ ] Configure the schedule trigger for the "Send Reciprocal Referral Reminder Monthly" node. ### Customization Customize email content in the code nodes building thank-you and reminder emails to match your branding and messaging tone. Adjust referral validation logic in the normalization code node as needed to fit your specific form data structure.

The steps

  1. When Referral Form Submitted
  2. Normalize Referral Data
  3. If Referral Submission Valid
  4. Skip Invalid Referral
  5. Append Referral To Ledger
  6. If Referrer Email Exists
  7. Skip Missing Referrer Email
  8. Build Thank You Email
  9. Check Thank You Compliance
  10. If Thank You Approved
  11. Send Thank You Email
  12. Skip Referrer Opt-Out
  13. Build Firm Notification Email
  14. Send Firm Notification Email

22 steps in total.

Similar automations