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
- Open one of your folders (or My Collection) and click New Flow
- In the Start With A Template window, scroll to the Start from scratch section at the bottom and click Blank Flow
The New Flow button appears when you’re inside a regular folder or My Collection—it isn’t shown in the All Flows view or the Legacy Workflows folder.
Starting from a template instead
The Start With A Template window also offers ready-made automations you can use as a starting point. Browse by category in the sidebar, or use the search box to find a template, then select a template card to create a copy you can customize. This is the fastest way to get going if a template already matches your use case.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
Publishing Your Own Templates
Once you’ve built an automation your team will want to reuse, you can publish it as a template so it appears in the Start With A Template window for everyone in your workspace.- Move or build the automation inside the Templates folder
- Open the flow and click Save as Template in the toolbar (this changes to Update Template if the template has already been published)
- In the publish dialog, pick a category—or type a new one in the Enter new category field
- Click Publish Template
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