[IMP] marketing automation: workflow activities

closes odoo/documentation#8867

X-original-commit: 0aaff7f75e
Signed-off-by: Zachary Straub (zst) <zst@odoo.com>
Signed-off-by: Samuel Lieber (sali) <sali@odoo.com>
Co-authored-by: ksc-odoo <73958186+ksc-odoo@users.noreply.github.com>
This commit is contained in:
Sam Lieber (sali) 2024-04-03 15:42:46 -04:00 committed by Zachary Straub (ZST)
parent 15bdaa7bdb
commit 0c25dbe3e7
26 changed files with 272 additions and 196 deletions

View File

@ -120,6 +120,8 @@ If this is a recurring problem with the same client, or the same domain, do not
:ref:`developer mode <developer-mode>` by navigating to :menuselection:`Settings app --> :ref:`developer mode <developer-mode>` by navigating to :menuselection:`Settings app -->
Technical menu --> Parameters --> System Parameters`. Technical menu --> Parameters --> System Parameters`.
.. _email_communication/email-sent-late:
Email is sent late Email is sent late
------------------ ------------------

View File

@ -13,7 +13,7 @@ marketing campaigns, it also provides advanced features to automate repetitive t
database. database.
Get started by creating a :ref:`new campaign from scratch <marketing_automation/campaigns>` or start Get started by creating a :ref:`new campaign from scratch <marketing_automation/campaigns>` or start
with a :ref:`campaign template <marketing-automation/campaign-templates>`. with a :ref:`campaign template <marketing_automation/campaign-templates>`.
.. seealso:: .. seealso::
`Odoo Tutorials: Marketing <https://www.odoo.com/slides/marketing-27>`_ `Odoo Tutorials: Marketing <https://www.odoo.com/slides/marketing-27>`_
@ -69,13 +69,13 @@ A *campaign* refers to a workflow of activities that are automatically executed
audience, based on predefined filters, triggers, and durations of activities. audience, based on predefined filters, triggers, and durations of activities.
A new campaign can be created from scratch or from a :ref:`template A new campaign can be created from scratch or from a :ref:`template
<marketing-automation/campaign-templates>`. <marketing_automation/campaign-templates>`.
To create a campaign, navigate to the :menuselection:`Marketing Automation` application, from the To create a campaign, navigate to the :menuselection:`Marketing Automation` application, from the
main Odoo dashboard, to open the :guilabel:`Campaigns` dashboard. From here, click the main Odoo dashboard, to open the :guilabel:`Campaigns` dashboard. From here, click the
:guilabel:`New` button to reveal a new campaign form. :guilabel:`New` button to reveal a new campaign form.
.. _marketing-automation/campaign-templates: .. _marketing_automation/campaign-templates:
Campaign templates Campaign templates
------------------ ------------------
@ -166,9 +166,12 @@ are engaged by the activity as *Success* and *Rejected* counts.
To create one of the following activities, click :guilabel:`Add new activity` in the To create one of the following activities, click :guilabel:`Add new activity` in the
:guilabel:`Workflow` section of the campaign form: :guilabel:`Workflow` section of the campaign form:
- :guilabel:`Email`: send an email to the target audience. - :ref:`Email <marketing_automation/email-activity-type>`: an email that is sent to the target
- :guilabel:`SMS`: send an SMS to the target audience. audience.
- :guilabel:`Server Action`: executes an automated action. - :ref:`Server action <marketing_automation/sa-activity-type>`: an internal action within the
database that is executed.
- :ref:`SMS <marketing_automation/sms-activity-type>`: a text message that is sent to the target
audience.
.. seealso:: .. seealso::
:doc:`marketing_automation/workflow_activities` :doc:`marketing_automation/workflow_activities`

View File

