OpsLens AI documentation
Everything you need to connect OpsLens AI to a HubSpot portal, route alerts to Slack, and tune severity to match how your team operates.
Getting started
Connect OpsLens AI to your HubSpot portal. During early access, onboarding is contact-driven. Reach out via Talk to us and we will walk through the OAuth handoff with you. The handoff is read-only (properties, workflows, lists, email templates, owners, and basic account info); OpsLens never writes to or deletes from your portal data, only watches it for changes that can break active automations.
Once connected, OpsLens runs a baseline scan that maps every property, workflow, list, email template, and owner powering an active automation. The first detection scan runs within 60 seconds, and the connection-test alert lands in Slack as soon as the webhook is configured.
Connecting OpsLens AI
OpsLens AI runs as a native HubSpot app with OAuth scopes covering properties, workflows, lists, email templates, owners, and basic account info. The workflow permission we request includes write access. OpsLens never uses it. Apart from optional ticket creation, which stays off until you enable it, OpsLens never writes to or deletes from your portal.
Onboarding is contact-driven during early access. Reach out via the Talk to us button and we will walk through the OAuth handoff, scope review, and Slack webhook setup with you.
Once connected, OpsLens runs a baseline scan that maps every property, workflow, list, email template, and owner powering an active automation. The first detection scan runs within 60 seconds, and the connection-test alert lands in Slack as soon as the webhook is configured.
Connecting your portal
A portal in OpsLens means a HubSpot account, identified by its portal ID (visible in the top-right of your HubSpot UI, or under Settings → Account & Billing). OpsLens watches one portal per connection. To monitor multiple portals, connect OpsLens to each portal.
OpsLens watches portal-level metadata: property definitions, workflow configurations, list criteria, email template structure, and owner records. We do not read, store, or report on the contents of contact, deal, ticket, or other CRM records, only the configuration that surrounds them.
If you maintain a sandbox alongside production, connect OpsLens to both. Each portal has its own alert routing, so you can send sandbox detections to a #ops-sandbox channel and production to #ops-prod, or silence sandbox entirely while keeping production hot.
Configuring Slack delivery
Slack delivery uses an incoming webhook URL. In Slack, go to your workspace's app directory and add Incoming Webhooks. Select the channel that should receive alerts and copy the webhook URL Slack generates. It looks like https://hooks.slack.com/services/T.../B.../...
Open OpsLens AI in HubSpot's connected apps page (Settings → Integrations → Connected Apps → OpsLens AI), find the OpsLens settings panel, and paste the webhook URL into Default channel. Save. The next detection routes to that channel.
For severity-based routing, configure a separate webhook per severity. Add the Critical webhook for #ops-critical, Warning for #ops-warnings, and Info for a dedicated #ops-info channel that engineers can mute. OpsLens routes each alert to the matching webhook based on severity classification.
If no severity-specific webhook is set, the default channel handles everything.
Detection categories explained
OpsLens AI watches five surfaces of your HubSpot portal across fourteen detection categories. The categories cover the configuration changes most likely to silently break an automation.
Properties (4 events): archives, type changes, option list edits, and required-field flips on properties used in active automations. The edit that strips a property out of a workflow, form, or segment is often the step before an archive, so OpsLens flags that edit too; a type change can change how list criteria evaluate.
Workflows (3 events): action removals, branch logic edits, and enrollment criteria changes. A removed action can mean an enrollment that should email a contact never does; a branch logic edit can reroute everyone down the wrong path.
Lists (3 events): membership swings, criteria edits, and renames on lists that drive workflow enrollment or email sends. A criteria edit that drops half the members will break every workflow downstream.
Email templates (3 events): template archives, content changes, and personalization-token breakage on templates referenced in sequences. A broken merge token sends 'Hi {{firstname}}' to every recipient.
Owners (1 event): owner deactivations and reassignments that strand records, queues, or routing rules. A deactivated owner can leave deals unassigned for weeks before someone notices.
Severity levels and routing
OpsLens classifies every detection as Critical, Warning, or Info before delivery.
Critical fires immediately, within seconds of detection. Critical means an active automation is broken right now: a workflow action removed, a property option renamed while ten lists still filter on the old value, an owner deactivated with active deals routed to them. These are the alerts that should page on-call.
Warning fires within the polling cycle (typically under 60 seconds). Warning means a change can break something but the blast radius is small or recoverable: a list rename, a property option list edit, a template content change. These post to channel without paging.
Info is batched and delivered in a digest at the top of each hour. Info covers changes that are routine but worth a record: small membership swings, owner reassignments to active users, and edits to properties no automation depends on.
Per-portal threshold configuration lets you raise or lower the bar for each severity. If Warning is too noisy on a sandbox, dial it down to Info or off; if you want every Info also paged, route Info to the Critical webhook.
Troubleshooting
I connected but got no alerts. First, confirm the Slack webhook URL is correct by sending a curl test to it. Second, check the alert threshold in OpsLens settings; if it is set to Critical only, Warning and Info detections will not deliver. Third, wait at least 10 minutes from connection: the first poll baselines the portal and the next poll is the one that produces deltas.
I see a 'setup needs attention' message after the OAuth handoff. Your portal is working, the OAuth handoff succeeded, but a non-critical post-connection step (often the Slack channel test or the baseline scan kickoff) didn't complete. The bootstrap retries automatically every 15 minutes; nothing for you to do unless the message persists past an hour. If it does, reach out via Talk to us.
How do I disconnect? In HubSpot, go to Settings → Integrations → Connected Apps, find OpsLens AI, and click Uninstall (HubSpot's button label). Uninstalling revokes our token, and we stop watching the portal within 60 seconds. We retain alert history for 30 days post-disconnect in case you reconnect.
API reference
The OpsLens public API exposes a single read-only endpoint at v1: GET /api/v1/alerts returns alerts for the authenticated portal, filterable by severity, category, and date range. Authentication is via the API key generated in your OpsLens settings panel.
The API is available on Professional and Agency plans. Starter plans can read alerts via Slack only.
Full request/response schemas, rate limits, and webhook subscription endpoints land alongside v1.0. See the changelog for the shipping date.