LogoLogo
  • Docs
  • Connector Configuration
  • Knowledge Base
  • Changelog
  • Get Started
  • The Basics
    • What is Appmixer
    • Appmixer interfaces
      • Appmixer Studio
      • Backoffice
      • SDK Demo
  • Appmixer Studio features
    • What is a flow
    • Creating a flow
    • Sharing a flow
    • Flow examples
      • Forward customer support calls based on PIN
      • Feed customer data to Mailchimp
      • Google Drive document approvals
      • CSV import: calculate average value
    • Creating an Integration template
    • Using Variables to map data
    • Using Modifiers to alter data
    • Implementing logic
    • Troubleshooting errors
    • Visual features
      • Selecting multiple objects
      • Copying objects
      • Zooming in/out
      • Exporting a flow to an Image
      • Renaming a flow
      • Renaming a component
    • Utility modules
      • Webhooks
      • HTTP
      • Filters
      • Scheduling
      • Forms
      • Tasks
      • Language
    • Connected accounts
      • Connecting a new account
      • Managing accounts
    • Data storage
      • Creating a Data storage
      • Editing a Data storage
      • Using Data storage in a flow
    • Insights
      • Logs
      • Dashboard
      • Charts
      • Chart types
      • Data aggregations
    • Changing a password
  • Backoffice features
    • Insights
    • Flows
    • Users
    • Access Control List
    • Services
    • Extra: Creating custom components
  • SDK Demo
    • SDK Demo: Workflow automation
    • SDK Demo: Integration templates
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Appmixer Studio features

Implementing logic

PreviousUsing Modifiers to alter dataNextTroubleshooting errors

Last updated 3 years ago

Was this helpful?

. Now, we'll go through another powerful feature of Appmixer, logic.

Logic is represented mainly by the "Filters" component that you can find among Utilities. This feature allows you to set certain rules in your flow.

To see the logic in action, let's look at a simple example. Imagine you want to get notified via SMS every time someone mentions the word "Urgent" in a Slack channel. We're humans and we forget. This simple flow will make sure you receive the message when there's a fire.

You'd start building your flow by adding Slack and Twilio (or any other provider) components.

In between them, you'll want to add "Filters" and apply the "Contains" logic.

Awesome, isn't it? Keep in mind that "Contains" is just one of the logic options you can use. Here's the rest:

Contains A message passes through this filter if a value from a previous connector contains the value specified. Values can be numbers, dates or a plain text.

Equal A message passes through this filter if a field from the previous connector contains a value that equals the value specified. Values can be numbers, dates or a plain text.

Greater than A message passes through this filter if a field from the previous connector contains a value that is greater than (or equal, by default) the value specified. Values can be numbers, dates or a plain text.

IsNotEmpty A message passes through the filter if it contains data in the specified field.

LessThan A message passes through this filter if a field from the previous connector contains a value that is less than the value specified. Values can be numbers, dates or a plain text.

Modulo A message passes through the filter if the remainder after division of the value received from the previous connector by the value specified is zero.

NotEqual A message passes through this filter if a field from the previous connector contains a value that does not equal the value specified. Values can be numbers, dates or a plain text.

Range A message passes through this filter if a field from the previous connector contains a value that falls into the range specified. Values can be numbers, dates or a plain text.

Appmixer is all about flexibility and agility. You can customise all components and also implement your own using Node.js and upload them to the Appmixer engine via the API to suit your specific business needs.

Now, it's time to set the logic. You'll want to to check if the Slack message contains the word "Urgent".

Finally, choose the "contains" path and connect it to Twilio. After you do that, you'll be able to finalise the flow by setting the text message, "From number" and "To number". Let's say we want to use the whole Slack message as the SMS text. To do that,

You've just learned how to implement logic into your flow. .

use a Variable
you'll use Variables that we explained in the previous section.
In the next section, you'll find out how to view logs and troubleshoot errors
In the previous section, you learned about the power of Modifiers and their ability to alter data in your flow
How to implement logic in a flow?
Adding Slack and Twilio to the flow
Applying "Contains" logic to the flow by adding "Filters" component
Setting up the "Contains" logic
Finalising the flow