Built-in Actions
Built-in Actions
Using Built-in Actions
Moveworks provides built-in actions for common platform operations — user lookups, notifications, approvals, and LLM generation. These are ready to use without creating connectors or HTTP actions.
When you want to use a built-in action in your Compound Action, use mw.{{action_name}} as your action_name. For example:
Action Reference
get_user_by_email
Retrieve a single user record by email address. Returns all user attributes including custom attributes.
Action Name: mw.get_user_by_email
Input Parameters:
Example:
Response Schema:
Reference: data.user_result.user.email_addr, data.user_result.user.full_name, etc.
You can find the full list of user fields in our User Attribute Reference.
batch_get_users_by_email
Retrieve multiple users by email in a single call. Use this when you need to resolve several users (e.g., an approver and a requester).
Action Name: mw.batch_get_users_by_email
Input Parameters:
Results are returned in the same order as the input email list. If you pass ["manager@example.com", "employee@example.com"], then user_records[0] is the manager and user_records[1] (or user_records[-1]) is the employee.
Example:
Response Schema:
Reference: data.target_users.user_records[0].user for the first user, data.target_users.user_records[-1].user for the last.
You can find the full list of user fields in our User Attribute Reference.
create_generic_approval_request
Create a Moveworks in-bot approval request. The compound action pauses execution until the approval is answered (up to 30 days).
Action Name: mw.create_generic_approval_request
Input Parameters:
Pass User objects, not emails.
approvers and users_requested_for require User objects, not email strings. Retrieve user objects first using mw.get_user_by_email or mw.batch_get_users_by_email.
Example:
Response Schema (Approved):
Response Schema (Denied):
Reference: data.approval_result.status returns "APPROVED" or "DENIED" (uppercase).
To access the approver/denier’s comment (e.g., a denial justification):
To enable a Deny with Comment button on the approval card, configure the approval buttons in Moveworks Setup > Approval Settings. This can be set at the integration level or global level.
batch_send_plaintext_chat_notification
Send a chat notification to one or more users. Use with batch_get_users_by_email to resolve user record IDs first.
Action Name: mw.batch_send_plaintext_chat_notification
Input Parameters:
Example:
Response Schema:
For sending interactive notifications with action buttons, use the notify compound action expression instead.
generate_text_action
Generate free-form text output using an LLM. Use for summarization, classification, formatting, and other text generation tasks.
Action Name: mw.generate_text_action
Input Parameters:
Example:
Response: data.summary_result.generated_output (string)
For full reference including supported models, see LLM Actions.
generate_structured_value_action
Generate structured JSON output matching a defined schema. Use for classification, entity extraction, and any task where you need typed output.
Action Name: mw.generate_structured_value_action
Input Parameters:
Example:
Response: data.classification_result.generated_output (object matching your schema)
For full reference including supported models, see LLM Actions.