This tutorial covers both the operator steps (database provisioning, run by your platform team) and the owner/user steps (UI walkthrough, performed by the client). Steps that require database or API access are clearly marked.
Before you begin
Make sure you have:- Access to the Causeloop PostgreSQL database (or ask your platform team to run the provisioning step)
- The owner’s email address and display name
- A decision on which plan to assign (
free,starter,growth, orenterprise)
Step 1 — Provision the tenant
This step is performed by your platform team. If you are the workspace owner, skip to Step 2.
onboard_client() function. This creates the organization, workspace, owner user, and membership in one call.
| Parameter | Required | Notes |
|---|---|---|
p_org_name | Yes | Display name of the organization |
p_org_slug | Yes | URL-safe unique identifier (e.g. acme) — must be globally unique |
p_owner_email | Yes | Email address of the workspace owner |
p_owner_name | Yes | Display name of the owner |
p_workspace_name | Yes | Display name of the first workspace |
p_plan | No | Defaults to starter |
p_timezone | No | IANA timezone string; defaults to UTC |
p_seats | No | Seat cap; defaults to plan minimum |
owner / status active, current_step = connect_source, is_complete = false.
For the full provisioning runbook including bulk onboarding, offboarding, and GDPR erasure, see Client Provisioning.
Step 2 — Owner first login
Receive the invitation
The workspace owner receives a welcome email with a link to app.causeloop.ai. The link opens the Clerk sign-in page.
Sign in
The owner signs in with the email address set in
p_owner_email. On first sign-in, Clerk creates a credential for them. The backend syncs the Clerk identity to the pre-created user record via POST /auth/sync.Step 3 — Complete the onboarding wizard
The wizard has five steps. The backend tracks progress inonboarding_state. Each step is marked complete by calling POST /onboarding/steps/{step}/complete.
Welcome
The wizard greets the owner by name and explains the five steps. The owner clicks Get started to proceed.
Connect a source
The owner connects at least one data source. The wizard offers these sources from the connector catalog:
Clicking a source creates a connector via
| Connector | Type |
|---|---|
| Jira | Issue tracker |
| GitHub | Code repository |
| PagerDuty | Incident management |
| ServiceNow | ITSM |
| Linear | Issue tracker |
| Opsgenie | Alerting |
| Zendesk | Support |
POST /connectors. The connector’s first sync begins asynchronously — issues start appearing in the workspace within a few minutes.Set alert thresholds
The owner configures an alert rule that fires when a pattern’s recurrence probability exceeds a threshold.The default configuration (from
GET /onboarding/config) is:- Probability threshold: 75%
- Window: 7 days
POST /alert-rules. The alert rule will notify configured channels whenever a prediction crosses the threshold.Invite teammates
The owner invites up to three teammates by email with their role. The default invite role is
Each invite triggers
analyst. Available roles:| Role | Suggested for |
|---|---|
analyst | Engineers and SREs who investigate issues and act on recommendations |
viewer | Stakeholders who need read-only access to dashboards and reports |
admin | Team leads who manage settings and connectors |
POST /v1/invitations. Invitees receive an email and complete their own sign-up via Clerk.Done
The wizard displays a summary of what was set up — connected sources, alert rule, and team invites sent. The owner clicks Go to dashboard to enter the product.The
onboarding_state.is_complete flag is set to true and POST /onboarding/steps/review_first_pattern/complete is called when the owner views their first pattern.Step 4 — Invite additional teammates
If more teammates need access after the wizard, anadmin or owner can invite them from Settings → Members, or directly via the API:
- Via the UI
- Via the API
- Go to Settings → Members
- Click Invite member
- Enter the email address and select a role
- Click Send invite
Step 5 — Connect the first data source (if skipped earlier)
If the owner skipped the connector step in the wizard, they can add a source from Settings → Integrations → Add connector. For a connector that uses API credentials:Step 6 — Review first insights
Once the first sync completes, navigate to Issues and then Patterns. Issues view: You will see the first batch of failure events from your connected source. Use the Severity and Status filters to focus on the most critical items. Click any issue to trigger an AI analysis (POST /issues/{id}/analyze) and see the root-cause explanation.
Patterns view: After Causeloop has processed enough issues (typically within minutes of the first sync), patterns begin to appear. Each pattern shows:
- The number of linked issues and the aggregate risk score
- The AI-generated root-cause summary
- A frequency chart with historical occurrences and a recurrence forecast
- The top recommendation
Step 7 — Set up alert rules
Alert rules fire a notification when a prediction crosses a probability threshold. The owner may have created one in the wizard; here is how to create or refine rules:- Via the UI
- Via the API
Go to Settings → Alert Rules → Create rule. Set the probability threshold, the forecast window, and the notification channels (email, Slack, PagerDuty webhook).
Step 8 — Generate the first report
Reports give stakeholders a narrative summary of issues, patterns, and recommendations over a time window. Navigate to Reports → New report and select a time range (e.g. last 7 days). The report is generated asynchronously and includes:- Issue volume by severity and source
- Active and newly detected patterns
- Top recommendations with expected loops prevented
- Risk forecast for the next period
viewer-role teammates.
Troubleshooting
The owner cannot sign in after provisioning
The owner cannot sign in after provisioning
Confirm that the email in
p_owner_email exactly matches the email used during Clerk sign-up (case-sensitive). If the user was pre-created with a different address, update users.email in the database and clear the Clerk external ID (users.external_id = NULL) so the sync re-associates on next login.No issues appear after the first connector sync
No issues appear after the first connector sync
Check the sync run history:
GET /connectors/{id}/sync-runs. A status: error entry will include a details field with the upstream error. Common causes: invalid credentials, insufficient permissions on the external tool, or a network firewall blocking outbound calls from the API to the integration.Patterns don't appear after issues are ingested
Patterns don't appear after issues are ingested
Pattern detection runs asynchronously. If no patterns appear after 10–15 minutes, check that at least several issues share a common signal dimension (service name, error type, or team). Causeloop requires a minimum cluster size to surface a pattern. You can trigger analysis on an individual issue (
POST /issues/{id}/analyze) to see the AI’s root-cause assessment before a full pattern is detected.onboard_client() returns a duplicate slug error
onboard_client() returns a duplicate slug error
Another organization already uses that slug. Choose a different
p_org_slug and retry. The failed transaction leaves no partial records.Client Provisioning Runbook
Full operator reference: bulk onboarding, offboarding, GDPR erasure, and verification queries.
Integrations Overview
Every connector type, credential formats, OAuth flows, and webhook setup.
Core Concepts
Roles, plans, seats, and the full entity reference.
API Reference
Complete endpoint documentation for programmatic onboarding and management.