# Automate 3270 workflows with checks at every screen

Source: https://wndsoftware.com/3270-automation

Choose macros, a local automation API or gateway screen flows for 3270 work. Test expected screens, failure paths and policy before rollout.


## Choose the interface for the job

For a person repeating work in an open session, start with a macro. For a program driving the desktop session, use the local automation API. On Windows, existing EHLLAPI, COM or .NET programs may use the compatibility interfaces. For an application that calls a tested host procedure over HTTPS, evaluate Screen flows as APIs on the customer-hosted gateway. These paths have different deployment and entitlement requirements.

WND Terminal macros can wait for text, move to a field, enter a value, send a host key, read a result and branch when a condition changes. A script should confirm the screen before it types, rather than assuming elapsed time means the host is ready. Read the [macro guide](https://wndsoftware.com/docs/macros) and [legacy-macro compatibility notes](https://wndsoftware.com/docs/legacy-macros) before migrating an existing procedure.


## Keep desktop automation local and controlled

The [automation API](https://wndsoftware.com/docs/automation-api) drives sessions open in the signed-in user’s WND Terminal. Windows compatibility interfaces are documented separately in [EHLLAPI, COM and .NET](https://wndsoftware.com/docs/ehllapi-com). Test the actual dependent program, including bitness and object references. IT can disable automation; password fields are not available as ordinary screen text. A script does not gain permission to copy or change data merely because a session is open.


## Use gateway flows for program-to-host calls

Screen flows as APIs expose tested procedures as HTTPS endpoints with typed JSON inputs and outputs. The gateway supplies OpenAPI 3.1 and a Swagger 2.0 form for Power Automate. The feature requires its own entitlement; do not assume it is included in the base desktop license. Write operations have approval behavior, and callers must handle validation, host failure and unavailable-session responses. The [screen-flow API guide](https://wndsoftware.com/docs/flow-apis) defines that contract and reset behavior for pooled sessions.


## Prove cancellation and recovery

- Begin with a permitted inquiry and approved test data. Record the expected start screen and output.
- Test an invalid input, missing record, unexpected screen, timeout and disconnected host. Confirm that the automation stops without typing into the wrong screen.
- For a write, define who approves it and how a user verifies the host result. A timeout after submission is not proof that the host rejected the change.
- Keep repeatable regression evidence. [WND Test](https://wndsoftware.com/docs/testing) documents recording replay and host-connected testing, under the same subscription.

Start the [3270 evaluation](https://wndsoftware.com/3270-terminal-emulator) with an ordinary user workflow, then automate that proven path. Use [the automation overview](https://wndsoftware.com/automation) to compare the released products and [current pricing](https://wndsoftware.com/pricing) before sizing a project.
