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

Send client matter status updates from Clio via Twilio SMS and email

When an API call/webhook arrives, it handles email using IMAP Email, SMTP Email, Twilio.

What it does

## Matter Status Bot ### How it works 1. The workflow triggers on incoming client queries via SMS webhook or email read. 2. It parses incoming messages and identifies clients by matching phone numbers or email addresses with Clio contacts. 3. For identified clients, it checks cooldown periods to avoid repeated rapid replies. 4. It retrieves open matter statuses from Clio and composes status replies. 5. The workflow runs compliance checks before sending replies via SMS or email, respecting client opt-outs. 6. If no client match is found, it sends a "client not found" reply via the relevant channel. ### Setup steps - - [ ] Configure Twilio credentials for SMS send and webhook receive functionality. - - [ ] Set up IMAP email credentials for reading incoming client emails. - - [ ] Configure SMTP or email send credentials for sending email replies. - - [ ] Provide Clio API base URL and authentication credentials as environment variables. - - [ ] Import and set the compliance check sub-workflow referenced in the execution. - - [ ] Ensure the cooldown logic is properly implemented to avoid multiple rapid responses.

The steps

  1. When Client Sends Status Text
  2. Parse Incoming Status SMS
  3. Fetch Clio Contact By Phone
  4. Match Client Using Phone Number
  5. If Client Found By Phone
  6. Build Phone Client Not Found Reply
  7. Fetch Open Matters By Phone
  8. Build Matter Status SMS Reply
  9. Check SMS Compliance Before Reply
  10. If Approved To Send SMS Reply
  11. Send Matter Status SMS Reply
  12. Skip SMS - Client Opted Out
  13. Send Phone Client Not Found SMS
  14. When Client Emails Status Request

32 steps in total.

Similar automations