# Implementing Activity Integration

This section guides partners on integrating R1 Learning activities into their applications using Remote Login Tokens.

## Purpose

To enable users to take R1 Learning activities directly within a partner application via an iFrame.

### Steps

1. [Generate Remote Login Token](/remote-login-integration/generating-remote-login-tokens.md): Follow the steps in the Generating Remote Login Tokens section.
2. Retrieve Activity URLs: Use the [List Company Activities](/endpoint-descriptions/company-management/list-company-activities.md) endpoint to obtain activity URLs or identifiers.
3. Retrieve User IDs: Use the [List Company Users](/user-management/list-company-users.md) endpoint to obtain User IDs.
4. Construct the Activity URL:

   * Base URL: <https://discover.r1learning.com/activity/\\[ACTIVITY\\_SLUG]/start/>
   * Query Parameters:

     * rlt=\[RLT]: The generated Remote Login Token.
     * rlt\_uid=\[USERID]: The R1 Discover User ID.

   **Example URL:**

   ```
   https://discover.r1learning.com/activity/identify-my-values/start/?rlt=abc123token&rlt_uid=17434
   ```
5. Embed in iFrame:

   ```html
   <iframe src="https://discover.r1learning.com/activity/identify-my-values/start/?rlt=abc123token&rlt_uid=17434" width="800" height="600" frameborder="0" allowfullscreen></iframe>
   ```

## Notes

* Ensure the URL is constructed with valid tokens and IDs.
* Test the integration in a development environment before deploying to production.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.discover.r1learning.com/implementing-activity-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
