Fullstory Integration
Connect Fullstory to let the AI agent pull user sessions, AI-generated session summaries, and frontend error event streams (console errors, uncaught exceptions, network/XHR failures, and rage/dead/error clicks) during investigations. Fullstory can also be configured as an alert source to automatically trigger investigations when a segment threshold or metric alert fires.
Capabilities
Once connected, the AI agent can:
| Capability | Description |
|---|---|
| List user sessions | Find a user's sessions (with replay URLs) by email or uid — the entry point for customer-impact analysis |
| List segments | Discover the saved segments in your org (named session/user filters built in the Fullstory UI, e.g. "Sessions with console errors") |
| Session summaries | Read the AI-generated summary of a session for fast, low-token triage |
| Session events | Inspect the captured event stream, including console errors, uncaught exceptions, and network failures |
| Webhook triggers | Automatically start the alert pipeline when a Fullstory segment threshold or metric alert fires |
"Show me every session where users hit errors" works differently than you might expect. Fullstory's Server API is user-first — list_user_sessions takes a uid/email and returns metadata only (no errors); the errors live in each session's event stream (get_session_events). There is no synchronous "search all sessions by error" endpoint. To work at the population level:
- Push (recommended): build a Fullstory segment like "sessions with console errors" and attach a Segment Threshold Alert to the alert-source webhook — Autoheal is notified when error sessions spike.
- Discover: use List segments so the agent can find your error/impact segment by name.
- Bulk pull: retrieving every session in a segment is an asynchronous Data Export job (paid tier), which this integration does not currently expose.
Prerequisites
- A Fullstory account
- A Server API key — an Architect- or Admin-tier key is required to read session events and summaries; a Standard (USER) key can only list sessions
- Fullstory "Anywhere: Activation" enabled on your plan — this is what powers the Server API V2 session events and summaries endpoints. Without it, those calls return
403even with an Admin key. (Listing sessions and testing the connection do not require it.) - The Fullstory snippet installed on your app, calling
FS('setIdentity', …)so sessions are attributable by uid/email - Data Capture enabled for the domain(s) your app runs on (Fullstory Settings → Data Capture and Privacy → Data Capture). Fullstory only records sessions on domains in the capture list — if your domain isn't covered, no sessions are recorded and lookups return nothing.
Plan/feature requirements at a glance — the integration connects and lists sessions on any plan, but two capabilities depend on Fullstory plan features:
- Session events & AI summaries require Anywhere: Activation.
- The alert-source webhook uses Fullstory System Interaction Webhooks (Anywhere) and/or Segment Threshold / Metric Alerts (Advanced/Enterprise plans).
Setup
- Log in to Fullstory
- Go to Settings → Integrations → API Keys
- Create a key with the Architect role (required to read session events)
- Copy the generated key
- Go to Integrations in Autoheal
- Click Fullstory
- Enter a name (e.g., "Production Fullstory")
Enter the following:
- API Key: Your Fullstory Server API key (Architect tier)
Click Test Connection to verify (it reports the key's permission tier), then Save.
Permission Tiers
The API key's role determines what the agent can do. Test Connection reports the tier.
| Role | Capability |
|---|---|
USER (Standard) | List sessions only — cannot read session events |
ARCHITECT | List sessions and read session events/summaries (required for full investigation) |
ADMIN | Full access |
An Architect/Admin tier is necessary but not sufficient for session events & summaries — those endpoints also require the Anywhere: Activation feature on your Fullstory plan. With an Admin key but Anywhere disabled, get_session_summary/get_session_events return 403; list_user_sessions and test_connection still work.
Webhook Setup (Alert Source)
Fullstory can automatically trigger investigations via webhooks when a segment threshold or metric alert fires. Alerts flow through the standard alert pipeline — they appear in the Alerts tab, get grouped by Alertmanager, and can trigger on-call pages and AI investigations when configured.
The webhook alert source relies on Fullstory plan features: System Interaction Webhooks are part of Anywhere, and Segment Threshold / Metric Alerts require an Advanced or Enterprise plan. After creating the webhook you can use Fullstory's Test Endpoint button to send a signed test delivery and confirm connectivity + signature verification (the test event is verified then skipped — only segment_threshold_alert / metric_alert create an alert).
- Go to your Fullstory integration settings in Integrations
- Click the Webhook tab
- Toggle Enable Webhook and copy the generated webhook URL
- In Fullstory, go to Settings → Integrations → Webhooks
- Create a System Interaction Webhook and paste the webhook URL from Autoheal as the destination
- Set a shared secret on the webhook
- Attach the webhook to a Segment Threshold Alert or Metric Alert (e.g., a segment matching console errors on checkout)
- Save the alert
Back in Autoheal, paste the same shared secret in the Webhook Signing Secret field. This is used to verify webhook signatures (HMAC-SHA256).
Example Queries
Once connected, you can ask the AI agent:
What sessions did user@customer.com have today, and where did they hit errors?
Summarize Fullstory session <session-id>
Show the console errors and network failures in this user's checkout session
Which customers were impacted by the checkout error this afternoon?
Troubleshooting
401 Unauthorized
- Verify the API key is correct
- Check that the key hasn't been revoked
403 Forbidden when reading session events / summaries
- Two requirements must both be met: (1) an Architect- or Admin-tier key, and (2) the Anywhere: Activation feature enabled on your Fullstory plan
- A
403with an Admin key means Anywhere: Activation is not enabled — enable it in Fullstory (or contact Fullstory) to use session events/summaries list_user_sessionsandtest_connectionwork without Anywhere: Activation
No Sessions Found for a User
- Check Data Capture: Fullstory Settings → Data Capture and Privacy → Data Capture must have your app's domain enabled (the "Capture data by domain" list). If your domain falls under "All other domains: Off", Fullstory records nothing — sessions never appear even though the snippet loads
- Verify the user is identified in Fullstory (your app called
FS('setIdentity', …)) - Try
uidinstead ofemail(or vice-versa) - Confirm the Fullstory snippet is deployed on the relevant property, and allow a few minutes for new sessions to be processed
Webhook Not Triggering Investigations
- Verify the webhook URL is correctly configured on the Fullstory System Interaction Webhook
- Check that the Webhook Signing Secret in Autoheal matches the shared secret set in Fullstory
- Ensure the webhook is attached to a Segment Threshold Alert or Metric Alert
- Check the webhook events log in Autoheal for signature verification errors