Auf dieser Seite: Richten Sie Ihr Datensystem so ein, dass Ereignisse an die APIs für die Streaming-Aufnahme gepusht werden, damit die von Ihnen konfigurierten Ereignisse tatsächlich Journey Optimizer erreichen und Ihre Journeys auslösen.
Um Ereignisse zu konfigurieren, die an Streaming-Aufnahme-APIs gesendet und in Journey Optimizer verwendet werden sollen, müssen Sie die folgenden Schritte ausführen:
- Rufen Sie die Inlet-URL von Adobe Experience Platform-APIs ab. Das Inlet ist die URL der Streaming-Verbindung, die Ihre Ereignisse in Experience Platform empfängt. Weitere Informationen finden Sie unter Übersicht über Streaming-Aufnahme-APIs.
- Kopieren Sie die Payload aus der Payload-Vorschau im Menü Ereignis. Weitere Informationen finden Sie auf dieser Seite.
Konfigurieren Sie anschließend das Datensystem, das Ereignisse mithilfe der kopierten Payload an die Streaming-Aufnahme-APIs pusht:
- Richten Sie einen POST-API-Aufruf an die Inlet-URL ein, die Sie im vorherigen Verfahren erhalten haben.
- Verwenden Sie die Payload, die Sie im Hauptteil („Datenabschnitt“) des API-Aufrufs aus Journey Optimizer zu den Streaming-Aufnahme-APIs kopiert haben. Unten finden Sie ein Beispiel
- Legen Sie fest, von wo alle Variablen in der Payload abgerufen werden sollen. Wenn das Ereignis beispielsweise die E-Mail-Adresse der Person übermitteln soll, an die eine Nachricht gesendet werden soll, wird
"emailAddress": "string"eingefügte Payload angezeigt. Ersetzen Sie"string"durch die Variable, die automatisch den richtigen Wert ausfüllt, z. B. die E-Mail-Adresse der Person. In der Payload-Vorschau wird der Header-Abschnitt bereits mit vielen der erwarteten Werte automatisch ausgefüllt. Kopfzeile bedeutet hier dasheaderObjekt der Payload (msgType,msgId,schemaRefusw.), keine HTTP-Anfrage-Kopfzeile. - Wählen Sie „application/json“ als Typ für den Hauptteil aus.
- Übergeben Sie Ihre Organisations-ID in der Kopfzeile mit dem Schlüssel „x-gw-ims-org-id“. Verwenden Sie für den Wert Ihre Organisations-ID („XXX@AdobeOrg“).
Es folgt ein Beispiel für ein Streaming-Aufnahme-API-Ereignis:
{
"header": {
"msgType": "xdmEntityCreate",
"msgId": "c25585b9-252e-431d-b562-e73da70c04e7",
"msgVersion": "1.0",
"xactionId": "f5995abe-c49d-4848-9577-a7a4fc2996fb",
"datasetId": "string - required if you want the data to land in a specific dataset - not mandatory",
"imsOrgId": "XXX@AdobeOrg",
"schemaRef": {
"id": "XXX",
"contentType": "application/vnd.adobe.xed-full+json;version=1"
},
"source": {
"name": "Journeys"
}
},
"body": {
"xdmMeta": {
"schemaRef": {
"id": "XXX",
"contentType": "application/vnd.adobe.xed-full+json;version=1"
}
},
"xdmEntity": {
"_instance_name": {
"person": {
"firstName": "string",
"lastName": "string",
"gender": "string",
"birthYear": 10,
"emailAddress": "string"
}
},
"identityMap": {
"Email": [
{
"id": "string"
}
]
},
"_id": "string",
"timestamp": "2023-05-29T00:00:00.000Z",
"_experience": {
"campaign": {
"orchestration": {
"eventID": "XXX"
}
}
}
}
}
}
Um die Identifikation der Stelle zu erleichtern, an der der „Daten“-Teil eingefügt werden soll, kann ein JSON-Visualisierungs-Tool verwendet werden, z. B. JSON Formatter.
Informationen zur Fehlerbehebung bei Streaming-Aufnahme-APIs finden sich in der Dokumentation zu Experience Platform.
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 explains the additional steps to set up a data system that pushes events to the Streaming Ingestion APIs, using the payload copied from the payload preview, so configured events actually reach Journey Optimizer and trigger journeys.
Intents:
- Get the inlet URL from Adobe Experience Platform APIs
- Copy the payload from the payload preview in the Event menu
- Set up a POST API call to the Streaming Ingestion APIs inlet using the copied payload
- Determine where to get all the variables present in the payload
- Configure the request body type and the organization ID header for the call
Glossary:
- Streaming Ingestion APIs: The APIs to which the data system pushes events, using the payload copied from Journey Optimizer (product-specific)
- Inlet: The URL of the streaming connection that receives your events in Experience Platform, to which the POST API call is sent (product-specific)
- Header (payload preview): The
headerobject of the payload (msgType,msgId,schemaRefand so on), not an HTTP request header (product-specific) - Payload preview: The view in the Event menu from which you copy the payload to use in the body of the API call (product-specific)
- x-gw-ims-org-id: The header key used to pass your organization ID in the API call (product-specific)
Guardrails:
- Set up a POST API call to the Streaming Ingestion APIs URL (the inlet) and place the copied payload in the body, the data section, of the call.
- Select application/json as the body type.
- Pass the organization ID in the header using the key x-gw-ims-org-id, with the organization ID value in the form XXX@AdobeOrg.
- In the payload preview, the Header section is already autofilled with many of the expected values; Header means the
headerobject of the payload, not an HTTP request header.
Terminology:
- Canonical name: Additional steps to send events
- Synonyms: “inlet” = “URL of the streaming connection that receives events”
- Do not confuse: the payload “header” object ≠ an HTTP request header (the organization ID goes in the HTTP header x-gw-ims-org-id)
FAQ:
- Q: Where do I get the payload to send? — Copy it from the payload preview in the Event menu.
- Q: What body type should the API call use? — application/json.
- Q: How do I pass the organization ID? — In the header, using the key x-gw-ims-org-id with the value in the form XXX@AdobeOrg.
- Q: What kind of API call is used to send events? — A POST API call to the Streaming Ingestion APIs URL, called an inlet.
Personas:
- developer: Can set up a POST API call to the Streaming Ingestion APIs inlet URL, using the payload copied from the Event menu payload preview. Can replace payload variables, such as the address field, with values like the recipient’s email. The page states that the organization ID is passed in the header using the key x-gw-ims-org-id. Where: “Additional steps to send events”.
- admin: Can configure the data system that pushes events to the Streaming Ingestion APIs, using the payload copied from the Event menu payload preview. The page states that event requirements and limitations for streaming, Query Service, and batch ingestion appear in the Journey guardrails page. Where: “Guardrails”.
Onboarding:
- Level: Intermediate, Experienced
- First minimal step: Get the inlet URL from Adobe Experience Platform APIs.
- Previous: Configure the event’s payload fields: Configure a unitary event (event/about-creating.md)
- Next: Check event requirements and limitations for streaming, Query Service, and batch ingestion: Journey Optimizer guardrails and limitations (start/guardrails.md)