Building Your First Automation
This guide walks you through creating a simple automation that sends a Slack notification when an account’s health score changes.Prerequisites
- Access to Agent Studio in your Statisfy account
- Slack integration configured (for notifications)
- At least one account segment defined
Step 1: Create a New Automation
- Navigate to Agent Studio from the main navigation
- Click Create New or the + button
- Select Blank Automation to start from scratch
Step 2: Add a Trigger
Every automation starts with a trigger. For this example, we’ll trigger when an account enters a segment.- From the Triggers section in the component panel, drag Account Segment V2 onto the canvas
- Click on the node to configure it
- Select your target segment (e.g., “At Risk Accounts”)
account_id- The ID of the affected accountaccount_data- Full account information including name, owner, custom fields, etc.
Step 3: Add an Action
Now let’s add a Slack notification action.- From the Actions section, drag Slack V2 onto the canvas
- Connect the trigger to the action by dragging from the trigger’s output handle to the Slack node’s input handle
- Click on the Slack node to configure it:
- Channel: Select your target Slack channel (e.g., #customer-alerts)
- Message: Use @ notation to include dynamic data:
Step 4: Test the Node
Before activating the full flow, test the Slack node individually:- Click on the Slack node to select it
- Click the Play button (▶) on the node
- You’ll be prompted to provide test input data
- Enter sample data or select an existing account
- Click Run
Step 5: Add Conditional Logic (Optional)
Let’s enhance the automation to only alert for high-value accounts:- From Logic, drag Condition V2 between the trigger and Slack node
- Delete the direct connection from trigger to Slack
- Connect: Trigger → Condition → Slack (true output)
- Configure the Condition node:
- Field:
@account_data.arr - Operator:
greater than - Value:
100000
- Field:
The False output of the Condition node can be connected to a different action, or left unconnected to take no action for non-matching accounts.
Step 6: Save and Activate
- Click Save to save your automation
- Give it a descriptive name (e.g., “High-Value At Risk Alert”)
- Toggle the Active switch to enable the automation
Complete Flow
Here’s what your completed automation looks like:Monitoring Your Automation
After activation, you can monitor your automation:- Run History: View past executions and their status
- Logs: See detailed execution logs for debugging
- Metrics: Track how often the automation triggers and succeeds
Troubleshooting
Automation not triggering
Automation not triggering
- Verify the trigger segment criteria are correct
- Check that accounts are actually entering/exiting the segment
- Ensure the automation is set to Active
Slack message not sending
Slack message not sending
- Verify Slack integration is properly configured
- Check that the channel exists and the bot has access
- Test the node individually with the play button
Data not appearing in message
Data not appearing in message
- Verify @ notation syntax is correct
- Check that the field exists in the account data
- Use the test feature to inspect available data
Next Steps
Explore All Triggers
Learn about different trigger types
Processing Components
Transform and manipulate data
Action Components
Send notifications and update records
Testing Flows
Best practices for testing automations