Use cases and templates: LogRocket integration for AI agents
Use LogRocket to request Galileo Highlights for a user's sessions, update user names, emails, and traits, retrieve JSON Lines export URLs, inspect the session-access audit log, and register releases for source-map decoding.
Request Highlights returns an ID immediately. Poll Get Highlights while status is PENDING, then handle READY or FAILED. LogRocket says generation generally takes one to three minutes; this is an estimate, not a workflow deadline. See the Galileo Highlights API.
For session, issue, and metric queries beyond this block, inspect LogRocket's MCP server at https://mcp.logrocket.com/mcp and add it as a separate MCP connection in Sim.
Request AI session highlights for a user, poll for the result, list exported session files, read the audit log, create or update user profiles, and register releases so source maps decode their stack traces.
Start a Galileo session highlights job for a user. Returns a request ID to poll with LogRocket's Get Highlights operation.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
userEmail | string | No | Email of the user to summarize. Required if no user ID is given. |
userID | string | No | ID of the user to summarize. Required if no email is given. |
question | string | No | Question to focus the highlights on |
startMs | string | No | Start of the session window, in milliseconds since epoch |
endMs | string | No | End of the session window, in milliseconds since epoch |
webhookURL | string | No | URL notified when the highlights job finishes |
| Parameter | Type | Description |
|---|
id | string | Request ID used to retrieve the highlights result |
Retrieve the result of a Galileo session highlights request. Status is PENDING until generation finishes, then READY or FAILED.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
id | string | Yes | Request ID returned by the Request Highlights operation |
| Parameter | Type | Description |
|---|
status | string | Job status: PENDING, READY, or FAILED |
requestID | string | ID of the highlights request |
appID | string | LogRocket project the request belongs to |
highlights | string | Markdown summary across the matched sessions. Present when status is READY. |
sessions | array | Per-session highlights |
↳ recordingID | string | LogRocket recording ID |
↳ sessionID | number | Session number within the recording |
↳ highlights | string | Highlights for this session |
List exported session files from the LogRocket Data Export API. Returns download URLs for JSON Lines exports, oldest first, plus a cursor for the next page.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
cursor | string | No | Cursor from a previous page, used to fetch newer sessions |
limit | string | No | Results per page. Defaults to 10, maximum 100. |
date | string | No | Unix timestamp in milliseconds to start listing from |
| Parameter | Type | Description |
|---|
sessions | array | Exported session files |
↳ url | string | Download URL for the JSON Lines export file |
cursor | string | Opaque cursor for the next page of results |
Export audit log entries from LogRocket, recording who viewed sessions and what actions were taken. Paginated with a cursor.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
limit | string | No | Number of audit log records to return |
cursor | string | No | Cursor from a previous page, used to fetch the next page |
| Parameter | Type | Description |
|---|
logs | array | Audit log entries |
↳ time | string | Formatted timestamp of the action |
↳ createdDate | string | ISO 8601 timestamp of the action |
↳ user | string | Email or system ID of the actor |
↳ action | string | Action taken, e.g. Viewed session |
↳ description | string | Action details, e.g. the session ID |
cursor | string | Opaque cursor for the next page of results |
hasNext | boolean | Whether more audit logs exist beyond this page |
Create or update a LogRocket user profile with demographic, financial, and engagement traits.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
userId | string | Yes | ID of the user to create or update |
name | string | No | Display name of the user. Maximum 1024 characters. |
email | string | No | Email of the user. Maximum 1024 characters. |
timestamp | string | No | Unix timestamp in milliseconds describing when the submitted data was true |
traits | string | No | JSON object of custom traits. Each key and value is limited to 1024 characters and stored as a string. |
| Parameter | Type | Description |
|---|
userID | string | ID of the created or updated user |
name | string | Display name stored on the profile |
email | string | Email stored on the profile |
traits | json | Custom traits stored on the profile, with every value coerced to a string |
Register a release version in LogRocket so uploaded source maps can decode stack traces for it. Fails with a conflict if the version already exists.
| Parameter | Type | Required | Description |
|---|
apiKey | string | Yes | LogRocket API key |
orgId | string | Yes | LogRocket organization ID |
appId | string | Yes | LogRocket project (app) ID |
apiHost | string | No | API host override for Private Cloud deployments |
version | string | Yes | Release version to register, e.g. 1.2.3 or a commit SHA |
| Parameter | Type | Description |
|---|
version | string | Release version that was registered |