Guides
How to build and run automations in Lainstack, one task at a time.
Build automations
Section titled “Build automations”Build your first automationCreate an automation, add and wire blocks, map data between them, test it and publish it.
Branch, loop and reuseSend runs down different paths, repeat work for each item in a list, and share logic between automations.
Put a person in the loopPause a run for approval, let a reviewer correct data, and route the work to the right people.
Decide who owns the workUse Set Assignees to say who gets approvals, corrections and failures, when work moves on, and what an agent does when it comes first.
Look up reference dataKeep shared data in a reference table, fill it from an automation and look records up while a run works.
Make files in a runTurn rows into an Excel or CSV file, make a PDF with a barcode, and hand the files back to the person who started the run.
Connect systems
Section titled “Connect systems”Connect your systemsConnect an AI provider, a transport management system and a customs portal, and check that the connection works.
Start runs from another systemGive an automation a webhook URL, secure it, check what callers send and test it end to end.
Receive and send emailConnect a mailbox, start a run for the emails you want, read their attachments, and reply or send from an automation.
Call an outside APISend a request with HTTP Request, sign it in with a connection, read the response and handle errors.
Connect an MCP clientGive Claude Code, Claude, ChatGPT, Codex, Cursor or another MCP client access to your Lainstack workspaces.
AI and documents
Section titled “AI and documents”Use AI blocksConnect an AI provider, then summarize, extract and classify inside an automation.
Read data from a documentRead fields from an invoice or packing list with AI Agent, check the answer and let a person correct it beside the document.
Reconcile two documents or listsCompare an invoice with a packing list row by row with Checklist, and send only the differences to a person.
Agents
Section titled “Agents”Build your first agentTurn an automation into an agent your team can chat with, decide what it may change, and test it.
Have an agent run a jobAsk an agent to do one piece of work once, across your connections, and see what it touches before it runs.
Runs and recovery
Section titled “Runs and recovery”Runs in the editorOpen any run on the canvas, read each block's values, run your draft with writes held, and set the example values held writes pass on.
Debug a failed runFind why a run failed, try a fix on the same data in the editor, publish it and resume the run.
Recover failed runsTest a fix on the runs that failed, then resume them, one at a time or a whole group, by hand or with the Agent.
TroubleshootingWhat common editor messages and block error codes mean, and what to change, from a dimmed Publish button to comparison_invalid.
Sign-in and people
Section titled “Sign-in and people”Set up single sign-onSign your people in through your company's identity provider over OIDC or SAML, verify your email domain and require SSO.
Provision people with SCIMLet your identity provider add, update and remove people in an organization with a SCIM token.