Skip to main content
Alpha. These commands are in alpha and are available to customers on request. They are off until OpenWork turns them on for your organization. Expect commands, flags and output to change or be removed without notice. To try them, ask your OpenWork contact.
A listener gives one of your Cloud Automations, or one of your agents, a signed web address. Each time a service posts a correctly signed event there, it runs once for that event, as you, with the event attached. Run the CLI and sign in as described in the CLI overview.
Listeners are yours. Other members and admins cannot see, change or use them. While the feature is off, every command stops with feature_disabled and changes nothing.

create

The name uses lowercase letters, digits and hyphens. You can have 25 listeners. The command prints the address to give the sender and, for GitHub and custom senders, a signing secret. The secret is shown once. A listener runs a Cloud Automation whose action is an agent run. It does not run a Desktop Automation, a computer, or an agent with several routines; for that agent, name the routine with automation:<id>.

secret

Store the signing secret Stripe shows. A Stripe listener accepts nothing until this is done.
The secret is read from a file and is never taken from the command line. For a GitHub or custom listener, the command replaces the secret with a new one and prints it once. The old one stops working at once, so the command asks first unless --force is passed.

test

Send a listener one test event. What it runs starts once, the same way it would for a real event.
--file is a JSON file used as the event’s contents. A listener with a filter needs contents that match it, or nothing runs and the command says so.

events

See the last 20 events a listener received and whether each started a run.
Events the listener does not wait for, and events its filter drops, are not stored and do not appear. A repeated event starts one run. Stored events are deleted after seven days.

list

Shows what each listener waits for, its filter, what it runs, whether it is ready to accept events and when the last event arrived.

remove

The address stops accepting events and the stored events are deleted. The command asks first unless --force is passed.

What a run can do

A run started by an event is an ordinary run of that Automation. It uses the same model, connectors and limits, and appears in the same run history. The event is given to the agent as data from outside, after the instructions you saved.
Anyone who can make the sender post an event decides part of what the agent reads. Give the Automation only the connectors it needs, and do not write instructions that tell it to follow what an event says.