Built-in Actions
Using Built-in Actions
Moveworks provides a wide range of built-in actions to help you built AI agents quickly.
When you want to use a built-in action in your Compound Action, you can use mw.{{action_name}} as your action.action_name. For example, if you want to use the create_generic_approval_request native action, you would use mw.create_generic_approval_request.
Action Reference
create_generic_approval_request
Create a Moveworks in-bot approval request. Plugin will continue if the approval is answered within 30 days before the approval is dropped from the database.
Action Name: mw.create_generic_approval_request
Input Parameters:
- approval_key (string): The approval key which describes the approval workflow. If omitted, MUST provide the
approversargument. Currently Supported Keys (Optional) - approvers (List[User]): List of user objects from whom to get approval. Will reach out to all users, but only one approval will be needed. If provided, this will override the approval key. (Optional)
- approval_details (string): The details that need approval. (Required)
- users_requested_for (List[User]): Users who we are requesting approval for. (Required)
🚧 Make sure you pass User objects, not emails.
You can retrieve user objects via an email address using our user built-in actions
Request Schema:
Action Response Schema:
generate_structured_value_action
Check LLM Actions for full reference
generate_text_action
Check LLM Actions for full reference
batch_send_plaintext_chat_notification
Sends a chat notification to a user.
Action Name: mw.batch_send_plaintext_chat_notification
Input Parameters:
- notifications (List[Notification]): The list of users notifications.
- Notification (Object): The object containing the user record and the message
- user_record_id: To retrieve user record IDs you need to use the Get User by Email or Look up multiple users by email native actions (Required)
- message (string): The message to send. (Required)
- Notification (Object): The object containing the user record and the message
Request Schema:
batch_get_users_by_email
Retrieves multiple users by email against Moveworks’ Internal Identity store.
Action Name: mw.batch_get_users_by_email
Input Parameters:
- user_emails (List[string]): The email addresses of the users to retrieve.
Request Schema:
Result Schema:
You can find the full list of user fields in our Moveworks Data Object page.
get_user_by_email
Retrieve a user record according to their email address. This action will return all user attributes, along with custom attributes.
Action Name: mw.get_user_by_email
Input Parameters:
- user_email (string): The email address of the user to retrieve.
Request Schema
Result Schema
You can find the full list of user fields in our Moveworks Data Object page.