Pasos adicionales para enviar eventos additional-steps-to-send-events

En esta página: Configure su sistema de datos para insertar eventos en las API de ingesta de transmisión y que los eventos que configuró lleguen a Journey Optimizer y almacenen en déclencheur sus recorridos.

Para configurar los eventos que se enviarán a API de ingesta de transmisión y que se utilizarán en Journey Optimizer, debe seguir estos pasos:

  1. Obtenga la URL de entrada desde las API de Adobe Experience Platform. Obtenga más información en Resumen de API de ingesta de transmisión.
  2. Copie la carga útil de la previsualización de carga útil en el menú Evento. Obtenga más información en esta página.
IMPORTANT
Para conocer los requisitos y limitaciones de eventos (flujo continuo, servicio de consultas, ingesta por lotes), consulte protecciones de Recorrido: eventos.

A continuación, debe configurar el sistema de datos que inserta eventos en las API de ingesta de transmisión mediante la carga útil copiada:

  1. Configure una llamada de la API POST a la URL de las API de ingesta de transmisión (denominada entrada).
  2. Utilice la carga que copió de Journey Optimizer en el cuerpo (“sección de datos”) de la llamada de API a las API de ingesta de transmisión. Consulte a continuación un ejemplo
  3. Determine dónde obtener todas las variables presentes en la carga útil. Ejemplo: si el evento debe transmitir la dirección, la carga útil pegada mostrará “dirección”: “cadena”. “cadena” debe reemplazarse por la variable que rellena automáticamente el valor correcto, el correo electrónico de la persona a la que enviar un mensaje. Tenga en cuenta que en la vista previa de carga útil, en la sección Header, rellenamos automáticamente muchos valores que se espera que faciliten su trabajo.
  4. Seleccione “application/json” como tipo de cuerpo.
  5. Pase su ID de organización en el encabezado con la clave “x-gw-ims-org-id”. Para el valor, utilice su ID de organización (“XXX@AdobeOrg”).

Este es un ejemplo de evento de API de ingesta de transmisión:

{
    "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"
                    }
                }
            }
        }
    }
}

Para facilitar la identificación del lugar donde pegar la parte de “datos”, puede utilizar una herramienta de visualización JSON como formateador JSON.

Para solucionar problemas de las API de ingesta de transmisión, consulte Documentación de Experience Platform.

AI Knowledge Reference

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
  • Map the payload variables to the values that should populate them
  • Configure the request body type and the organization ID header for the call

Glossary:

  • Streaming Ingestion APIs: The Adobe Experience Platform APIs to which events must be pushed so they reach Journey Optimizer (product-specific)
  • Inlet: The Streaming Ingestion APIs URL to which the POST API call is sent (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 Header section, many expected values are autofilled to facilitate the work.

Terminology:

  • Canonical name: Streaming Ingestion APIs — Acronym: n/a — variants: inlet, inlet URL
  • Synonyms: “inlet” = “Streaming Ingestion APIs URL”
  • Do not confuse: “header” (section carrying values such as x-gw-ims-org-id) ≠ “body” (the data section carrying the payload)

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.
recommendation-more-help
journey-optimizer-help