
Support Slack Setup
FreeEasily connect Slack to local PostHog Conversations.
Free · Opens the source repo
What Support Slack Setup does
The Support Slack Setup skill enables developers to integrate a Slack workspace with the local PostHog Conversations application, allowing Slack messages to be transformed into support tickets and responses to be sent back directly to Slack. This skill is particularly useful during the development and testing phases when users want to ensure that the Slack integration functions correctly without deploying to a production environment. By following the outlined steps, users can set up a temporary Slack app that communicates with their local instance of PostHog, facilitating a seamless testing experience.
The setup process involves creating a Slack app in a throwaway workspace and configuring OAuth settings to ensure proper connectivity. Users need to manage two different reachability requirements: the OAuth connection, which is browser-mediated and can use localhost, and the inbound events from Slack, which require a public tunnel to reach the local server. This dual setup allows developers to test Slack interactions without the constraints of a production environment, making it a valuable tool for debugging and development.
Additionally, the skill provides clear guidance on managing dynamic settings within the PostHog application, ensuring that the necessary credentials are configured correctly. It also includes instructions for setting up a public tunnel using tools like ngrok or Cloudflare Tunnel, which are essential for receiving events from Slack. The detailed step-by-step instructions help users navigate common pitfalls and ensure that they can successfully connect and test the integration with minimal friction.
Overall, this skill is designed for developers and teams working with PostHog who need to validate their Slack integration locally before moving to a live environment. It streamlines the process of setting up a temporary workspace and ensures that all necessary configurations are in place for effective testing.
When to use it
Use this skill when you need to test Slack integration with PostHog locally, especially during development.
When not to use it
Avoid this skill if you are not using PostHog or if you do not require local testing of Slack integrations.
What you can build with it
Testing Slack Integration
Use this skill to set up a temporary Slack app for testing the integration with your local PostHog instance.
Debugging OAuth Issues
If you encounter OAuth configuration errors, this skill provides the necessary steps to resolve them effectively.
Setting Up Event Subscriptions
Easily configure event subscriptions from Slack to your local server using the public tunnel setup.
How to install Support Slack Setup
View source1. Install with the skills CLI
npx skills add posthog/posthog/setting-up-support-slack-locally --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by posthogSetting up Support Slack locally
Slack is SaaS-only, so "local" means a throwaway Slack workspace + app whose OAuth and events reach your laptop. The job has one non-obvious idea that avoids almost every wall: the OAuth connect and the event webhook have opposite reachability needs, so you point them at different places.
- OAuth connect is browser-mediated. Your browser follows the redirect, so
localhostis reachable. No tunnel needed. - Inbound events (Slack POSTing messages so they become tickets) are server-to-server from Slack's
cloud. Slack cannot reach
localhost, so this one needs a public tunnel.
Keep the whole app and the OAuth flow on localhost, and point only Event Subscriptions (and Interactivity)
at the tunnel. This also sidesteps free-tier tunnel rate limits, since the tunnel then carries only Slack's
low-volume event POSTs rather than the entire SPA.
This is the conversations/SupportHog variant of the general
Slack local setup guide; that guide covers the
PostHog Desktop / notifications Slack app (SLACK_APP_*, /integrations/slack/callback). Conversations uses
its own SUPPORT_SLACK_* credentials and /api/conversations/v1/slack/* routes, but the tunnel and
SITE_URL mechanics are identical.
The endpoints
All under products/conversations/backend/api/urls.py, prefixed /api/conversations/:
| Route | Purpose | Reachability |
|---|---|---|
v1/slack/authorize | returns the Slack OAuth URL (auth-gated) | browser (localhost) |
v1/slack/callback | OAuth redirect target; built from SITE_URL, no forced https | browser (localhost) |
v1/slack/events | inbound event webhook | Slack's servers (tunnel) |
v1/slack/interactivity | interactive component callbacks | Slack's servers (tunnel) |
The callback requires an authenticated session on whatever origin SITE_URL resolves to, because the
session cookie is per-origin. Keep SITE_URL on localhost and log in there, and the callback keeps your
session.
Step 1 — credentials
SUPPORT_SLACK_APP_CLIENT_ID, SUPPORT_SLACK_APP_CLIENT_SECRET, and SUPPORT_SLACK_SIGNING_SECRET are
django-constance dynamic settings (posthog/settings/dynamic_settings.py) that default to the matching env
var. Empty client id is what produces "Support Slack OAuth client ID is not configured". Put your Slack
app's values in .env.local (gitignored) and restart the backend:
SUPPORT_SLACK_APP_CLIENT_ID=<client id>
SUPPORT_SLACK_APP_CLIENT_SECRET=<client secret>
SUPPORT_SLACK_SIGNING_SECRET=<signing secret>
Constance stores values in the DB, and a stored value overrides the env default. If it still reads as
unconfigured after a restart, check /admin/constance/config/ for a blank stored value and set it there
instead.
Step 2 — the Slack app
At api.slack.com/apps, create an app in a throwaway workspace, then:
- App Home → enable a bot user (give it a display name). Without this, install fails with "requesting permission to install a bot ... but it's not currently configured with a bot".
- OAuth & Permissions → Bot Token Scopes — the flow requests these (from
SUPPORTHOG_SLACK_SCOPESinproducts/conversations/backend/api/slack_oauth.py):channels:history,channels:read,chat:write,chat:write.customize,files:read,files:write,groups:history,groups:read,reactions:read,users:read,users:read.email. Attachments need the twofiles:scopes in both directions, so a workspace installed without them shows a "reconnect" banner in support settings. - OAuth & Permissions → Redirect URLs — add
http://localhost:8010/api/conversations/v1/slack/callbackand Save. If Slack refuses a plain-http localhost URL, use the tunnel URL for the callback too and log in once on the tunnel origin (see references/troubleshooting.md). - Copy the Client ID, Client Secret, and Signing Secret from Basic Information into
.env.local(Step 1).
Step 3 — tunnel for inbound events
Run any HTTPS tunnel pointed at Caddy on 8010, rewriting the upstream Host header to localhost (the
dev Caddy only answers for the localhost host; without the rewrite you get an empty 200 and a white page):
ngrok http --host-header=localhost 8010
# or, free with no rate limit:
cloudflared tunnel --url http://localhost:8010 --http-host-header localhost
Verify it reaches Django, not just Caddy:
curl -sS https://<tunnel-host>/_preflight | head -c 120 # want JSON, server: granian
Then in the Slack app set Event Subscriptions → Request URL (and Interactivity → Request URL if
testing buttons) to https://<tunnel-host>/api/conversations/v1/slack/events (and .../interactivity).
Slack sends a synchronous url_verification challenge on save, so the backend must be up; the handler
echoes it back automatically.
The Request URL alone only passes verification; it delivers nothing until you subscribe to events. Under
Event Subscriptions → Subscribe to bot events, add the events the backend handles (SUPPORT_EVENT_TYPES
in products/conversations/backend/api/slack_events.py):
app_mentionmessage.channels(andmessage.groupsfor private channels), both arriving as the innermessageeventreaction_addedmember_joined_channel,member_left_channel
Reinstall the app after changing scopes/events so the new grants take effect.
Step 4 — connect and test
Browse the app at http://localhost:8010, log in, go to Support settings, and connect Slack. The OAuth
round-trip completes on localhost. Then invite the bot to a channel in your dev workspace and post a
message; it should arrive as a ticket, and a reply from the ticket should post back to the thread.
For the failure modes worth recognizing (white screen, "Network error", redirect mismatch, region routing), see references/troubleshooting.md.
Frequently asked questions about Support Slack Setup
Similar skills
WinMD API Search
Easily find and explore Windows desktop APIs.
WebMCPify
Transform any web app into an agent-ready platform.
Phoenix Tracing
Instrument LLM applications with OpenInference tracing.
Foundry Hosted Agent CopilotKit
Guidance for developing agentic web apps on Azure.
Power Automate Foundation
Connect AI agents to Power Automate seamlessly.
Power Automate Flow Builder
Efficiently build and deploy Power Automate flows programmatically.
