Logic
Use the MESA Logic tool to handle filtering, restructuring and looping data in one step, with the MESA AI assistant helping you build and adjust it.
The Logic tool lets you contain all of the inner workings of your workflow–filtering, restructuring and looping data–in a single, reliable step. The MESA AI assistant can help you build and adjust the logic.
Configure
Section titled “Configure”Building a Logic workflow
Section titled “Building a Logic workflow”Start by opening the MESA AI assistant and asking it to Build a workflow. For example:
Build a workflow that sends Shopify orders over $100 with an "uploadery_1" line item to Google SheetsThe MESA AI assistant will look for similar templates. If you decline the template install, it will ask a few clarifying questions, outline your workflow, and get to work adding your trigger, Logic step and action(s). As part of the workflow building, the MESA AI assistant will write the logic script and build a diagram outlining your workflow’s logic:

Once your workflow is built, the MESA AI assistant will let you know what needs to be done to complete the workflow setup, then walk you through manually running it to confirm it is working as expected. Describe any changes you need to make to the MESA AI assistant. If everything looks good, turn on your new workflow.
Editing a Logic step
Section titled “Editing a Logic step”The easiest way to edit a logic step is by clicking the Edit with MESA AI button at the bottom of the Logic step. The MESA AI assistant will read your workflow and walk you through making the updates.

If you are technical and would like to get under the hood, you can edit the Logic code. Click on ... > Edit Code, and you can edit the JavaScript code powering the Logic step with the MESA SDK.
