LogRocket

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.

Use the block

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.

Actions

LogRocket Request Highlights

Start a Galileo session highlights job for a user. Returns a request ID to poll with LogRocket's Get Highlights operation.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
userEmailstringNoEmail of the user to summarize. Required if no user ID is given.
userIDstringNoID of the user to summarize. Required if no email is given.
questionstringNoQuestion to focus the highlights on
startMsstringNoStart of the session window, in milliseconds since epoch
endMsstringNoEnd of the session window, in milliseconds since epoch
webhookURLstringNoURL notified when the highlights job finishes

Output

ParameterTypeDescription
idstringRequest ID used to retrieve the highlights result

LogRocket Get Highlights

Retrieve the result of a Galileo session highlights request. Status is PENDING until generation finishes, then READY or FAILED.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
idstringYesRequest ID returned by the Request Highlights operation

Output

ParameterTypeDescription
statusstringJob status: PENDING, READY, or FAILED
requestIDstringID of the highlights request
appIDstringLogRocket project the request belongs to
highlightsstringMarkdown summary across the matched sessions. Present when status is READY.
sessionsarrayPer-session highlights
↳ recordingIDstringLogRocket recording ID
↳ sessionIDnumberSession number within the recording
↳ highlightsstringHighlights for this session

LogRocket List Exported Sessions

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.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
cursorstringNoCursor from a previous page, used to fetch newer sessions
limitstringNoResults per page. Defaults to 10, maximum 100.
datestringNoUnix timestamp in milliseconds to start listing from

Output

ParameterTypeDescription
sessionsarrayExported session files
↳ urlstringDownload URL for the JSON Lines export file
cursorstringOpaque cursor for the next page of results

LogRocket Get Audit Logs

Export audit log entries from LogRocket, recording who viewed sessions and what actions were taken. Paginated with a cursor.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
limitstringNoNumber of audit log records to return
cursorstringNoCursor from a previous page, used to fetch the next page

Output

ParameterTypeDescription
logsarrayAudit log entries
↳ timestringFormatted timestamp of the action
↳ createdDatestringISO 8601 timestamp of the action
↳ userstringEmail or system ID of the actor
↳ actionstringAction taken, e.g. Viewed session
↳ descriptionstringAction details, e.g. the session ID
cursorstringOpaque cursor for the next page of results
hasNextbooleanWhether more audit logs exist beyond this page

LogRocket Identify User

Create or update a LogRocket user profile with demographic, financial, and engagement traits.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
userIdstringYesID of the user to create or update
namestringNoDisplay name of the user. Maximum 1024 characters.
emailstringNoEmail of the user. Maximum 1024 characters.
timestampstringNoUnix timestamp in milliseconds describing when the submitted data was true
traitsstringNoJSON object of custom traits. Each key and value is limited to 1024 characters and stored as a string.

Output

ParameterTypeDescription
userIDstringID of the created or updated user
namestringDisplay name stored on the profile
emailstringEmail stored on the profile
traitsjsonCustom traits stored on the profile, with every value coerced to a string

LogRocket Create Release

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.

Input

ParameterTypeRequiredDescription
apiKeystringYesLogRocket API key
orgIdstringYesLogRocket organization ID
appIdstringYesLogRocket project (app) ID
apiHoststringNoAPI host override for Private Cloud deployments
versionstringYesRelease version to register, e.g. 1.2.3 or a commit SHA

Output

ParameterTypeDescription
versionstringRelease version that was registered