Learning Assistant configuration parameters
| Parameter Name | Value | Description |
|---|---|---|
| hostName | learningmanager.adobe.com | Specifies the host domain for the application. |
| accessToken | token123 (actual access token) | Token used to authenticate and authorize the user session. |
Initialize iFrame
Pass the configuration to the Learner Assistant via the postMessage API, using an embedded iFrame configuration handshake.
-
The parent application embeds the Learning Assistant as an
<iframe>. -
If no URL-based configuration is found, the Learning Assistant sends an ALM_CHAT_REQUEST_CONFIG event to the parent application.
-
The parent application responds with an ALM_CHAT_CONFIG event containing the configuration payload. For example:
-
After successful initialization, the Learner Assistant renders and is ready to use.
iFrame event summary
The Learner Assistant and the parent application communicate through postMessage events in both directions.
Outgoing events (Learner Assistant iFrame to Parent App)
| Event Name | Description | Parameters Passed |
|---|---|---|
| ALM_CHAT_OPENED | Fired when the chat is opened. | – |
| ALM_CHAT_CLOSED | Fired when the chat is closed. | – |
| ALM_CHAT_LO_REDIRECT | Navigate to the personalized Learning Path overview page. | loId, loType, instanceId |
| ALM_CHAT_URL_REDIRECT | Fired when an external link is clicked in the chat message. | url |
| ALM_CHAT_REQUEST_CONFIG | Requests configuration from the parent application. | – |
| ALM_CHAT_WAITING_FOR_REPLY | Indicates the assistant is processing a request or waiting for a response. | isWaitingForReply |
| ALM_CHAT_PERSONALIZED_PATH_CREATED | Triggered when a Learning Path is saved. | – |
Incoming events (Parent App to Learner Assistant)
| Event Name | Description | Payload |
|---|---|---|
| ALM_CHAT_CONFIG | Sends the configuration payload required to initialize the assistant. | Configuration object |
| ALM_CHAT_OPEN | Opens the Learner Assistant. | None |
| ALM_CHAT_CLOSE | Closes the Learner Assistant. | None |
| ASK_AI_ASSISTANT_QUERY | Opens the chat window and submits a query to the assistant. |
Event-handling requirements in the parent application
Embedding the Learner Assistant via iFrame does not make it a fully self-contained widget. Your parent application must actively listen for outgoing events and take the appropriate action. At a minimum, your application should:
- Listen for ALM_CHAT_REQUEST_CONFIG and respond with ALM_CHAT_CONFIG so the assistant can initialize.
- Handle ALM_CHAT_LO_REDIRECT: when a learner clicks a citation or source in the assistant’s reply, your application receives the loId, loType, and instanceId, and is responsible for navigating the learner to the correct course or learning object.
- Handle ALM_CHAT_URL_REDIRECT: when a learner clicks an external link in a chat message, your application receives the url and is responsible for opening or navigating to it (for example, in a new tab).
- Optionally track ALM_CHAT_OPENED / ALM_CHAT_CLOSED / ALM_CHAT_WAITING_FOR_REPLY to reflect the assistant’s state in your own UI (for example, showing a loading indicator while isWaitingForReply is true).
- Optionally use ALM_CHAT_OPEN / ALM_CHAT_CLOSE / ASK_AI_ASSISTANT_QUERY to control the assistant programmatically. For example, opening the assistant and pre-filling a query from a Help button elsewhere in your application.
Need help?
Reach out to your Adobe Customer Success Manager to set up a technical walkthrough.
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an event