How to create an AOP, test it, and run it on a schedule
Steps in this video
Steps in this video
- Create an AOP
- Name it
- Write the prompt
- Run a test
- Add a schedule
- Set the day and time
- Check Runs
Market Analysis AOP Workflow
- Key Features
- Step-by-step Instructions
Configure inputs
AOP parameters define the inputs supplied for each run:Variable Input
Example:
[[company_name|type=text]]File Selector
Example:
[[documents|type=assetSelector|filterType=document]]Text Options
Example:
[[priority|type=textOptions|options=High,Medium,Low]]AOP triggers
You can configure triggers to run your AOP on a schedule or after an event. Available triggers depend on your deployment and connected services.Schedule trigger
Schedule your AOP to run automatically at specific times. You can configure the execution frequency (daily, weekly, or specific days of the week) and set the exact time for execution. The schedule respects your configured timezone.
Schedule Trigger Configuration
Email trigger
Configure email triggers to run your AOP when emails are sent to a specific address. Each AOP can have a custom email address in the format{custom-slug}@agent.athenaintel.com. You can optionally make the email trigger available to your entire workspace, allowing team members to trigger the AOP by sending emails to the configured address.
Email Trigger Configuration
Other triggers
In Triggers, choose the event you need:Use the person who triggered a run
For email and SharePoint triggers, add[[ event.trigger_actor.email ]] or [[ event.trigger_actor.name ]] to your prompt. You can find them as Trigger actor email and Trigger actor name in Event variables.Email triggers use the sender. SharePoint triggers use the file’s creator for a new upload and its last modifier for a change to an existing file. The name can be empty when the source supplies only an email address. Use a fallback such as [[ event.trigger_actor.name | default=there ]] when your prompt needs a value.Custom agent configuration
Configure AOPs with agent instructions, model selections, and tool access permissions. Customize how AOPs execute by selecting the appropriate AI model, defining the agent’s capabilities, and setting execution parameters to match your specific use case requirements.You can choose between using a pre-configured agent from your available agents or creating a custom agent configuration that overrides the default settings with custom tools, prompts, and model selections.
Custom Agent Configuration Panel

AOP Agent Configuration Override
Spreadsheet Integration
AOPs can be executed directly on spreadsheet data, enabling automated data processing workflows. Use AOPs to analyze datasets, generate insights, create reports, or perform complex calculations on your Athena Sheets without manual intervention.User Interface Integration
Add AOPs to custom User Interfaces so users can run procedures from buttons or forms. Users can trigger AOPs through buttons, forms, or automated workflows within your custom dashboards, enabling self-service analytics and automated business processes.Configure output and follow-up runs
- In Advanced Options, open Structured Output Schema (optional). Add a JSON schema when another workflow needs a predictable response format. Leave it empty for a free-form response. The schema must be an object with at least one property; a Quick Example fills one in.
- In Notifications & Chaining, enable Notify on success or Notify on failure. Failure notices cover triggered executions. Notification Channels appear once a Notify toggle is on.
- Choose Email, Email the person who triggered the run, or Webhook. A webhook URL must use HTTPS. Trigger-person email requires an event that identifies the person.
- Under AOP Chaining, choose Chain on success or Chain on failure and select the next AOP. Fill its required inputs. Success chains can map top-level fields from the parent’s structured output. Failure chains use fixed input values. A chain runs at most three hops, and cycles are blocked.

A triggered run can notify you and start different follow-up AOPs on success or failure.
How to configure structured output, notifications, and a chained AOP
Steps in this video
Steps in this video
- Open Structured Output Schema
- Apply a schema
- Name the output field
- Turn on Notify on success
- Turn on Email
- Chain an AOP on success
- Map a parent output field
Version control
AOPs include built-in version control that automatically saves your changes and allows you to run specific versions of your AOP.Automatic versioning
Your edits autosave to one Latest version. Each autosave overwrites that version rather than preserving every edit as a separate version. Save a named version when you need to keep a configuration for later use.
Autosave replaces Latest; separately saved versions preserve a configuration you can run again.
Run specific versions
You can execute a specific version of an AOP by using the versioned asset ID format. This is particularly useful when you want to ensure consistent execution or test changes before updating the main AOP.Versioned Asset ID Format:asset_<uuid>@<version_id>For example, if your AOP has the ID asset_abc123-def456-ghi789 and you want to run version btd48n, you would use:- Consistent Execution: Pin your automated workflows to a specific version to ensure consistent behavior even as you continue developing the AOP
- Testing Changes: Test modifications to an AOP before updating the version used in production workflows
- Rollback: Quickly revert to a previous version if a recent change causes issues
- Audit Trail: Run the exact version of an AOP that was used at a specific point in time for compliance or debugging purposes
Execution modes
AOPs offer flexibility in how they’re executed:- API Mode: Direct execution with immediate results
- Async API Mode: Background processing for long-running tasks
- Chat Integration: Interactive execution with conversational feedback
- SDK Integration: Programmatic execution via Python SDK
Good to know
You need edit permission to change an AOP or its triggers. Notifications and chaining are saved per user. Cycles are blocked, and a chain can run up to three hops. Meeting and video-session triggers wait for their transcript; ending the call alone is not enough.Related links
FAQ
Does Retry This Run resume a failed AOP where it stopped?
Does Retry This Run resume a failed AOP where it stopped?
Do other editors get my notifications and chains?
Do other editors get my notifications and chains?
Does every autosave keep a separate version?
Does every autosave keep a separate version?
Can an AOP undo an email it already sent?
Can an AOP undo an email it already sent?










