Amperity Event Stream¶
An event stream is a configured flow of inbound events that Amperity ingests and processes in real time. A stream recognizes the type of each event it receives and routes recognized events to the profile collections that subscribe to it, which match each event to a customer. A stream can be set to accept, silently drop, or reject the events sent to it.
Write one event to an event stream in your own tenant as soon as a real-time journey reaches an Activate node. Amperity sends one event for each send, through the Real-time API, to the stream selected for the destination. The stream handles the event as it handles any other event that it receives: it recognizes the event’s type, and a recognized event updates the profiles that it links to. See Event streams.
Use these events as you use events from your website or app. For example:
Start another journey. One journey writes a “loyalty_tier_upgraded” event, and a second journey has that event as its Trigger event.
Record a journey milestone on the profile, such as entering a win-back journey, so that a real-time segment can read it.
Trace a send. Each event carries the IDs of the journey, the Activate node, and the send that wrote it.
Every event that this connector writes has “amperity-journey” as its “context.source”, so that it can be told apart from events that your website, app, or other API clients send to the same stream.
This connector sends from a real-time journey. See Real-time destinations.
Beta
The Amperity Event Stream connector is in beta. Contact your Amperity representative to learn more.
Requirements¶
A real-time journey.
An event stream in your tenant. Select an existing stream, or create one while you add the destination, as described under Settings.
A profile collection that processes events from the stream: the collection whose profiles the events should update, and the collection of any journey that the events should start. A collection that has streams selected under Event stream selection, on its Event assignment card, processes events only from those streams, so select this stream there. A stream that you create from this destination isn’t selected for any collection until you select it.
An event type on that stream for each event name that the journey writes, with its event ID set to read “eventId” and a field for the linking key that the journey sends. A stream accepts an event that has no matching event type, and then ignores it. See Configure an event type.
You don’t need an API key or an account outside Amperity.
Credentials¶
This connector uses the “amperity-event-stream” credential type. The credential holds nothing: Amperity sends each event with its own token for your tenant, which can only write events. When you add the credential, save it as it is.
Name and description
The name and description for a credential.
Settings¶
Name and description
The name and description for a destination.
Business user access
By default a destination is available to all users who have permission to view personally identifiable information (PII).
Enable the Admin only checkbox to restrict access to only users assigned to the Datagrid Operator and Datagrid Administrator policies.
Enable the PII setting checkbox to allow limited access to PII for this destination.
Use the Restrict PII access policy option to prevent users from viewing data marked as PII anywhere in Amperity and from sending data to downstream workflows.
Event stream
Required. The event stream in your tenant that receives the events. Select a stream from the list. A stream set to Drop or Reject is listed with “(set to drop events)” or “(set to reject events)” after its name.
Selecting a stream also sets Event name field, the field that carries the event name:
When the stream recognizes events by one field, Event name field is set to that field.
Otherwise, Event name field is cleared, and the event name is sent in “event_name”.
To create a stream for this destination, select Create event stream, enter a Name and an optional Description, and then select Create. Amperity creates the stream and selects it. The button is shown only when you can create event streams. The new stream:
Recognizes events by their “event_name” field.
Is set to Process.
Has a Default event ID that reads “eventId” and a Default timestamp that reads “timestamp”. Each event type that you create on the stream starts with these, so that it reads the event ID and time that Amperity sends. See Request body.
A new stream isn’t selected for any profile collection. Select it under Event stream selection for each collection that should process its events. See Requirements.
The form shows a warning, and still lets you save, while the selected stream:
Is set to Drop or Reject. A stream set to Drop discards every event that the destination sends, and a stream set to Reject refuses every event. Set the stream to Process, or select another stream.
Has no recognition method. The stream recognizes no events. Give the stream a recognition method, or select another stream.
Recognizes events by an event property. The stream reads each event’s type from that property under “properties”, not from the event name, so it recognizes only events that carry the property. Add the property under Event properties on the Activate node, or change the stream’s recognition method.
Recognizes events by a field that this destination can’t fill, such as a nested field or one that Amperity fills itself. Change the stream’s recognition method, or select another stream.
Recognizes events by a field other than Event name field. Set Event name field to the field that the warning names.
Amperity doesn’t let you delete an event stream while a destination for this connector sends to it. Select another stream for the destination, or delete the destination, first.
Event name field
Optional. The event field that holds the Activate node’s event name. Defaults to “event_name”. It must be the field that the stream recognizes events by. Selecting a stream fills it in. When someone changes the stream’s recognition method later, change this field to match, or the stream accepts the events and leaves them unrecognized.
The value must be one field name, made of letters, digits, and underscores, that doesn’t start with a digit. It can’t be “eventId”, “timestamp”, “context”, “properties”, or “amperityId”, which Amperity fills itself.
Testing the connection
When you test the connection, Amperity checks that Event stream is set to an event stream ID, which starts with “esm-”, and that the stream exists in your tenant. The test writes no event. It doesn’t check the stream’s mode or its recognition method, because the stream’s owner can change either at any time; the form’s warnings cover those.
Activate node settings¶
The rest of the configuration for this connector belongs to the journey that sends to it. Add this destination to an Activate node, then configure the following fields on the node’s Payload tab. A node that sends to this destination can’t also send to other destinations.
Two nodes may send to the same destination with different event names and linking keys. Trigger event fields and keychain keys under Event properties are set once for the destination, though, so every Activate node in the journey that sends to it shares them. Profile attributes can differ from node to node.
Event name
Required. Amperity sends this value unchanged in the destination’s Event name field.
The stream recognizes the event as the event type whose name matches the event name after the stream converts it: to lower case, with each run of characters other than letters, digits, and underscores replaced by one underscore, and with an underscore added before a leading digit. For example, “Tier Reached” is recognized as “tier_reached”, and “3 Day Trial” as “_3_day_trial”. When the stream has no event type with that name, it accepts the event and ignores it, and Amperity reports the send as successful. See Confirm that events arrive.
Linking key
Required. The linking key that links the event to a customer, such as “email”. Select one of the linking keys of the journey’s profile collection. The Amperity ID isn’t in the list; use Include Amperity ID to send it. When the node names a linking key that the profile collection no longer has, the node shows an error.
Amperity fills in the customer’s value for the key: you don’t map an attribute for it. Amperity sends the value in a field named after the key, such as “email”. When the customer has more than one value for the key, Amperity sends one of them; each one links to the same customer. When the customer has no value for the key, Amperity still sends the event, without the field. That event isn’t linked to the customer, even when it carries “amperityId”, and it is dropped.
The linking key can’t be the destination’s Event name field, or “eventId”, “timestamp”, “context”, “properties”, or “amperityId”.
Include Amperity ID
Optional. Enabled by default. Adds the customer’s Amperity ID to the event as “amperityId”.
Event properties
Optional. Select Edit next to Event properties to choose what the event carries, under the property names that you set:
Profile attributes.
Fields of the event that started the journey, when the journey has a Trigger event. Use these to pass the trigger event’s data on, for example to a journey that the new event starts.
Keychain keys, such as “email”. Each one is sent as a list of the customer’s values for that key, with at most 10 values by default.
Fixed values, added as custom attributes.
Amperity sends them in the event’s “properties” object. When there are no event properties, the event has no “properties” object.
Amperity sends each value with its type, and doesn’t check or convert it, except that date values are sent as “YYYY-MM-DD” text and a keychain key’s values are sent as a list. The event type that recognizes the event decides how each property is read and typed. See Event streams.
The whole event must be 64 KiB or smaller. A larger event fails, as described under Failed sends.
Request body¶
Amperity sends each event as a JSON object with these fields:
The destination’s Event name field, “event_name” by default, which holds the Event name set on the Activate node.
eventId, which identifies the send. It is the same on every attempt at the same send.
timestamp, the time that the journey created the send, in UTC. It is the same on every attempt at the same send.
amperityId, the customer’s Amperity ID. Sent unless Include Amperity ID is disabled.
A field named after the node’s Linking key, which holds the customer’s value for that key. Sent only when the customer has a value.
properties, the node’s event properties. Sent only when there are event properties.
context, which holds “source”, always “amperity-journey”; “journeyId” and “nodeId”, the journey and the Activate node that wrote the event; and “sendId”, the send.
For example, with Event name set to “tier_reached”, Linking key set to “email”, and event properties named “loyalty_tier” and “tier_reached_on”, Amperity sends:
{
"event_name": "tier_reached",
"eventId": "...",
"timestamp": "2026-11-20T17:04:11.512Z",
"amperityId": "...",
"email": "pat@example.com",
"properties": {
"loyalty_tier": "Gold",
"tier_reached_on": "2026-11-20"
},
"context": {
"source": "amperity-journey",
"journeyId": "...",
"nodeId": "...",
"sendId": "..."
}
}
Configure an event type¶
Create an event type on the stream for each event name that the journey writes, named as the stream recognizes it. In the event type:
Set event_id to read “eventId”. Amperity sends the same “eventId” on every attempt at a send, so the event type stores a send that Amperity attempts more than once as one event. An event type that generates its event ID instead stores each attempt as a separate event. On a stream created from this destination, new event types start with this setting.
Set event_timestamp to read “timestamp”, so that the event’s time is when the journey created the send. On a stream created from this destination, new event types start with this setting.
Add a field that reads the Activate node’s linking key, such as “email”, and mark it as that linking key. A key whose name has a hyphen, such as “sdk-user-id”, is read with backticks:
`sdk-user-id`. Without this field, the linking key doesn’t link the event to a customer.Add a field for each event property that the event type should read, such as “properties.loyalty_tier”, with its data type.
To trace each event to the journey step that wrote it, add fields that read “context.journeyId”, “context.nodeId”, and “context.sendId”. See Event streams.
Journeys that enter each other¶
Amperity doesn’t let you save a change that would make journeys that have a Trigger event start each other, or themselves, through the events that this connector writes. For example, journey A can’t write the event that is journey B’s Trigger event while journey B writes the event that is journey A’s. The message names the journeys in the loop. To fix it, remove one of the Activate nodes, or change one journey’s Trigger event.
A journey whose status is Paused is left out of this check. Setting it to Running checks it again, so it can’t run while it would complete a loop.
Amperity doesn’t check loops that pass through a real-time segment, such as a journey that writes an event that puts the customer back into the segment that the journey is entered from. The journey’s re-entry settings limit those.
Checked before sending¶
Before it sends an event, Amperity checks the Activate node. The send fails without another attempt when:
Event name is blank.
Linking key is blank.
Linking key is the destination’s Event name field.
Linking key is “eventId”, “timestamp”, “context”, “properties”, or “amperityId”.
Each of these fails every send from the node until the node is fixed.
Failed sends¶
Amperity makes up to three attempts at each send. Each new attempt is scheduled between 200 and 700 milliseconds after the previous one fails, with no backoff, so all three attempts are made within a few seconds. Amperity doesn’t retry a request within an attempt, so one send makes at most three requests.
How Amperity handles each answer from the Real-time API:
202. The stream accepted the event, and the send succeeds. See Confirm that events arrive.
204. The stream is set to Drop, so nothing was written. The send fails without another attempt. Set the stream to Process.
409. The stream is set to Reject. The send fails without another attempt. Set the stream to Process.
404. The stream doesn’t exist in your tenant. The send fails without another attempt. Select another stream for the destination.
401 or 403. The Real-time API refused Amperity’s token. Amperity gets a new token and makes another attempt, up to three in all.
413. The event is larger than 64 KiB. The send fails without another attempt. Send fewer or smaller event properties.
429. The Real-time API is limiting your tenant’s requests. Amperity makes another attempt, up to three in all. When it keeps happening, spread out the journeys that send to the stream.
408, a server error (500 or higher), or no answer, such as a timeout or a dropped connection. Amperity makes another attempt, up to three in all.
Any other status. The send fails without another attempt. Contact Amperity support.
Events that this connector sends count toward your tenant’s Real-time API rate limit. The limit is set for each tenant; the default is 500 events per second.
When Amperity can’t get its token for your tenant, it makes another attempt, up to three in all. When Amperity’s request for the token is refused, the send fails without another attempt. Contact Amperity support when either keeps happening.
A failed send and its failure message appear in two places:
The Recent failures table on the Profile sends tab of the Destinations page. The tab is available when real-time profiles are enabled for your tenant.
The Activations tab of the customer’s profile, which also shows the send’s Attempt count, such as “3 / max 3”.
Amperity keeps only the failure message from the last attempt. A failed send cannot be retried from Amperity.
Confirm that events arrive¶
A successful send means only that the stream accepted the event. Amperity doesn’t check that the stream recognizes the event, or that the event is valid for its event type. An accepted event doesn’t update profiles when it is:
Unrecognized. The stream’s recognition method finds no event type name in the event: Event name field isn’t the field that the stream recognizes events by, or the stream recognizes events by an event property that the event doesn’t carry.
Ignored. The stream recognizes a name, but has no event type with that name, after the conversion described under Event name.
Invalid. The event doesn’t fit its event type: a required field has no value, a field can’t be read, or the timestamp can’t be read as a time. Check the event type’s fields against the Request body.
A recognized event isn’t linked by its linking key when the event type has no field for the linking key. An event sent without the linking key field, because the customer had no value for the key, isn’t linked and is dropped.
To see what the stream received, look at the stream’s Explorer tab, not at the journey’s send status. See Events are unrecognized, ignored, or invalid. A valid event updates profiles only in the collections that process events from the stream. See Requirements.