Integrations
PostHog logo

PostHog integration

Analytics & Data · 78 actions · Custom auth

Product analytics platform: events, persons, groups, cohorts, dashboards, insights, experiments, feature flags, surveys, session recordings, error tracking, and more (78 actions).

Overview

The ModuleX PostHog integration lets a ModuleX agent operate PostHog on your behalf — running create, update and capture actions across dashboards, experiments and experiment results — directly from a plain-English request, using your organization's own PostHog credentials. No pre-built workflow is required: the agent picks the right PostHog action for the task.

PostHog is an analytics & data platform. ModuleX adds the agent layer: ask for an outcome and it selects and runs the right PostHog action — or, when you want a repeatable process, the composer assembles a PostHog workflow for you, streaming the nodes onto the canvas as it builds.

Ask the assistant

Drive PostHog in plain English

Type what you want. A ModuleX agent picks the right PostHog action — or chains several — and runs it. No workflow to build.

  • Create a new dashboard
    resolves tocreate_dashboard
  • Find the dashboard I describe and update it
    resolves toget_dashboardsupdate_dashboard
  • Delete a dashboard
    resolves todelete_dashboard
  • Show me the dashboards that match what I describe
    resolves toget_dashboard
Use cases

What you can automate with PostHog

  • Find the right dashboard and update it in one promptget_dashboardsupdate_dashboard
  • Look up an experiment on demandget_experiments
  • Create a feature flag straight from a requestcreate_feature_flag
  • Update an insight the moment something changesupdate_insight
  • Run a query from a plain-English requestrun_query
  • Pull a list of error tracking issues for a reportlist_error_tracking_issues
At a glance

PostHog integration at a glance

VendorPostHog
CategoryAnalytics & Data
Actions available78
AuthenticationCustom
Uses your own credentialsYes
Works with the assistantYes
Works in the composerYes
Multi-step / tool-chainingYes
Technical referenceView docs
Integration version1.0.0
Last updatedJun 2026
Reference

All 78 PostHog actions

Dashboards5
get_dashboards
List dashboards with optional search / pinned filter
get_dashboard
Get a specific dashboard
create_dashboard
Create a new dashboard
update_dashboard
Update a dashboard's name, description, pin, or tags
delete_dashboard
Delete a dashboard
Experiments5
get_experiments
List experiments
get_experiment
Get an experiment
create_experiment
Create an A/B test experiment
update_experiment
Update an experiment (rename, change metrics, launch, conclude, or archive)
delete_experiment
Delete an experiment
Experiment Results1
get_experiment_results
Get experiment results (optionally force refresh)
Feature Flags5
get_feature_flags
List feature flags
get_feature_flag
Get a flag definition. EITHER flag_id OR flag_key must be provided — pass only one. If both are given, flag_id is used.
create_feature_flag
Create a feature flag
update_feature_flag
Update a feature flag (addressed by key)
delete_feature_flag
Delete a feature flag
Insights5
get_insights
List insights
get_insight
Get an insight
create_insight
Create an insight
update_insight
Update an insight
delete_insight
Delete an insight
Queries1
run_query
Run an ad-hoc HogQL/JSON query
Error Tracking Issues2
list_error_tracking_issues
List error tracking issues
get_error_tracking_issue
Get an error tracking issue
Surveys5
get_surveys
List surveys
get_survey
Get a survey
create_survey
Create a survey
update_survey
Update a survey
delete_survey
Delete a survey
Organizations1
get_organizations
List organizations the user belongs to
Projects1
get_projects
List projects in an organization
Event Definitions1
get_event_definitions
List event definitions
Property Definitions1
get_property_definitions
List property definitions
Events1
capture_event
Capture a single event (ingest API)
Batch Capture Events1
batch_capture_events
Capture multiple events in one batch request
Users1
identify_user
Set / update properties on a person via $identify event
Alias Users1
alias_user
Create an alias between two distinct IDs (merge users)
Evaluate Feature Flags1
evaluate_feature_flags
Evaluate all feature flags for a user (server-side flag evaluation via /flags?v=2)
Group Identifies1
group_identify
Identify a group (B2B analytics — org/company/etc.)
People4
get_persons
List persons
get_person
Get a person by ID
update_person
Update person properties (PATCH)
delete_person
Delete a person (optionally with associated events)
Bulk Delete People1
bulk_delete_persons
Delete multiple persons in one call
Groups2
get_groups
List groups of a specific group type
find_group
Find a specific group by type + key
Group Types1
get_group_types
List configured group types for the project
Cohorts5
get_cohorts
List cohorts
get_cohort
Get a cohort
create_cohort
Create a static or dynamic cohort
update_cohort
Update a cohort
delete_cohort
Soft-delete a cohort
Cohort People1
get_cohort_persons
List persons in a cohort
Session Recordings3
get_session_recordings
List session recordings (metadata only)
get_session_recording
Get one session recording
delete_session_recording
Delete a session recording
Actions5
get_actions
List actions
get_action
Get an action
create_action
Create an action (composite event)
update_action
Update an action
delete_action
Delete an action (tries soft-delete, falls back to rename if PostHog's soft-delete fails — legacy bug workaround)
Action by Names1
delete_action_by_name
Search + delete an action by name (DELETE → soft-delete → rename fallback chain)
Annotations5
get_annotations
List annotations
get_annotation
Get an annotation
create_annotation
Create an annotation (a note at a point in time)
update_annotation
Update an annotation
delete_annotation
Delete an annotation
Alerts5
get_alerts
List alerts
get_alert
Get an alert
create_alert
Create an alert on an insight
update_alert
Update an alert
delete_alert
Delete an alert
Early Access Features5
get_early_access_features
List early-access features
get_early_access_feature
Get an early-access feature
create_early_access_feature
Create an early-access feature
update_early_access_feature
Update an early-access feature
delete_early_access_feature
Delete an early-access feature
Early Access Feature by Names1
delete_early_access_feature_by_name
Search + delete an early-access feature by name

See full parameters and response schemas in the PostHog integration docs

Two ways

Two ways to use PostHog in ModuleX

Ask the assistantType what you want done and a ModuleX agent picks the right PostHog action and runs it — no workflow to build.
Compose a workflowNeed it to happen every time? Describe the process and the composer wires PostHog into a repeatable workflow you can run on a schedule, from chat, or as an API.
Security

Connecting PostHog

CustomPostHog uses a custom authentication flow. ModuleX encrypts whatever credentials you supply and scopes them to your organization.

Step-by-step setup in the PostHog docs

Related

Pairs well with PostHog

Agents often chain PostHog with these — connect them once and the agent can use all of them in a single task.

FAQ

PostHog + ModuleX FAQ

A ModuleX agent can run any of PostHog's 78 actions — across dashboards, experiments, experiment results and feature flags — from a plain-English request, using your organization's own PostHog credentials.
No. The agent selects the right PostHog action from your prompt. A workflow is only needed when you want a repeatable process — and the composer builds that for you from a description.
Through a secure PostHog connection; your credentials are stored encrypted and scoped to your organization.
78, spanning dashboards, experiments, experiment results and feature flags.
PostHog runs on your own credentials, so any PostHog usage is billed by PostHog directly. ModuleX meters the agent run — and if you connect your own model keys, there's no ModuleX markup on model usage.

Put PostHog to work in ModuleX.

Connect PostHog once with your own credentials and let your agent run all 78 actions on demand.

Last updated: Jun 2026Browse all 175 integrations →