Action Execution Overview
Thread’s automation engine orchestrates the entire action lifecycle—from triggering to draft generation to customer delivery. Understanding this system helps you leverage automation effectively. [SCREENSHOT: Action execution flow diagram] Caption: From milestone start to customer response, Thread automates the workflowThe Action Lifecycle
Trigger Types
milestone_start (Most Common)
When it fires: When the parent milestone’s status changes to “in_progress” Configuration:- Immediate (0 hours)
- 24 Hours
- 48-72 Hours
- Week+
Use for: Welcome emails, milestone announcementsAction appears in CSM review queue within minutes.
Delays are calculated from when the milestone starts, not when it’s created. If you create a milestone but don’t start it, triggers won’t fire.
Manual
When it fires: Never automatically—CSM must manually trigger Configuration:- Meetings (CSM schedules when ready)
- Complex tasks requiring preparation
- Conditional actions (only for some customers)
- Executive business reviews
- Navigate to Implementation Tab
- Find manual action
- Click “Generate Draft” or “Execute”
- Action processes like auto-triggered actions
Action Trigger Processing
How Thread Processes Triggers
Scheduled Triggers Queued
Actions with delays added to
scheduled_action_executions table with target execution timeAction Generation
Which Actions Get AI Generation?
AI-Generated
- Send Email (subject + body)
- Collect Info (intro text)
- Slack Message (message content)
Template-Based
- Request Docs (uses configured template)
- Schedule Meeting (uses configured agenda)
- Collect Info fields (pre-configured)
Generation Context
AI uses this context to generate drafts:Account Data
Account Data
- Company name
- ARR
- Close date
- Primary contact info
- Industry and size
- Account notes
Template Context
Template Context
- Milestone name and description
- Action label and purpose
- Content template/structure
- Variables to interpolate
Handoff Intelligence
Handoff Intelligence
- Primary use case
- Customer goals
- Known risks/challenges
- Stakeholders
- Technical environment
Previous Actions
Previous Actions
- What’s been sent already
- Customer responses
- Timeline and progress
- Established tone/style
Generation Quality
High quality when:- ✅ Rich account data available
- ✅ Detailed handoff Q&A
- ✅ Clear action purpose in template
- ✅ Good content template with examples
- ❌ Minimal account data
- ❌ Skipped or sparse handoff
- ❌ Vague action purpose
- ❌ Generic content template
Action Execution
What Happens When CSM Clicks “Execute”
- Send Email
- Request Docs
- Collect Info
- Schedule Meeting
- Slack Message
- Variable interpolation (
{{company_name}}→ “Acme Corp”) - Email sent via email service (Resend)
- From address: CSM email or org default
- Recipients: To/CC/BCC as configured
- Action status → “executed”
- Email logged in action history
Execution is Irreversible
What you CAN’T undo:- Emails already sent
- Forms/docs already in customer portal
- Slack messages already posted
- Meetings already scheduled
- Send a follow-up email correcting mistakes
- Create a new form/doc request
- Post a follow-up Slack message
- Reschedule meetings
Action Completion
Auto-Completing Actions
These actions complete automatically when customer responds:- Request Docs
- Collect Info
Completes when: All required documents uploadedProcess:
- Customer uploads file in portal
- Thread validates file (type, size)
- If all required docs uploaded → status: “completed”
- CSM receives notification
- CSM can download and review docs
Manual-Completing Actions
These require CSM to mark complete:- Send Email
- Schedule Meeting
- Slack Message
Mark complete when:
- Customer replies (task done)
- Reasonable time passed (move on)
- Followed up via other channel
- Click action in Implementation Tab
- Click “Mark as Complete”
- Add completion note (optional)
- Confirm
Monitoring Action Execution
Action Status Dashboard
[SCREENSHOT: Action status summary showing counts by status] Caption: See how many actions are pending, ready, executed, completed Key metrics:- Ready count: Actions needing CSM review
- Executed count: Actions sent, awaiting customer response
- Overdue count: Actions past expected completion
- Blocked count: Actions stuck on issues
Execution Timeline
Each account shows execution timeline:Troubleshooting Execution
”Action Didn’t Trigger”
Problem: Milestone started but action didn’t appear Possible causes:- Action has delay—check scheduled executions
- Trigger type is “manual”—CSM must trigger
- System error—check logs or contact support
- Check
scheduled_action_executionsfor delayed actions - Manually trigger if needed
- Regenerate draft if missing
”Draft Generation Failed”
Problem: Action triggered but no draft content Possible causes:- OpenAI API error (temporary)
- Insufficient context data
- Invalid template configuration
- Click “Regenerate” to retry
- Add more account context
- Manually write content if urgent
”Customer Didn’t Receive Action”
Problem: Email sent or form created, but customer can’t see it Possible causes:- Email in spam folder
- Portal not accessible
- Wrong email address
- Portal action not visible
- Ask customer to check spam
- Verify portal link working
- Check email address in account
- Verify action portal visibility setting
Best Practices
Use Delays Strategically
Space actions 24-72 hours apart to avoid overwhelming customers
Monitor Ready Queue
Check “ready” actions daily—don’t let them pile up
Execute Promptly
Review and execute within 24 hours of becoming ready
Mark Complete Quickly
Don’t leave executed actions lingering—mark done when done
Track Patterns
Note which actions frequently need editing or get skipped
Provide Feedback
Tell template owners what’s working and what’s not
