You can wire the PostHog node into an AI agent as a tool provider: the agent calls the operations you allow. See Agent tools.
Credentials
Connect PostHog under Credentials in the node settings. See Connecting credentials for the general flow.Personal API key
Enter the values manually when creating the credential. Get your credentials here.Project API key
Enter the values manually when creating the credential. Get your credentials here.OAuth
Sign in with your PostHog account when prompted; no keys to copy. Get your credentials here. NoClick requests the following permissions:openidemailproject:readorganization:readuser:readinsight:readinsight:writedashboard:readdashboard:writefeature_flag:readfeature_flag:writeexperiment:readexperiment:writequery:readperson:readperson:writecohort:readcohort:writeannotation:readannotation:writesurvey:readsurvey:writeaction:readaction:writesession_recording:readsession_recording:writegroup:readorganization_member:readorganization_member:writeevent_definition:readproperty_definition:readhog_function:readhog_function:writenotebook:readnotebook:writeearly_access_feature:readearly_access_feature:writebatch_export:readactivity_log:read