@ -2,265 +2,336 @@
Campaign workflow activities Campaign workflow activities
============================ ============================
When creating a marketing campaign in the *Marketing Automation* app, users can plan marketing A *workflow* is the overall *activity* structure of a marketing automation campaign. There can only
activities that can be triggered when certain actions or inactions occur. These can be activities be a single workflow in each campaign. However, a workflow can be made up of any number of
such as, automated emails, SMS, or internal server actions. :ref:`activities <marketing_automation/activities>` to meet the needs of the campaign.
Add workflow activities .. figure:: workflow_activities/workflow-activities.png
=======================
To add workflow activities to a marketing campaign, navigate to the bottom of a pre-existing or new
campaign detail form, beneath the target audience configuration fields, and click :guilabel:`Add new
activity`.
Doing so reveals a :guilabel:`Create Activities` pop-up window. This pop-up window is a blank
activity template, where specific parameters can be set for that particular activity.
.. image:: workflow_activities/activity-template.png
:align: center :align: center
:alt: A workflow activity template pop-up window in Odoo Marketing Automation. :alt: A workflow in an Odoo Marketing Automation campaign.
First, enter a name for the activity in the :guilabel:`Activity Name` field. Then, proceed to Workflow sequence of three activities; the last child activity has a :ref:`trigger type
configure the following options. <marketing_automation/trigger-type>` of **Mail: not opened**.
Once ready, either click: :guilabel:`Save & Close` to save the activity and close the pop-up form, .. _marketing_automation/activities:
:guilabel:`Save & New` to save the activity and instantly create an additional activity on a fresh
:guilabel:`Create Activities` pop-up form, or :guilabel:`Discard` to delete the activity. Activities
==========
Activities are the methods of communication or server actions, organized in a workflow, that are
executed within a campaign; they are the building blocks of the campaign's workflow.
A new activity can be added to the workflow on a campaign form by selecting an existing campaign or
:ref:`creating a new campaign <marketing_automation/campaigns>` from the :menuselection:`Marketing
Automation app --> Campaigns` dashboard, then clicking the :guilabel:`Add new activity` button in
the :guilabel:`Workflow` section. Doing so opens the :guilabel:`Create Activities` pop-up window.
First, define the name of the activity in the :guilabel:`Activity Name` field, and select the
:ref:`type of activity <marketing_automation/activity-types>` to be executed from the
:guilabel:`Activity Type` field.
Then, configure the activity's :ref:`Trigger <marketing_automation/trigger>`, and optionally, the
:ref:`Expiry Duration <marketing_automation/expiry-duration>` and the :ref:`DOMAIN
<marketing_automation/activity-domain>` of the activity.
Once the activity is fully configured, click :guilabel:`Save & Close` to add it to the campaign's
workflow, or click :guilabel:`Save & New` to add the activity to the workflow and open a new
:guilabel:`Create Activities` pop-up window to add another activity. Clicking :guilabel:`Discard`
closes the pop-up window without saving the activity.
.. image:: workflow_activities/create-activities.png
:align: center
:alt: The create activities pop-up window.
.. _marketing_automation/activity-types:
Activity types Activity types
-------------- --------------
Then, select the :guilabel:`Activity Type`. Choose between :guilabel:`Email`, :guilabel:`Server There are three different types of activities available in the *Marketing Automation* app:
Action` (an internal action within the database), or :guilabel:`SMS`.
The field below the :guilabel:`Activity Type` changes, depending on the chosen :guilabel:`Activity - :ref:`Email <marketing_automation/email-activity-type>`: an email that is sent to the target
Type`. audience.
- :ref:`Server action <marketing_automation/sa-activity-type>`: an internal action within the
database that is executed.
- :ref:`SMS <marketing_automation/sms-activity-type>`: a text message that is sent to the target
audience.
Email activity .. _marketing_automation/email-activity-type:
~~~~~~~~~~~~~~
If :guilabel:`Email` is the :guilabel:`Activity Type`, the option to choose a premade/pre-configured Email
:guilabel:`Mail Template` becomes available. A mail template can also be created on-the-fly, as ~~~~~
well.
If :guilabel:`Email` is selected as the :guilabel:`Activity Type`, the option to :guilabel:`Pick a
Template` in the :guilabel:`Mail Template` field is available.
To create a new template directly from the :guilabel:`Mail Template` field, start typing the title To create a new template directly from the :guilabel:`Mail Template` field, start typing the title
of the new template into the blank field beside :guilabel:`Mail Template`, and select of the new template, then select :guilabel:`Create and edit...` to reveal a :guilabel:`Create
:guilabel:`Create and edit...` to reveal a :guilabel:`Create Marketing Template` pop-up window. Marketing Template` pop-up window. Proceed to create and configure the new email template.
.. image:: workflow_activities/email-activity-create-edit.png .. image:: workflow_activities/email-activity-type.png
:align: center :align: center
:alt: The create and edit email drop-down option on create activities pop-up window. :alt: The create and edit email drop-down option on create activities pop-up window.
In that pop-up window, proceed to create and configure the new email template. Once the email template is configured, click :guilabel:`Save & Close` to save the activity, and
return to the :guilabel:`Create Activities` pop-up window, in order to continue to configure the
:ref:`trigger <marketing_automation/trigger>`.
.. image:: workflow_activities/create-marketing-template-popup-window.png .. note::
The title used for the :guilabel:`Mail Template` **must** be unique from any other mail template
titles in the campaign, and it also serves as the subject of the email.
.. seealso::
:doc:`Creating and configuring email templates <../email_marketing>`
.. _marketing_automation/sa-activity-type:
Server action
~~~~~~~~~~~~~
If :guilabel:`Server Action` is selected as the :guilabel:`Activity Type`, the option to
:guilabel:`Pick a Server Action` in the :guilabel:`Server Action` field is available. This field is
a drop-down menu containing all the pre-configured server actions for the campaign's
:guilabel:`Target` model. Optionally, :ref:`create a new server action
<marketing_automation/create-sa>`.
.. image:: workflow_activities/sa-activity-type.png
:align: center :align: center
:alt: The create marketing template email pop-up window in Odoo Marketing Automation. :alt: The Server Action drop-down menu on create activities pop-up window.
Server action activity After selecting a pre-configured server action, no other activity type configuration is needed.
~~~~~~~~~~~~~~~~~~~~~~ Click :guilabel:`Save & Close` to save the activity, and return to the :guilabel:`Create Activities`
pop-up window, in order to configure the :ref:`trigger <marketing_automation/trigger>`.
If :guilabel:`Server Action` is the :guilabel:`Activity Type`, the option to choose a specific .. tip::
:guilabel:`Server Action` (e.g. Message for sales person, Create Leads on Website clicks, etc.) To view all server actions in the database, activate :ref:`developer-mode`, and navigate to
becomes available. :menuselection:`Settings app --> Technical --> Actions --> Server Actions` dashboard.
The option to create a new server action directly from the :guilabel:`Server Action` is also .. _marketing_automation/create-sa:
available. To do that, type in the name of the new action, then click :guilabel:`Create and Edit...`
from the drop-down menu.
.. image:: workflow_activities/server-action-create-edit-option.png Create a new server action
**************************
The option to create a new server action is also available. To do so, type in the :guilabel:`Server
Action` field a title for the new action, then click :guilabel:`Create and edit...`. Doing so
reveals a blank :guilabel:`Create Server Action` pop-up window, wherein a custom server action can
be created and configured.
.. image:: workflow_activities/create-sa.png
:align: center :align: center
:alt: The create and edit option in the server action field on campaign detail form. :alt: The Create Server Action pop-up window.
Or, as an alternative, click the empty :guilabel:`Server Action` field to reveal a drop-down menu, On the :guilabel:`Create Server Action` pop-up window, select the :guilabel:`Type` of server action.
and select :guilabel:`Search More...` to reveal a :guilabel:`Search: Server Action` pop-up window, The configuration fields change, depending on the selected :guilabel:`Type`:
containing all the pre-configured server action options to choose from.
To create a new server action from this pop-up window, and click :guilabel:`New`. - :guilabel:`Update Record`: update the values of a record.
- :guilabel:`Create Activity`: create an activity with the *Discuss* app.
- :guilabel:`Send Email`: post a message, a note, or send an email with the *Discuss* app.
- :guilabel:`Send SMS`: send an SMS, and log them on documents, with the *SMS* app.
- :guilabel:`Add Followers` or :guilabel:`Remove Followers`: add or remove followers on a record
with the *Discuss* app.
- :guilabel:`Create Record`: create a new record with new values.
- :guilabel:`Execute Code`: execute a block of Python code.
- :guilabel:`Send Webhook Notification`: send a POST request to an external system.
- :guilabel:`Execute Existing Actions`: define an action that triggers several other server
actions.
.. image:: workflow_activities/search-server-action-new-button.png Once the server action is configured, click :guilabel:`Save & Close` to save the activity, and
:align: center return to the :guilabel:`Create Activities` pop-up window, in order to configure the :ref:`trigger
:alt: The new button found on a server action pop-up in Odoo marketing automation application. <marketing_automation/trigger>`.
Either option reveals a blank :guilabel:`Create Server Action` pop-up, wherein a custom server .. tip::
action can be created and configured. Some of the server action types have advanced configurations available when :ref:`developer-mode`
is activated, such as specifying the :guilabel:`Allowed Groups` that can execute this server
action.
SMS activity .. _marketing_automation/sms-activity-type:
~~~~~~~~~~~~
If :guilabel:`SMS` is the :guilabel:`Activity Type`, the option to choose a premade/pre-configured SMS
:guilabel:`SMS Template` becomes available. A SMS template can also be created on-the-fly directly ~~~
from this field.
To create a new template directly from the :guilabel:`SMS Template` field, start typing the title If :guilabel:`SMS` is selected as the :guilabel:`Activity Type`, the option to :guilabel:`Pick a
of the new template into the blank field beside :guilabel:`SMS Template`, and select Template` in the :guilabel:`SMS Template` field is available.
:guilabel:`Create and edit...` from the drop-down menu.
.. image:: workflow_activities/create-edit-sms-option.png To create a new template directly from the :guilabel:`SMS Template` field, start typing the title of
the new template, and select :guilabel:`Create and edit...` to reveal a :guilabel:`Create Marketing
Template` pop-up window. Proceed to create and configure the new SMS template.
.. image:: workflow_activities/sms-activity-type.png
:align: center :align: center
:alt: The create and edit email drop-down option on create activities pop-up window. :alt: The create and edit email drop-down option on create activities pop-up window.
Doing so reveals a :guilabel:`Create Marketing Template` pop-up window. In that pop-up window, Once the SMS template is configured, click :guilabel:`Save & Close` to save the activity, and return
proceed to create and configure the new SMS template. to the :guilabel:`Create Activities` pop-up window, in order to configure the :ref:`trigger
<marketing_automation/trigger>`.
.. image:: workflow_activities/sms-marketing-template-popup.png .. seealso::
:align: center :doc:`Creating and configuring SMS templates <../sms_marketing/essentials/sms_essentials>`
:alt: The create marketing template pop-up window to create a SMS template on-the-fly.
.. _marketing_automation/trigger:
Trigger Trigger
------- -------
The :guilabel:`Trigger` field on the :guilabel:`Create Activities` pop-up form allows users to Once an :ref:`activity type <marketing_automation/activity-types>` is configured, the next step in
choose when the designated workflow activity should be triggered. the :guilabel:`Create Activities` pop-up window is to define when the activity should be executed.
This is done in the :guilabel:`Trigger` field group.
Start by selecting a number in the top field. In the next :guilabel:`Trigger` field, designate if .. image:: workflow_activities/trigger.png
it should be :guilabel:`Hours`, :guilabel:`Days`, :guilabel:`Weeks`, or :guilabel:`Months`. Then,
click the final field, where it reads :guilabel:`beginning of the workflow` be default to reveal a
a drop-down menu of other trigger options.
.. image:: workflow_activities/trigger-options-drop-down-menu.png
:align: center :align: center
:alt: A list of the trigger options available on the workflow activities pop-up form. :alt: The trigger field group on Create Activities pop-up window.
The trigger options are as follows: To set an execution delay for the activity from when the :ref:`trigger type
<marketing_automation/trigger-type>` occurs, type a whole number in the *interval number* input
(e.g. `2` is valid, `0` is also valid, and `1.5` is not).
- :guilabel:`beginning of the workflow`: the activity will be triggered at the previously-configured Next, select the unit of time for the interval number in the *interval type* drop-down menu, the
time after the beginning of the entire workflow. options are: :guilabel:`Hours`, :guilabel:`Days`, :guilabel:`Weeks`, and :guilabel:`Months`.
- :guilabel:`another activity`: the activity will be triggered at the previously-configured time
after another specific activity in the workflow. .. example::
- :guilabel:`Mail:opened`: the activity will be triggered at the previously-configured time if the If the interval number is set to `0` and the interval type is set to :guilabel:`Hours`, the
sent mail in the workflow has been opened by the recipient. activity will be executed immediately after the trigger type occurs (at the next scheduled run of
- :guilabel:`Mail:not opened`: the activity will be triggered at the previously-configured time if the :ref:`Mail: Email Queue Manager cron <email_communication/email-sent-late>`).
the sent mail in the workflow has not been opened by the recipient.
- :guilabel:`Mail: replied`: the activity will be triggered at the previously-configured time if the .. _marketing_automation/trigger-type:
sent mail in the workflow has been replied to by the recipient.
- :guilabel:`Mail: not replied`: the activity will be triggered at the previously-configured time if Trigger type
the sent mail in the workflow has not been replied to by the recipient. ~~~~~~~~~~~~
- :guilabel:`Mail: clicked`: the activity will be triggered at the previously-configured time if the
sent mail in the workflow has been clicked by the recipient, after it's been opened. To define the event occurrence that sets the activity into motion, select a *trigger type* from the
- :guilabel:`Mail: not clicked`: the activity will be triggered at the previously-configured time if drop-down menu:
the sent mail in the workflow has not been clicked by the recipient, after it's been opened.
- :guilabel:`Mail: bounced`: the activity will be triggered at the previously-configured time if the - :guilabel:`beginning of workflow`: the activity is executed when the campaign is started.
sent mail in the workflow has been bounced back for any reason.
- :guilabel:`SMS: clicked`: the activity will be triggered at the previously-configured time if the All other trigger types reveal a drop-down menu :guilabel:`Activity` field containing all of the
sent SMS in the workflow has been clicked by the recipient, after it's been opened. other activities in the campaign. Selecting one of these types converts this activity into a
- :guilabel:`SMS: not clicked`: the activity will be triggered at the previously-configured time if :ref:`child activity <marketing_automation/child-activities>` to be executed directly after the
the sent SMS in the workflow has not been clicked by the recipient, after it's been opened. selected :guilabel:`Activity`:
- :guilabel:`SMS: bounced`: the activity will be triggered at the previously-configured time if the
sent SMS in the workflow has been bounced back for any reason. - :guilabel:`another activity`: to be executed after another activity in the campaign.
- :guilabel:`Mail: opened`: the activity's email was opened by the participant.
- :guilabel:`Mail: not opened`: the activity's email was **not** opened by the participant.
- :guilabel:`Mail: replied`: the activity's email was replied to by the participant.
- :guilabel:`Mail: not replied`: the activity's email was **not** replied to by the participant.
- :guilabel:`Mail: clicked`: a link in the activity's email was clicked by the participant.
- :guilabel:`Mail: not clicked`: a link in the activity's email was **not** clicked by the
participant.
- :guilabel:`Mail: bounced`: the activity's email has bounced.
- :guilabel:`SMS: clicked`: a link in the activity's SMS was clicked by the participant.
- :guilabel:`SMS: not clicked`: a link in the activity's SMS was **not** clicked by the participant.
- :guilabel:`SMS: bounced`: the activity's SMS has bounced.
.. example::
If the trigger type is set to :guilabel:`Mail: clicked`, this activity is converted to a
:ref:`child activity <marketing_automation/child-activities>` and will execute **after** a
participant clicks on a link from the parent activity defined in the :guilabel:`Activity` field.
.. _marketing_automation/expiry-duration:
Expiry duration Expiry duration
--------------- ---------------
Next, on the :guilabel:`Create Activities` pop-up form is the :guilabel:`Expiry Duration` option. Optionally, an :guilabel:`Expiry Duration` can be defined in the :guilabel:`Create Activities`
pop-up window to cancel the execution of this activity after a specific amount of time. Selecting
this checkbox reveals the :guilabel:`Cancel after` field with *interval* and *interval type* inputs.
The :guilabel:`Expiry Duration` checkbox provides the option to configure the activity to stop the Type a whole number in the interval number input (e.g. `2` is valid, `0` is also valid, and `1.5`
actions after a specific amount of time (after the scheduled date). is not). Then, select the unit of time for the interval number in the interval type drop-down menu,
the options are: :guilabel:`Hours`, :guilabel:`Days`, :guilabel:`Weeks`, and :guilabel:`Months`.
When selected, a :guilabel:`Cancel after` field appears, in which the number of :guilabel:`Hours, .. example::
Days, Weeks, or Months` can be configured for the actions to cease after the initial date. If the interval number is set to `2` and the interval type is set to :guilabel:`Days`, the
activity will be cancelled if it has not been executed within 2 days of the trigger type.
.. image:: workflow_activities/expiry-duration-field-options.png .. _marketing_automation/activity-domain:
:align: center
:alt: A list of the expiry duration options available on the workflow activities pop-up form.
Activity and applied filters Activity domain
---------------------------- ---------------
Moving down into the :guilabel:`Domain` section of the :guilabel:`Create Activities` pop-up form, The :guilabel:`DOMAIN` section of the :guilabel:`Create Activities` pop-up window contains fields to
there is the :guilabel:`Activity Filter` and :guilabel:`Applied Filter` fields. further filter the target audience of the activity.
The :guilabel:`Activity Filter` field provides the option to configure a recipient filter domain The :guilabel:`Activity Filter` field focuses this activity, **and** its :ref:`child activities
that applies to this activity *and* its child activities. In works in the same fashion as a typical <marketing_automation/child-activities>`, even further on a specific group of the campaign's filter.
target audience filter. The process is the same as :ref:`defining filters <marketing_automation/defining-filters>` for the
campaign, and the fields that are available to filter are also specific to the :guilabel:`Target`
of the campaign.
To add an activity filter, click :guilabel:`Add condition` in the :guilabel:`Activity Filter` field The :guilabel:`# record(s)` beside the :guilabel:`Activity Filter` field indicates how many records
and proceed to configure a custom activity filter equation rule(s). are currently being targeted by this :guilabel:`Activity Filter`.
.. image:: workflow_activities/activity-filter-option.png The :guilabel:`Applied Filter` displays the combined filters from the :guilabel:`Activity Filter`
:align: center and the inherited campaign :doc:`Filter <target_audience>`. This field is read-only.
:alt: How to add an activity filter to a workflow activity in Odoo Marketing Automation.
This option is not a required field. If left alone, the activity applies to all records related to The :guilabel:`# record(s)` beside the :guilabel:`Applied Filter` field indicates how many records,
the target audience of the overall campaign. in total, are currently being targeted by the activity.
.. seealso:: .. _marketing_automation/child-activities:
- :doc:`target_audience`
The :guilabel:`Applied Filter` field is non-configurable. It's simply a summary of when the activity
will be performed, *only* if it satisfies the specified domain (e.g. the rules configured in the
:guilabel:`Activity Filter` field).
.. note::
After the activity's settings are fully configured, click :guilabel:`Save & Close` to save the
activity and return to the marketing automation campaign form, :guilabel:`Save & New` to save the
activity and immediately create another one in a fresh :guilabel:`Create Activities` pop-up
window, or :guilabel:`Discard` to delete the activity and return to the marketing automation
campaign form.
Workflow activity
=================
Once an activity is created and saved, it appears as an activity card in the :guilabel:`Workflow`
section, located at the bottom of the marketing automation campaign form. The analytics related to
each activity is displayed as a line graph.
.. image:: workflow_activities/workflow-activity.png
:align: center
:alt: Typical workflow activity in Odoo Marketing Automation.
The configured :guilabel:`Trigger` time for that activity can be found to the left of the
:guilabel:`Workflow Activity` card in the :guilabel:`Workflow` section.
Once the activity has been triggered, a figure representing the number of :guilabel:`Success` or
:guilabel:`Rejected` activities will be displayed to the right of the graph.
.. tip::
If the :guilabel:`Activity Type` of the activity is set to :guilabel:`Email` or :guilabel:`SMS`,
there are more in-depth analytics beneath the activity graph data, detailing how many messages
have been :guilabel:`Sent`, and what percentage of those have been :guilabel:`Clicked`,
:guilabel:`Replied` to, or :guilabel:`Bounced`.
Child activities Child activities
================ ================
There is also the option to add a *child activity* by clicking :guilabel:`Add child activity`, Activities that are connected to, and triggered by, another activity are known as, *child
located at the bottom of each activity block in the :guilabel:`Workflow` section of a marketing activities*.
campaign form.
Child activities are sub-activities that are connected to and triggered by the activity above it, The activity that triggers a child activity is known as its *parent activity*.
which is known as its *parent activity*. A child activity is easy to recognize, as its slightly
indented beneath its parent activity.
.. image:: workflow_activities/indented-child-activity.png A child activity can be added to a campaign's workflow by hovering over the :guilabel:` Add child
:align: center activity` button, located beneath the desired parent activity.
:alt: A typical child activity indented beneath its parent activity.
Odoo provides a number of triggering options to launch a child activity - all of which depend on the The child activity's :ref:`trigger types <marketing_automation/trigger-type>` are specific to the
trigger configurations related to its parent activity. Under the desired parent activity, hover over parent :ref:`activity type <marketing_automation/activity-types>` (*Email*, *SMS*, or *Server
:guilabel:`Add child activity`, to reveal a menu of child activity trigger options. Action*), and are as follows:
.. image:: workflow_activities/child-activity-trigger-options.png .. tabs::
:align: center
:alt: The various child activity trigger options in the workflow section of a campaign.
Select any of the following child activity triggers: .. tab:: Email
- :guilabel:`Add Another Activity`: instantly adds another activity. .. image:: workflow_activities/email-trigger-types.png
- :guilabel:`Opened`: the next activity will be triggered if the recipient opens the mailing. :align: center
- :guilabel:`Not Opened`: the next activity will be triggered if the recipient does not open the :alt: The trigger types for child activities of an email activity.
mailing.
- :guilabel:`Replied`: the next activity will be triggered if the recipient replies to the mailing.
- :guilabel:`Not Replied`: the next activity will be triggered if the recipient does not reply to
the mailing.
- :guilabel:`Clicked`: the next activity will be triggered if the recipient clicks on a link
included in the mailing.
- :guilabel:`Not Clicked`: the next activity will be triggered if the recipient does not click on a
link included in the mailing.
- :guilabel:`Bounced`: the next activity will be triggered if the mailing is bounced (not sent).
Once a trigger is selected, the user can configure the child activity the same way they would for a Each trigger the child activity on the following conditions of the parent activity:
regular workflow activity.
- :guilabel:`Add Another Activity`: to be executed after the parent activity.
- :guilabel:`Opened`: the email was opened by the participant.
- :guilabel:`Not Opened`: the email was **not** opened by the participant.
- :guilabel:`Replied`: the email was replied to by the participant.
- :guilabel:`Not Replied`: the email was **not** replied to by the participant.
- :guilabel:`Clicked`: a link in the email was clicked by the participant.
- :guilabel:`Not Clicked`: a link in the email was **not** clicked by the participant.
- :guilabel:`Bounced`: the email has bounced.
.. tab:: Server Action
.. image:: workflow_activities/sa-trigger-types.png
:align: center
:alt: The trigger types for child activities of a server action activity.
Triggers the child activity on the following condition of the parent activity:
- :guilabel:`Add Another Activity`: to be executed after the parent activity.
.. tab:: SMS
.. image:: workflow_activities/sms-trigger-types.png
:align: center
:alt: The trigger types for child activities of an SMS activity.
Each trigger the child activity on the following conditions of the parent activity:
- :guilabel:`Add Another Activity`: to be executed after the parent activity.
- :guilabel:`Clicked`: a link in the SMS was clicked by the participant.
- :guilabel:`Not Clicked`: a link in the SMS was **not** clicked by the participant.
- :guilabel:`Bounced`: the SMS has bounced.
Once a trigger type is selected, the :guilabel:`Create Activities` pop-up window opens to configure
the child activity. The process is the same as :ref:`creating a new activity
<marketing_automation/activities>`, with the exception that the :guilabel:`Trigger` field is
pre-filled with the selected trigger type, and the :guilabel:`Activity` field has the parent
activity selected.
.. seealso:: .. seealso::
- :doc:`testing_running` - :doc:`testing_running`
- :doc:`understanding_metrics`
- :doc:`target_audience`

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB