What problem does it solve?
This Skill helps you gate features and run flag-based A/B experiments in the Agentic Cockpit while ensuring correct analytics attribution and EU-compliant tracking.
Core Features & Use Cases
- Feature flags for safe rollouts: Gate pilot flow behavior behind a tenant- and pilot-scoped
pilot:<id> flag for controlled deployments and kill-switches.
- Experiments for comparing variants: Run experiments between two Langflow flow variants by mapping
variant_id to PostHog flag variant keys and measuring decision outcomes.
- Cohorts and event recording: Define cohort logic in PostHog while mirroring cohort predicates into Supabase for offline replay, and record a minimal event set like
pilot.run.started and hitl.decision.made.
- EU data residency correctness: Enforce using
https://eu.i.posthog.com rather than default endpoints to satisfy residency requirements.
Quick Start
Integrate the posthog skill by configuring POSTHOG_HOST, POSTHOG_API_KEY, and POSTHOG_PROJECT_API_KEY, then evaluate flags server-side using distinct_id set to chatwoot_conversation_id with send_feature_flag_events enabled.