只在工作日傳送電子郵件 send-emails-only-on-weekdays

在此頁面上:​瞭解如何設定只在工作日傳送電子郵件的歷程,使用條件活動將週末專案排入佇列,並使用自訂公式將活動等待。

此使用案例示範如何在Adobe Journey Optimizer中設定只在工作日(星期一到星期五)傳送電子郵件的歷程。 對於在週末(星期六或星期日)進入歷程的設定檔,電子郵件會自動排入佇列,並在星期一的指定時間傳送。 這可透過在工作週期間傳遞訊息來確保最佳參與。

使用案例概觀

挑戰:確認電子郵件只會在平日傳送,即使設定檔可能會在週末進入歷程。 對於週末的登入點,電子郵件應在星期一的特定時間排入佇列並傳送。

解決方案:使用條件活動來識別星期幾。 對於週末專案,使用自訂公式的等待活動會將電子郵件延遲到星期一。 工作日專案會直接繼續進行電子郵件傳送步驟。

此方法可讓您使用條件活動來檢查當天是星期六還是星期日、使用自訂公式來實作等待活動以便週末輸入、將週末電子郵件排入佇列以便星期一在特定小時傳遞,以及立即傳送電子郵件以便平日輸入(星期一至星期五)。

此方法非常適合企業間(B2B)電子郵件行銷活動、專業電子報和通訊、企業相關公告、工作相關產品更新,以及任何不希望週末送貨的行銷活動。

NOTE
若要實作此使用案例,您需要具備已設定的電子郵件頻道介面對象事件的活動Adobe Journey Optimizer執行個體以觸發歷程,以及對歷程條件運算式的基本瞭解。

實施步驟

使用這些步驟來建立僅限工作日的電子郵件流程。

步驟1:建立您的歷程

  1. 在Adobe Journey Optimizer中導覽至​歷程管理 > 歷程

  2. 按一下​ 建立歷程 ​以建立新歷程

  3. 設定歷程屬性

  4. 選擇您的歷程進入點:

    • 讀取對象:針對鎖定特定對象的批次行銷活動
    • 事件:針對根據客戶行為的即時觸發歷程

步驟2:新增條件活動以檢查一週中的某天

在歷程開始之後,新增​ 條件 ​活動以檢查當天是星期六還是星期日。 這會相應地分支工作流程。

  1. 最佳化​​活動拖放到進入點之後的畫布上。

  2. 按一下​ 條件 ​活動以開啟其設定面板。

  3. 選取​ 時間條件 ​作為條件型別。

  4. 選取​ 一週中的某天 ​作為時間篩選選項。

  5. 對於​第一個路徑(星期六),請只選取​星期六。 將此路徑標示為「星期六」。

  6. 按一下​ 新增路徑 ​以建立第二個條件。

  7. 對於​秒路徑(星期日),請選取​一週中的某天,然後只選取​星期日。 將此路徑標示為「星期日」。

    在運算式編輯器中設定星期六和星期日的條件

  8. 檢查​顯示上述案例以外的路徑,以建立工作日專案(星期一至星期五)的路徑。

NOTE
用於星期評估的時區是在歷程屬性中的歷程層級定義,而不是在條件層級。 公式中使用的歷程時區是歷程已設定的時區,而非收件者的時區。

步驟3:設定週末專案的等待活動

對於在星期六或星期日輸入的設定檔,使用包含自訂公式的​ 等待 ​活動,將電子郵件延遲到星期一您想要的時間。

在​ 等待 ​活動中,使用以下公式:

toDateTimeOnly(setHours(nowWithDelta(X, "days"), H))

