macOS Automator run Expect Script
expect can be called from an Automator action but it must be indirect.

Within your Automator Run Shell Script action, call out to expect with something like:

#!/bin/sh
expect -f /absolute/path/to/expect/script