Skip to content

Master back to develop after one-off #7310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/_data/sidenav/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ sections:
title: BigQuery Data Graph Setup
- path: /unify/data-graph/setup-guides/databricks-setup/
title: Databricks Data Graph Setup
- path: /unify/data-graph/setup-guides/redshift-setup/
title: Redshift Data Graph Setup
- path: /unify/data-graph/setup-guides/snowflake-setup/
title: Snowflake Data Graph Setup
- section_title: Linked Events
Expand Down
1 change: 0 additions & 1 deletion src/connections/destinations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ Segment supports IP Allowlisting in [all destinations](/docs/connections/destina
- [LiveRamp](/docs/connections/destinations/catalog/actions-liveramp-audiences/)
- [TradeDesk](/docs/connections/destinations/catalog/actions-the-trade-desk-crm/)
- [Amazon Kinesis](/docs/connections/destinations/catalog/amazon-kinesis/)
- [Destination Functions](/docs/connections/functions/destination-functions/)

Destinations that are not supported receive traffic from randomly assigned IP addresses.

Expand Down
10 changes: 9 additions & 1 deletion src/connections/functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@ To learn more, visit [destination insert functions](/docs/connections/functions/

With Functions Copilot, you can instrument custom integrations, enrich and transform data, and even secure sensitive data nearly instantaneously without writing a line of code.

To learn more, visit the [Functions Copilot documentation](/docs/connections/functions/copilot/).
To learn more, visit the [Functions Copilot documentation](/docs/connections/functions/copilot/).

#### IP Allowlisting

IP Allowlisting uses a NAT gateway to route outbound Functions traffic from Segment’s servers to your destinations through a limited range of IP addresses, which can prevent malicious actors from establishing TCP and UDP connections with your integrations.

IP Allowlisting is available for customers on Business Tier plans.

To learn more, visit [Segment's IP Allowlisting documentation](/docs/connections/destinations/#ip-allowlisting).
4 changes: 2 additions & 2 deletions src/engage/journeys/event-triggered-journeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Unlike traditional audience-based journeys that rely on pre-defined user segment

On this page, you'll learn how to create an event-triggered journey, configure entry conditions, and work with published event-triggered journeys.

> info "Private Beta"
> Event-Triggered Journeys is in private beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available. During private beta, Event-Triggered Journeys is not HIPAA eligible.
> info "Public Beta"
> Event-Triggered Journeys is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available. Event-Triggered Journeys is not currently HIPAA eligible.

## Overview

Expand Down
95 changes: 55 additions & 40 deletions src/engage/journeys/journey-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,36 @@ hidden: true

This page explains Journey context, which can help you dynamically adapt each journey to individual user interactions, creating highly relevant, real-time workflows.

> info "Private Beta"
> Event-Triggered Journeys is in private beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available. During private beta, Event-Triggered Journeys is not HIPAA eligible.
> info "Public Beta"
> Event-Triggered Journeys is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available. Event-Triggered Journeys is not currently HIPAA eligible.

## Overview

Unlike traditional audience-based journeys, which rely solely on user progress through predefined steps, event-triggered journeys capture and store the details of user-triggered events. This shift allows you to access the data that caused users to reach a specific step and use it to make more precise decisions throughout the journey.

With journey context, you can:

- Split journeys based on event attributes or outcomes.
<!-- Split journeys based on event attributes or outcomes.-->
- Personalize customer experiences using real-time event data.
- Enable advanced use cases like abandonment recovery, dynamic delays, and more.

For example:

- When a user cancels an appointment, send a message that includes the time and location of the appointment they just canceled.
- When a user abandons a cart, send a message that includes the current contents of their cart.

## What is Journey context?

Journey context is a flexible data structure that captures key details about the events and conditions that shape a customer’s journey. Journey context provides a point-in-time snapshot of event properties, making accurate and reliable data available throughout the journey.

Journey context stores:
- **Event properties**: Information tied to specific user actions, like `Appointment ID` or `Order ID`.
- **Split evaluations**: Results of branch decisions made during the journey, enabling future steps to reference these outcomes.
Journey context stores event property information tied to specific user actions, like `Appointment ID` or `Order ID`.

Journey context doesn't store:
- **Profile traits**, which may change over time.
- **Audience memberships**, which can evolve dynamically.

However, the up-to-date values of profile traits and audience membership can be added in a payload sent to a destination.

This focused approach ensures journey decisions are always based on static, reliable data points.

### Examples of stored context
Expand All @@ -49,7 +54,9 @@ Event properties are the foundation of Journey context. Examples of event proper
- `Order ID`
- An array of cart contents

Segment captures each event’s properties as a point-in-time snapshot when the event occurs, ensuring that the data remains consistent for use in personalization, branching, and other advanced workflow steps.
Segment captures each event’s properties as a point-in-time snapshot when the event occurs, ensuring that the data remains consistent for use in personalization.

<!-- branching, and other advanced workflow steps. -->

## Using Journey context in Event-Triggered Journeys

Expand All @@ -59,43 +66,47 @@ This is useful for scenarios like:

- **Abandonment recovery:** Checking whether a user completed a follow-up action, like a purchase.
- **Customizing messages:** Using event properties to include relevant details in communications.
- **Scheduling workflows:** Triggering actions based on contextual data, like the time of a scheduled appointment.
<!-- - **Scheduling workflows:** Triggering actions based on contextual data, like the time of a scheduled appointment. -->

By incorporating event-specific data at each step, journey context helps workflows remain relevant and adaptable to user actions.

### Journey steps that use context

Journey context gets referenced and updated at various steps in an event-triggered journey. Each step plays a specific role in adapting the journey to user behavior or conditions.

#### Wait for event split
#### Hold Until split

This step checks whether a user performs a specific event within a given time window. If the event occurs, Segment adds its details to journey context for use in later steps.

For example, a journey may wait to see if a `checkout_completed` event occurs within two hours of a user starting checkout. If the event happens, the workflow can proceed; otherwise, it may take an alternate path. The data captured includes event properties (like `Order ID`) and the results of the split evaluation.
For example, a journey may wait to see if a `checkout_completed` event occurs within two hours of a user starting checkout. If the event happens, its properties are added to context and the workflow can proceed; otherwise, it may take an alternate path. The data captured includes event properties (like `Order ID`).

#### Context split
<!-- // and the results of the split evaluation. -->

This step evaluates conditions using data already stored in journey context. Based on the conditions, users are routed to different branches of the journey.
If a Hold Until branch is set to send profiles back to the beginning of the step when the event is performed, those events are also captured in context. Because they may or may not be performed during a journey, they will show as available in future steps but will not be guaranteed for every user's progression through the journey.

For example, a user who triggers an event with a property like `order_value > 100` might be routed to one branch, while other users follow a different path. The split uses attributes from journey context, like event properties or prior split outcomes, to determine the appropriate branch.
<!-- // #### Context split

#### Profile data split
// This step evaluates conditions using data already stored in journey context. Based on the conditions, users are routed to different branches of the journey.

This step evaluates user traits or audience memberships to determine branching. While Segment doesn't store profile data in journey context, it complements the static data available in the journey.
// For example, a user who triggers an event with a property like `order_value > 100` might be routed to one branch, while other users follow a different path. The split uses attributes from journey context, like event properties or prior split outcomes, to determine the appropriate branch.

For example, users in a premium audience can be directed to a tailored experience, while others follow the standard flow. Segment stores the results of this split in journey context for reference in later steps.
// #### Profile data split

#### Contextual delay
// This step evaluates user traits or audience memberships to determine branching. While Segment doesn't store profile data in journey context, it complements the static data available in the journey.

A contextual delay introduces a wait period based on time-related data in journey context. This keeps workflows aligned with real-world events.
// For example, users in a premium audience can be directed to a tailored experience, while others follow the standard flow. Segment stores the results of this split in journey context for reference in later steps.

For example, a journey can wait until one hour before an `Appointment Start Time` to send a reminder email. The delay reads from journey context but doesn't add any new data to it.
// #### Contextual delay

#### Function steps
// A contextual delay introduces a wait period based on time-related data in journey context. This keeps workflows aligned with real-world events.

Function steps process data from journey context through custom logic. The output of the function gets written back to context for use in later steps.
// For example, a journey can wait until one hour before an `Appointment Start Time` to send a reminder email. The delay reads from journey context but doesn't add any new data to it.

For example, a function might calculate a discount percentage based on an event property, then store that value in journey context for later use. The output gets scoped to a dedicated object (`function_output`) to keep the context structured and reliable.
// #### Function steps

// Function steps process data from journey context through custom logic. The output of the function gets written back to context for use in later steps.

// For example, a function might calculate a discount percentage based on an event property, then store that value in journey context for later use. The output gets scoped to a dedicated object (`function_output`) to keep the context structured and reliable. -->

#### Send to destination

Expand All @@ -107,40 +118,44 @@ For example, a payload sent to a messaging platform might include `Order ID` and

The structure of journey context organizes event-specific data gets and makes it accessible throughout the journey workflow. By standardizing how data is stored, Segment makes it easier to reference, use, and send this information at different stages of a journey.

Journey context is organized as a collection of key-value pairs, where each key represents a data point or category, and its value holds the associated data. This structure supports various types of information, like event properties, split outcomes, and function outputs.
Journey context is organized as a collection of key-value pairs, where each key represents a data point or category, and its value holds the associated data.

<!-- This structure supports various types of information, like event properties, split outcomes, and function outputs. -->

For example, when a user triggers an event like `Appointment Scheduled`, Segment stores its properties (like `Appointment ID`, `Appointment Start Time`) as key-value pairs. You can then reference these values in later journey steps or include them in external payloads.

The following example shows how journey context might look during a workflow. In this case, the user scheduled an appointment, and the workflow added related event data to the context:

```json
{
"appointment_scheduled": {
"appointment_id": "12345",
"start_time": "2024-12-06T10:00:00Z",
"end_time": "2024-12-06T11:00:00Z",
"provider_name": "Dr. Smith"
},
"split_decision": {
"split_name": "appointment_type_split",
"branch_chosen": "existing_patient"
},
"function_output": {
"discount_percentage": 15
"journey_context": {
"appointment_scheduled": {
"appointment_id": 12345,
"start_time": "2024-12-06T10:00:00Z",
"end_time": "2024-12-06T11:00:00Z",
"provider_name": "Dr. Smith"
},
"appointment_rescheduled": {
"appointment_id": 12345,
"start_time": "2024-12-07T10:00:00Z",
"end_time": "2024-12-07T11:00:00Z",
"provider_name": "Dr. Jameson"
}
}
}
```

This payload contains:

- **Event properties**: Captured under the `appointment_scheduled` key.
- **Split outcomes**: Documented in the `split_decision` object.
- **Function results**: Stored in the `function_output` object for use in later steps.
- **Entry Event properties**: Captured under the `appointment_scheduled` key.
- **Hold Until Event properties**: Captured under the `appointment_rescheduled` key.

## Journey context and Event-Triggered Journeys

Journey context underpins the flexibility and precision of Event-Triggered Journeys. By capturing key details about events and decisions as they happen, journey context lets workflows respond dynamically to user actions and conditions.

Whether you're orchestrating real-time abandonment recovery, scheduling contextual delays, or personalizing messages with event-specific data, journey context provides the tools to make your workflows more relevant and effective.
Whether you're orchestrating real-time abandonment recovery or personalizing messages with event-specific data, journey context provides the tools to make your workflows more relevant and effective.

To learn more about how Event-Triggered Journeys work, visit the [Event-Triggered Journeys documentation](/docs/engage/journeys/event-triggered-journeys/).

To learn more about how Event-Triggered Journeys work, visit the [Event-Triggered Journeys documentation](/docs/engage/journeys/event-triggered-journeys/).
<!-- PW, 10 December 2024; on PM request, commented out certain sections with functionalities not yet available during public beta. -->
2 changes: 1 addition & 1 deletion src/unify/data-graph/setup-guides/databricks-setup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Databricks Setup
title: Databricks Data Graph Setup
plan: unify
redirect_from:
- '/unify/linked-profiles/setup-guides/databricks-setup'
Expand Down
Loading
Loading