Connecting Your Rock to Slack
The PetRock.cloud Slack integration lets you receive rock-related notifications in your team's Slack workspace. This article walks through OAuth installation, channel selection, and trigger configuration.
Requirements
- A Slack workspace with permission to install apps
- A PetRock.cloud workspace on the Cobble tier or higher
- Admin or Workspace Owner role on PetRock.cloud
Step 1: Install the Slack app
- Navigate to Settings → Integrations → Slack.
- Click Connect to Slack.
- You will be redirected to Slack's OAuth consent screen.
- Select the Slack workspace you want to install to.
- Review the requested scopes:
chat:write— post messages to channels you choosechannels:read— list channels for selectiongroups:read— list private channels you have invited the app to
- Click Allow.
You will be redirected back to PetRock.cloud with a success confirmation.
Step 2: Select a default notification channel
- Back in Settings → Integrations → Slack, you will now see a Channel dropdown.
- Select the channel where notifications should be posted by default.
- For private channels, invite the PetRock app to the channel first using
/invite @PetRockfrom within the channel. - Click Save.
Step 3: Configure notification triggers
PetRock.cloud supports the following trigger types. Each can be enabled or disabled independently:
| Trigger | Fires when |
|---|---|
rock.provisioned |
A new rock is provisioned |
rock.archived |
A rock is archived |
rock.renamed |
A rock's name changes |
rock.activity |
The rock performs an action |
billing.invoice_due |
A new invoice is generated |
billing.payment_failed |
A payment retry fails |
Note: The
rock.activitytrigger never fires under normal conditions, since rocks do not perform actions. It is included in the trigger list for completeness and to support symmetry with other event-driven SaaS platforms. The toggle has no observable effect.
Step 4: Test the integration
- From Settings → Integrations → Slack, click Send Test Message.
- A test message should arrive in your selected channel within 5 seconds.
If the test message does not arrive, see the troubleshooting section below.
Per-rock channel routing
You can override the default channel on a per-rock basis:
- Open the rock's detail page.
- Go to Settings → Notifications.
- Set Slack Channel to a specific channel for this rock only.
Disconnecting Slack
To disconnect:
- Navigate to Settings → Integrations → Slack.
- Click Disconnect.
- Confirm.
You should also remove the PetRock app from your Slack workspace's app directory if you no longer want it installed there.
Troubleshooting
- Test message not arriving: Verify the app is invited to the channel. Private channels require explicit invitation.
- OAuth redirect fails: Clear cookies for
slack.comandpetrock.cloudand retry. rock.activitynot firing: This is expected. See trigger table above.