APOGEE

Triggers and delivery

When Policy Agents run, how to add a trigger, and where results go.

Triggers and delivery

A trigger is a row on an agent page that says when the agent runs and what it does. An agent can have several.

Trigger types

TypeHow it startsNotes
On a scheduleDaily, weekly (a day and a time) or monthly (a time)Needs a policy group
On requestRun now on the agent pageWorks with or without a group

Scheduled triggers run for the policy group the agent belongs to. A trigger that covers All groups does not run on its own. It runs only when you press Run now.

The trigger form also shows When something I watch changes, with a bill, committee, hearing, docket or topic. This option does not start runs in production today. Use a schedule.

A new agent can also start with a default row named Bill moves or Deadlines move. These rows have no bill or committee attached and do not start runs. Edit or delete them.

Add a trigger

  1. Open the agent and select Add a trigger in the Runs when section.
  2. Under Describe it, write one sentence. Example: Every Monday at 7:00 AM, brief me on what changed in the Farm Bill.
  3. Select Fill the form. Apogee fills in the fields from your sentence.
  4. Review every field. Nothing is saved until you click Add trigger.
  5. Select Add trigger.

Fields in the form:

  • Name
  • When: On a schedule, or When something I watch changes
  • Status: active or paused
  • Runs: Daily, Weekly or Monthly, with a day and a time
  • What to do: the instructions for the run
  • Covers: the agent's policy group, or All groups
  • Delivery: where results go (below)

Open an existing trigger to see its Last runs, press Run now, pause it or delete it.

Delivery

The Delivery field lists three channels:

  • Save to Library: each result is saved as a draft. This stays on when review is on, because the draft is what you review.
  • Report to Juno: Juno includes a short report that links to the draft.
  • Email me directly: shown in the form. Runs do not send email today. Results arrive through the Library and Juno.

The form also has a Before it sends setting. Today every run saves a draft and sends nothing, so both choices give the same result.