> 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`).
> - 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: Sample Flows

## Article: Sample Flows

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

## Article Content:

# Automation Email Action: Sample Flows

This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.

## Edit a preinstalled automation's email content for the first time

A preinstalled automation starts out sharing its email content with every other site running the same automation. To make the content specific to a site, you update it once, which automatically creates the site's own copy.

To edit a preinstalled automation's email content for the first time:

1. Call [Get Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/get-email-content.md) for the automation and action. This works even if the site hasn't edited the content yet, and returns the shared, template content.
1. Change the fields you want to update in the returned content, keeping the rest as retrieved. [Set Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/set-email-content.md) replaces the stored content in full, so anything left out is cleared rather than kept.
1. Call [Set Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/set-email-content.md) with the updated content. This creates the site's own copy of the content and publishes it.

## Preview and test email content

To preview and test email content:

1. Call [Preview Email Content](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/preview-email-content.md) for the automation and action, passing a `customPayload` that represents the data the action would receive when the automation runs. This renders the content as HTML without sending anything.
1. Review the rendered `html` and `emailSubject` in the response.
1. Call [Send Test Email](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/send-test-email.md) with a `toEmail` address and the same `customPayload`, to receive an actual test email rendered with that data.