Quickstart #7: Scheduled Trigger Ambient Agent
Quickstart #7: Scheduled Trigger Ambient Agent
Quickstart #7: Scheduled Trigger Ambient Agent
In this Quickstart, you’ll build an Ambient Agent that is triggered on a schedule and notifies you with a weekly risk analysis of purchase requisitions. Along the way you’ll learn how to:
mw.get_user_by_emailmw.generate_text_action and the Notify expression.The plugin you’ll build solves a common, practical problem: proactively surfacing valuable insights to the right person on a reliable cadence.
Before starting to build, we always recommend that you first map out the desired end user experience and the overall building blocks of an Ambient Agent.
Here is an example of the end-user experience we hope to enable:
To get to this experience, the Ambient Agent will consist of one Compound Action

You’ll build an end-to-end working Ambient Agent plugin via these phases:
Let’s get started!
You may be able to skip this phase if you’ve completed another Agent Studio Quickstart guide. You can skip this phase if:
You have already created a firstname_lastname_moveworks_purple connector. This section will walk you through how to set up your own connector to the Moveworks Purple API (which powers the Actions used in the Quickstart guides), so no need to repeat this step if you’ve done it before.
In this guide, the purchase requisition data that your Action will access lives behind the Moveworks Purple API Connector. To access this data via your Action, you need to set up a (reusable) connector:
Navigate to the App Picker in the top right corner of Agent Studio. Click on “HTTP Connectors”, which will take you to another browser tab.

You’re now fully ready to start building. On to Phase 1!
Set the following Title and Description for your Action (be sure to replace “firstname” and “lastname” with your corresponding information).

Enter the details of your API:

Add your Connector:
firstname_lastname_moveworks_purple).
You will now create a compound action to handle all the logic of the plugin when triggered by its schedule.
In this phase you will build a compound action with the action you configured to retrieve all purchase requistions, a built in action to lookup the target user’s Moveworks profile, and a Notify key to message provide the user the option to retrieve the insights if they select yes it will call a built in action to generate the risk analysis against the purchase requisition data

Navigate to a new “Compound Action” in the left nav and then click “Create”.

Set the following title and description for your Compound Action (be sure to replace “first” and “last” with your corresponding information).
Copy the following expression into the Compound Action Editor and:
<your email here> with your actual email on line 9<your pr action name here> on line 3 with whatever you named the action firstname_lastname_get_purchase_requisitions_action from step 1.Understanding the Compound Action
This Compound Action executes four actions in sequence, with the output of one step feeding into the next:
mw.get_user_by_email (Built-in Action)
mw.generate_text_action (Built-in Action)
notify (Compound Action Expression)
mw.get_user_by_email action.mw.generate_text_action action.You’re ready to move on — time to create your Plugin and put everything you’ve built together.
This section guides you through adding your Scheduled Trigger and Compound Action to a Plugin. A key step will be configuring the data flow, where you’ll specify exactly which fields from the webhook you want to forward to your action.
Set the following title and description for your Plugin (be sure to replace “first” and “last” with your corresponding information).
Congrats! Your plugin is complete. You should get notified from your AI assistant with a message including a button to receive insights.
The plugin you just created uses several key Agent Studio concepts, from Schedule Triggers to LLM actions to Compound Actions. You’ve successfully built a plugin that:
Awesome work sticking with it!
Next step: Test your plugin. See our Testing & Error Handling guide for how to test, debug, and handle errors in production.