其中:

  • X​是等待的天數:

    • 星期六使用​2 (等到星期一)
    • 星期日使用​1 (等到星期一)
  • H​是您要傳送的小時(例如,上午9點為​9

星期六的範例:

toDateTimeOnly(setHours(nowWithDelta(2, "days"), 9))

星期日的​範例:

toDateTimeOnly(setHours(nowWithDelta(1, "days"), 9))

若要在您的歷程中實作此專案:

  1. 在​ 星期六路徑 ​上,在條件後面新增​ 等待 ​活動。

  2. 選取​ 持續時間 ​作為等待型別。

  3. 按一下​ 進階模式 ​以輸入自訂公式。

  4. 輸入: toDateTimeOnly(setHours(nowWithDelta(2, "days"), 9))

    具有三個條件路徑的歷程 — 星期六、星期日和工作日

  5. 對​ 星期日路徑 ​重複相同的步驟,使用: toDateTimeOnly(setHours(nowWithDelta(1, "days"), 9))

TIP
針對更複雜的營業時間(例如,只在工作日的上午9點至下午5點之間傳送),您可以進一步增強公式和條件。

步驟4:工作日分支

對於進入星期一到星期五的設定檔,照常繼續進行電子郵件傳送步驟。

  1. 在​工作日路徑 (「其他案例」路徑)上,直接繼續新增​ 電子郵件 ​動作活動。 工作日專案不需要​ 等待 ​活動。

  2. 視需要設定您的電子郵件訊息。

步驟5:完成歷程流程

在星期六和星期日路徑上的​ 等待 ​活動後,所有三個路徑(星期六、星期日和工作日)都應流向相同的​ 電子郵件 ​動作活動。 在電子郵件後新增​ End ​活動。

視覺化工作流程總覽

完整的歷程工作流程會遵循此邏輯:

  • 開始條件:是星期六還是星期日?

    • 是(星期六): 等候​至星期一上午9點→傳送電子郵件
    • 是(星期日): 等待​直到星期一上午9→傳送電子郵件
    • 否(星期一至星期五): 立即傳送電子郵件

這可確保所有電子郵件只會在平日傳送,週末的專案會自動排入星期一傳送的佇列。

步驟6:測試您的歷程

發佈之前,請在Adobe Journey Optimizer的測試模式下徹底測試您的歷程邏輯,以確認一切都如預期般運作:

  1. 按一下右上角的​ 測試 ​按鈕。

  2. 啟用測試模式

  3. 建立在一星期中不同日期具有模擬進入時間的測試設定檔

    • 星期六專案:驗證設定檔是否遵循星期六路徑、在指定時間等待並接收星期一的電子郵件
    • 星期日專案:驗證設定檔是否遵循星期日路徑、在指定時間等待並接收星期一的電子郵件
    • 星期一至星期五的專案:確認電子郵件會立即傳送,無需任何等候
  4. 檢閱歷程視覺效果,確保設定檔遵循正確的條件路徑(星期六、星期日或工作日)。

  5. 檢查歷程中是否有任何錯誤或警告

  6. 確認「等待」公式計算所需星期一傳送時間的正確持續時間。

IMPORTANT
一律在測試模式下測試您的歷程邏輯,以確保等待活動如預期般運作。 使用測試模式來模擬不同的登入案例,並驗證週末專案是否已正確排入星期一傳送的佇列。 如需詳細資訊,請參閱歷程測試最佳實務

步驟7:發佈您的歷程

測試完成後:

  1. 按一下右上角的​發佈

  2. 確認出版物

  3. 使用歷程報告即時報告監視歷程績效。

相關主題

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: This page provides a step-by-step use case for configuring a journey that sends emails only on weekdays by using a day-of-week condition and custom Wait formulas to delay weekend entries until Monday.

Intents:

  • Configure a Condition activity to branch a journey based on the day of the week (Saturday, Sunday, or weekday)
  • Write custom Wait expressions using toDateTimeOnly(setHours(nowWithDelta(X, "days"), H)) to delay weekend profiles until Monday
  • Build a three-path journey that merges all paths into a single email action
  • Test the weekday-only email logic using test profiles with different simulated entry days
  • Publish and monitor a journey that suppresses weekend email delivery

Glossary:

  • Time condition: A condition activity type in Journey Optimizer that branches journey paths based on date/time criteria such as day of the week (product-specific)
  • nowWithDelta: An expression function that returns the current date/time offset by a specified number of days or other units (product-specific)
  • setHours: An expression function that sets a specific hour on a given date/time value (product-specific)
  • toDateTimeOnly: An expression function that converts a value to the dateTimeOnly format required by custom Wait activities (product-specific)

Guardrails:

  • The time zone used for day-of-week evaluation is the journey’s configured timezone (set in journey properties), not the individual recipient’s timezone.
  • An active email channel surface, and an audience or event to trigger the journey, are required to implement this use case.
  • Basic understanding of journey conditions and the advanced expression editor is a prerequisite.
  • Always test the journey in test mode before publishing to verify the Wait formulas produce the correct Monday delivery time.

Terminology:

  • Canonical name: Day-of-week email scheduling — Acronym: none — variants: weekday-only emails, business-hours email delivery
  • Synonyms: “Saturday path” / “Sunday path” = “weekend paths”; “other cases path” = “weekday path”
  • Do not confuse: journey timezone (used for day-of-week evaluation) ≠ recipient’s local timezone

FAQ:

  • Q: What formula delays a Saturday entry until Monday at 9 AM? — Use toDateTimeOnly(setHours(nowWithDelta(2, "days"), 9)) on the Saturday path (2 days forward lands on Monday).
  • Q: What formula delays a Sunday entry until Monday at 9 AM? — Use toDateTimeOnly(setHours(nowWithDelta(1, "days"), 9)) on the Sunday path (1 day forward lands on Monday).
  • Q: Which timezone is used when evaluating the day-of-week condition? — The journey’s configured timezone defined in journey properties; it is not the recipient’s local timezone.
  • Q: Do weekday entries need a Wait activity? — No, profiles entering Monday through Friday proceed directly to the Email action activity without any wait.
  • Q: How do I test that weekend entries are correctly queued? — In test mode, create test profiles with simulated Saturday and Sunday entry times and verify they follow the correct conditional path and receive the email on Monday at the configured hour.
recommendation-more-help
journey-optimizer-help