PostHog

Create PostHog Experiment

Create PostHog Experiment.

1 creditRuns in your PostHog account

Endpoint

Parameters

NameTypeRequiredNote
identifieraccount · requiredaccountrequired—
project_idstring · requiredstringrequired

Project ID returned by List PostHog Projects. Uses only the selected connected account.

namestring · requiredstringrequired

PostHog name.

feature_flag_keystring · requiredstringrequired

PostHog feature flag key.

descriptionstring · optionalstringoptional

PostHog description; null clears this value.

start_datestring · optionalstringoptional

PostHog start date; null clears this value.

end_datestring · optionalstringoptional

PostHog end date; null clears this value.

holdout_idnumber · optionalnumberoptional

PostHog holdout id from the matching lookup in this project.

parametersstring · optionalstringoptional

Experiment parameters JSON, including the feature flag variants and rollout percentages.

secondary_metricsstring · optionalstringoptional

PostHog secondary metrics as structured JSON or JSON text. Supports Workflow variables.

saved_metrics_idsstring · optionalstringoptional

PostHog saved metrics ids as structured JSON or JSON text. Supports Workflow variables.

filtersstring · optionalstringoptional

PostHog filters as structured JSON or JSON text. Supports Workflow variables.

archivedboolean · optionalbooleanoptional

PostHog archived.

typestring · optionalstringoptional

PostHog type.

exposure_criteriastring · optionalstringoptional

PostHog exposure criteria as structured JSON or JSON text. Supports Workflow variables.

metricsstring · optionalstringoptional

PostHog metrics as structured JSON or JSON text. Supports Workflow variables.

metrics_secondarystring · optionalstringoptional

PostHog metrics secondary as structured JSON or JSON text. Supports Workflow variables.

stats_configstring · optionalstringoptional

PostHog stats config as structured JSON or JSON text. Supports Workflow variables.

scheduling_configstring · optionalstringoptional

PostHog scheduling config as structured JSON or JSON text. Supports Workflow variables.

allow_unknown_eventsboolean · optionalbooleanoptional

PostHog allow unknown events.

_create_in_folderstring · optionalstringoptional

PostHog create in folder.

conclusionstring · optionalstringoptional

PostHog conclusion.

conclusion_commentstring · optionalstringoptional

PostHog conclusion comment; null clears this value.

primary_metrics_ordered_uuidsstring · optionalstringoptional

PostHog primary metrics ordered uuids as structured JSON or JSON text. Supports Workflow variables.

secondary_metrics_ordered_uuidsstring · optionalstringoptional

PostHog secondary metrics ordered uuids as structured JSON or JSON text. Supports Workflow variables.

only_count_matured_usersboolean · optionalbooleanoptional

PostHog only count matured users.

update_feature_flag_paramsboolean · optionalbooleanoptional

PostHog update feature flag params.

Response schema

{
  "type": "object",
  "required": [
    "id",
    "name",
    "feature_flag_key"
  ],
  "properties": {
    "id": {
      "type": "number"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "deleted": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "filters": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ]
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "archived": {
      "type": "boolean"
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "conclusion": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string"
    },
    "holdout_id": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "parameters": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "updated_at": {
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "feature_flag": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "stats_config": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "saved_metrics": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "feature_flag_key": {
      "type": "string"
    },
    "_create_in_folder": {
      "type": "string"
    },
    "exposure_criteria": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "metrics_secondary": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "saved_metrics_ids": {
      "anyOf": [
        {
          "type": "array",
          "items": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "scheduling_config": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "secondary_metrics": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ]
    },
    "user_access_level": {
      "type": "string"
    },
    "conclusion_comment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "allow_unknown_events": {
      "type": "boolean"
    },
    "only_count_matured_users": {
      "type": "boolean"
    },
    "update_feature_flag_params": {
      "type": "boolean"
    },
    "primary_metrics_ordered_uuids": {
      "anyOf": [
        {
          "type": "array",
          "items": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "secondary_metrics_ordered_uuids": {
      "anyOf": [
        {
          "type": "array",
          "items": {}
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false
}

Get started

How to use this action

  1. Connect your AI

    Add Connie to ChatGPT, Claude or Slack once, then connect your account for this app. There’s no API key to manage.

  2. Ask for the outcome

    Describe what you need in plain words. Your AI runs this app’s actions when the job calls for them, along with any other tools it needs.

  3. Make it a workflow

    Add an action as a step in a workflow that runs the same way every time, on a schedule or when something happens.

  4. Stay in control

    Choose whether each action runs on its own or asks first. When it asks, you see an Allow or Deny card before anything changes in the app.