Skip to content

Commit cae468c

Browse files
author
markzegarelli
authored
Added the default trigger to Available Actions (#3003)
* Added the default trigger to Available Actions * capitalize Trigger * capitalize trigger elsewhere
1 parent baafc69 commit cae468c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/_includes/components/actions-fields.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
{% for action in actions %}
9595
### {{action.name}}
9696
<p>{{action.description | markdownify}}</p>
97-
<p>{{action.name}} is a <strong>{{action.platform | capitalize}}</strong> action.</p>
97+
<p>{{action.name}} is a <strong>{{action.platform | capitalize}}</strong> action. The default Trigger is:</p> <code>{{action.defaultTrigger}}</code>
9898

9999

100100
{% if action.fields.size > 0 %}

src/connections/destinations/actions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Destination Actions
66

77
The Destination Actions framework improves on classic destinations by enabling you to see and control how Segment sends the event data it receives from your sources, to actions-based destinations. Each Action in a destination lists the event data it requires, and the event data that is optional.
88

9-
You can also choose which event types, event names, or event property values trigger an Action. These triggers and mappings make it possible to send different versions of the Action, depending on the context from which it is triggered.
9+
You can also choose which event types, event names, or event property values trigger an Action. These Triggers and mappings make it possible to send different versions of the Action, depending on the context from which it is triggered.
1010

1111
Each Actions-framework Destination you see in the Segment catalog represents a feature or capability of the destination which can consume data from your Segment source. The Action clearly lists which data from the events it requires, and which data is optional. For example, Amplitude requires that you always send a `LogEvent` , or Slack always requires a `PostMessage`. Each Action also includes a default mapping which you can modify.
1212

@@ -41,8 +41,8 @@ A Destination Action contains a hierarchy of components, that work together to e
4141
| Component | Description |
4242
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4343
| Global Settings | Define authentication and connection-related information like API and Secret keys. |
44-
| Mappings | Handle the individual calls to the destination. In them, you define what type of call you want to make to the destination, and what triggers that call. Individual Destination Actions may come enabled with some predefined mappings to handle common events like Screen calls, Identify calls, and Track calls. Mappings have two components that make this possible: **Triggers** and an **Action**. |
45-
| Triggers | Enable you to define *when* the corresponding Action fires. As part of a Trigger, you can use condition-based filters to narrow the scope of the trigger. <br /> <br /> Self-service users can add a maximum of two conditions per trigger. |
44+
| Mappings | Handle the individual calls to the destination. In them, you define what type of call you want to make to the destination, and what Triggers that call. Individual Destination Actions may come enabled with some predefined mappings to handle common events like Screen calls, Identify calls, and Track calls. Mappings have two components that make this possible: **Triggers** and an **Action**. |
45+
| Triggers | Enable you to define *when* the corresponding Action fires. As part of a Trigger, you can use condition-based filters to narrow the scope of the Trigger. <br /> <br /> Self-service users can add a maximum of two conditions per Trigger. |
4646
| Actions | Determine the information sent to the destination. In the Configure action section, you map the fields that come from your source, to fields that the destination expects to find. Fields on the destination side depend on the type of action selected. |
4747

4848
For example, in the Amplitude (Actions) destination, you define your API and Secret keys in the destination's global settings. Then, the provided Page Calls mapping:
@@ -108,7 +108,7 @@ If necessary, click **New Mapping** to create a new, blank action.
108108

109109
1. In the edit panel, define the [conditions](#conditions) under which the action should run.
110110
2. Test those conditions to make sure that they correctly match an expected event.
111-
This step looks for events that match the criteria in the [debugger queue](/docs/connections/sources/debugger/), so you might need to trigger some events with the expected criteria to test your conditions. You can skip the test step if needed, and re-try it at any time.
111+
This step looks for events that match the criteria in the [debugger queue](/docs/connections/sources/debugger/), so you might need to Trigger some events with the expected criteria to test your conditions. You can skip the test step if needed, and re-try it at any time.
112112
3. Next, set up the data mapping from the Segment format to the destination tool format.
113113
4. Test the mapping with data from a sample event.
114114
The edit panel shows you the mapping output in the format for the destination tool. You can change your mapping as needed and re-test.
@@ -121,7 +121,7 @@ If necessary, click **New Mapping** to create a new, blank action.
121121
### Conditions
122122

123123
> info ""
124-
> Self-service users can add a maximum of two conditions per trigger.
124+
> Self-service users can add a maximum of two conditions per Trigger.
125125
126126

127127
The following type filters and operators are available to help you build conditions:
@@ -138,4 +138,4 @@ You can combine criteria in a single group using **ALL** or **ANY**. Use an ANY
138138
> - You need to remove properties from the data sent to the destination
139139
> - You need to filter data from multiple types of call (for example, Track, Page, and Identify calls)
140140
>
141-
> If your use case does not match these criteria, you might benefit from using Mapping-level triggers to match only certain events.
141+
> If your use case does not match these criteria, you might benefit from using Mapping-level Triggers to match only certain events.

0 commit comments

Comments
 (0)