Configure Workflow Triggers

Workflow triggers are automated, predefined events or conditions that initiate a workflow when specific criteria are met.

Note: Triggers activate after the workflow is published.

Webhook

A webhook is an automated, event-driven mechanism for sending real-time data from an application over HTTP. You can configure a webhook trigger to call a workflow.
  1. Go to AI Agent Studio.
  2. From the Workflows tab, edit a workflow.
  3. Select Settings Settings and go to the Triggers tab.
  4. Select Add for webhook trigger, enter a name, select type, and then select Apply.
  5. Publish the workflow.

Email

You can configure an email trigger to call a workflow when an email is received in a monitored account. Each workflow can monitor only one unique inbound email account. You can't use the same inbound email account for another workflow.

To allow the workflow to be triggered by incoming emails:

  1. Register the inbound email account in AI Agent Studio. See Add Email Accounts.
  2. Go to AI Agent Studio.
  3. From the Workflows tab, edit a workflow. 
  4. Select Settings Settings and go to the Triggers tab.
  5. Select your registered inbound email account.
  6. Publish the workflow.

To verify that emails received in the selected inbound email account will now trigger this workflow:

  1. Go to the Monitoring and Evaluation tab and open the Activities subtab.
  2. Go to Inbound Emails to view the contents of the trigger email messages and verify that the messages are initiating the workflow correctly.

Schedule

You can configure a scheduled trigger based on a defined time interval, to call a published workflow without user interaction or API calls. Scheduled triggers are useful when workflows need to run regularly or at fixed intervals.

Note: Make sure you have the FAI Batch Job Manager (ORA_DR_FAI_BATCH_JOB_MANAGER_DUTY) permission assigned in the Security Console.

To allow the workflow to be triggered at a scheduled date and time:

  1. Go to AI Agent Studio.
  2. From the Workflows tab, edit a workflow. 
  3. Select Settings Settings and go to the Triggers tab.

  4. Select Add for schedule triggers and choose the type of schedule to create. Based on the selected type, specify other details.
    Type Description
    Interval Run the workflow between fixed time periods, for example, every 100 minutes, every 10 hours, or every 5 days.
    Recurrence Run once at a specific time or repeatedly on calendar patterns, such as daily, weekly, or monthly. Enter a start time and an optional date and time for the recurrence to end.
  5. Publish the workflow.

To verify that your scheduled trigger is starting the workflow:

  1. Go to the Monitoring and Evaluation tab and open the Activities subtab.
  2. Go to Schedules to view the entry and verify the scheduled trigger is initiating the workflow correctly.

Signals

You can configure a signal trigger to call a workflow when a subscribed signal is received. A signal is a governed event contract that you define in AI Agent Studio and subscribe to from a workflow. Signal triggers are useful when workflows need to respond automatically to business events without user interaction or API calls.

To create a signal in AI Agent Studio:
  1. Go to AI Agent Studio.
  2. Select the Resources Resources tab and open the Signals subtab.
  3. Add a new signal definition.
  4. Enter the signal code, version, name, status, description, and payload schema.
  5. Select Create.

Created signals appear in the Signals subtab and can be reused across workflows.

To subscribe to a signal:
  1. Go to AI Agent Studio.
  2. From the Workflows tab, edit a workflow. 
  3. Select Settings Settings and go to the Triggers tab.

  4. In Signals section, select Add.
  5. Select an active signal definition.
  6. In Max attempts field, select the maximum number of times delivery can be attempted before it's exhausted.
  7. In Retry delay field, select the base delay before a failed delivery is retried.
  8. In Backoff policy field, select a backoff policy to determine how the retry delay changes after each failed delivery attempt.
  9. Select Apply and then publish the workflow.

Your workflow is now subscribed to the signal you selected. It can start automatically when that signal is published.