> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Automation Email Action

# Type: Automation Email Action Object

# Link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/automation-email-action-object.md

## Description: An automation email action represents the email sent by an automation's `triggered-emails` action: its type,
recipients and sender. The email content is managed separately, with [Get Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/get-email-content.md)
and [Set Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/set-email-content.md).

An action isn't identified by an ID of its own. An existing action is addressed together with the automation it
belongs to, and a new one is described before it's added to an automation, so it has no identifiers yet.

## Schema:

```json
 Type: Automation Email Action Object | type: AutomationEmailAction
 Description: An automation email action represents the email sent by an automation's `triggered-emails` action: its type,
recipients and sender. The email content is managed separately, with [Get Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/get-email-content.md)
and [Set Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/set-email-content.md).

An action isn't identified by an ID of its own. An existing action is addressed together with the automation it
belongs to, and a new one is described before it's added to an automation, so it has no identifiers yet.
       - name: emailType  | type: string | description: Type of the email, which determines whether contacts can unsubscribe from it.  Default: `PROMOTIONAL`
           enum: PROMOTIONAL, BUSINESS_TRANSACTIONAL, BUSINESS_CRITICAL
       - name: notificationTopicId  | type: string | description: GUID of the notification topic contacts unsubscribe from to stop receiving the email.  - `PROMOTIONAL`: A promotional topic. - `BUSINESS_TRANSACTIONAL`: A transactional topic.  Required if `emailType` is `BUSINESS_TRANSACTIONAL`. Can't be specified if `emailType` is `BUSINESS_CRITICAL`, since contacts can't unsubscribe from these emails, and isn't returned for them.  The topic isn't validated when the action is saved, so make sure it exists and matches `emailType`.  Default: For a `PROMOTIONAL` email, the general promotional topic.
           - name: value  | type: string | description: 
       - name: triggerSchemaContactIdPath  | type: string | description: Path in the trigger payload schema to the GUID of the contact to send the email to.  Deprecated: Use `recipients` with `recipientType` `TRIGGER_CONTACT` instead. Can't be specified together with `recipients`, and isn't returned.
       - name: senderDetailsId  | type: string | description: GUID of the sender details to send the email with, as in [Assign Sender Details](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/assign-sender-details.md).  Returned only when sender details are explicitly assigned to the action.  Default: The site's default sender details if they exist, and Wix-branded sender details otherwise.
       - name: recipients  | type: Recipients | description: Who the email is sent to.  `CUSTOM` recipients whose single audience is the trigger contact (an `explicitData_triggerMainContact` audience) or the site owner are returned as the equivalent `TRIGGER_CONTACT` or `SITE_OWNER` recipients.  Default: The site owner.
           - name: recipientType  | type: string | description: Type of the recipients. Required when `recipients` is specified.
               enum: TRIGGER_CONTACT, SITE_OWNER, CUSTOM
           - ONE-OF:
               - name: triggerContactOptions  | type: TriggerContactOptions | description: Required if `recipientType` is `TRIGGER_CONTACT`.
                   - name: contactIdPath  | type: string | description: Path in the trigger payload schema to the GUID of the contact to send the email to. For example, `contactId` or `contact.id`. Usually the property marked with `"identityType": "contact"`.  Supports a path of property names and array indexes, such as `items[0].contactId`, rather than an expression. Property names can contain letters, digits, underscores and hyphens.  The path isn't checked against the trigger payload schema, so make sure it exists in the trigger's payload.
               - name: customOptions  | type: CustomOptions | description: Required if `recipientType` is `CUSTOM`.
                   - name: audiences  | type: Array<Audience> | description: Audiences to send the email to, as in the [Audience API](https://dev.wix.com/docs/api-reference/business-management/notifications/audiences/audience-v1/introduction.md). Each audience's `audienceProviderId` is the ID of a provider returned by [List Audience Providers](https://dev.wix.com/docs/api-reference/business-management/notifications/audiences/audience-v1/list-audience-providers.md), or one of these providers, which resolve participants from the trigger payload when the automation runs: - `explicitData_triggerMainContact`: `{"participants": [{"type": "CONTACT", "value": "{{var(\"contactId\")}}"}]}`, where `type` is `CONTACT` or `EMAIL` and `value` refers to a path in the trigger payload. - `explicitData_accountUser`: `{"participants": [{"type": "WIX_USER", "value": "{{var(\"userId\")}}"}]}`, where `value` refers to a path in the trigger payload.  Each `audienceProviderId` is validated, but `audienceProviderData` isn't, so make sure it's the input its provider expects.  Min: 1 audience

```