Altan
HomeDiscordStatus
HomeDiscordStatus
  1. Flows
  • What is Altan?
  • Apps
    • Create Your First App
    • App Navigation & Settings
    • Building Tips
    • The Art of Prompting
    • Add Media to Your App
    • Publishing Your App
    • Rollback and Checkpoints
    • Instantly Resolve Errors
  • Flows
    • Create your first Flow
    • Automation basics
    • Adding modules
    • Types of modules
    • Passing data
    • Filters
    • Debugging
    • Retrigger events
    • Version History
    • Overwrite connection
    • Task credits
  • Databases
    • Introduction
    • Records
  • AI Agents
    • What is an AI Agent?
    • Create your first AI Agent
    • Tools
    • Interacting with Your AI Agent
  • Integration
    • Magic Link
    • Altan Integrator
    • Create your integration
  • Creators
    • What is Altan Creators?
    • How it works
  • Get Support
    • Support Options
  1. Flows

Filters

Filters on edges allow you to control the flow of your processes by adding conditional logic between modules. This ensures your workflows are dynamic and execute only when specific conditions are met.

🚦 How to Create a Filter on an Edge#

1.
Add a Filter:
Click the filter icon on any edge between modules to open the filter setup. image.png
2.
Describe the Filter:
Start by writing a short description to document the purpose of the filter.
Clear descriptions make debugging and collaboration easier.
3.
Add Conditional Logic:
Define conditions using basic logic blocks. For example:
Operator: Choose between options like Equals, Not Equals, Greater Than, etc.
Values: Use $ to access dynamic variables and helpers.
Combine multiple conditions with AND or OR for more complex logic.
image.png

🔧 Understanding Filter Modes#

Before saving your filter, you need to select a filter type. This determines how the workflow handles scenarios where the condition isn’t met:
Break: Stops the execution of the flow entirely for this path if the condition fails.
Skip: Skips the current module, but allows the flow to continue along other edges if present.
image.png

🌟 Best Practices for Filters#

Plan Ahead: Clearly understand the data and conditions you need to evaluate.
Test Thoroughly: Debug your filters by triggering the workflow and analyzing execution paths.
Use Break Judiciously: Only stop the flow if it’s absolutely necessary to avoid unintended outcomes.
Filters and edges empower you to build precise, adaptable workflows tailored to your needs. Start experimenting with conditions to see the full power of Altan workflows!
Modified at 2024-11-28 19:52:12
Previous
Passing data
Next
Debugging
Built with