Agentic Service Discovery

Resources

P

PostHog

by PostHog, Inc.

Connect agents to PostHog to capture events, manage feature flags, and query product analytics.

AnalyticsFree / PaidAPI keyanalyticsfeature flagsproduct analyticsopen sourcesession recording

How agents use PostHog

  • Track agent feature usage with granular event capture
  • Gate experimental agent capabilities with feature flags
  • Query user behavior data to personalize agent responses
  • Build cohorts of power users for targeted AI-driven campaigns
  • Run A/B tests on agent workflow variations and measure outcomes

Agent actions

Capture EventSend a single analytics event to PostHog

Inputs: distinctId, event, properties, timestamp

Returns: success

Capture Batch EventsSend multiple events in a single request

Inputs: batch

Returns: success, count

Identify PersonSet person properties for a distinct ID

Inputs: distinctId, properties

Returns: success

Get PersonRetrieve a person's profile and properties

Inputs: distinctId

Returns: person, properties, createdAt

Evaluate Feature FlagCheck whether a feature flag is enabled for a user

Inputs: flagKey, distinctId, personProperties

Returns: enabled, variant, payload

Get Feature FlagsList all feature flags in the project

Inputs: active, limit

Returns: flags, total

Query InsightsExecute an analytics query against PostHog data

Inputs: query

Returns: results, columns, rowCount

Get CohortRetrieve a cohort definition and its user count

Inputs: cohortId

Returns: cohort, name, count

Example workflows

1

Feature flag-gated workflows

Agent checks PostHog feature flags before executing experimental workflows

2

Usage analytics pipeline

Capture agent interactions as PostHog events for product analytics

About PostHog

Vendor
PostHog, Inc.
Pricing Always review details with the vendor
Free / PaidFree tier: 1M events/month, unlimited feature flags. Paid plans based on event and session volume.
Authentication
API key
Rate limit Always review details with the vendor
300 requests / minute
Compatible nodes
AgentResourceOutput

Build an AI workflow with PostHog

Use the Agentic Planner to design, visualize, and connect PostHog with your other tools.

Open Agentic Planner

Related Analytics tools

PostHog AI Agent Integration | Fugentic