Product funnel detective
Reads your PostHog funnel and feature events each week, finds where users drop off, and drafts ranked experiments in Notion.
Run HogQL queries and read insights, events, flags, cohorts and recordings. Toolspoke gives your agents 12 of its actions, and you decide which ones each project allows.
Open the marketplace in your workspace, add PostHog to the project your agents work in, and it appears on the gateway immediately.
Provide the credential PostHog asks for. Where to get it, and what it has to be able to reach, is the next section.
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every PostHog action the project leaves on.
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
Mention it on a pull request, and it answers there.
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use PostHog, and only the actions the project leaves on.
Personal API key. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
12 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
11 read, none write, 1 destructive
Fetches data and changes nothing.
run_queryRun a HogQL query. ClickHouse SQL over PostHog's own tables, and return the rows with their column names. This is the operation to reach for whenever a question is not already answered by a saved insight: `select properties.$current_url, count() from events where event = '$pageview' and timestamp > now() - interval 7 day group by 1 order by 2 desc limit 20`. The tables are events, persons, sessions, groups and person_distinct_ids. HogQL is select-only, which is why this is a read. Always include a LIMIT: the rows come back verbatim. Response payloads are kept out of the audit log because they can contain person properties.
list_insightsList the saved insights in the project, the charts people have built and kept, with their id, short id, name, description and type. Use it to find out what the team already measures before writing a HogQL query for it, and to get the id that get_insight needs. Returns definitions, not results.
get_insightFetch one saved insight by its numeric id, including its full query definition and its most recent computed result. Use it after list_insights when you want the numbers a chart shows, rather than rebuilding the chart's logic yourself in run_query.
list_eventsList raw events in a time window, newest first, with their properties and the person who sent them. Useful for looking at exactly what one user did, or checking that a newly instrumented event is arriving. PostHog treats this endpoint as legacy and it is narrow: without `after` you only get the last 24 hours, the window between `after` and `before` cannot exceed a year, and paging stops at 50,000. For anything aggregate, use run_query instead. Payloads are kept out of the audit log because event properties carry personal data.
list_personsSearch the people PostHog has identified, by email, distinct id or free text, and return their properties and distinct ids. Call this first when you need the person id that get_person takes. This returns other people's personal data, so the response is never written to the audit log.
get_personFetch one person by their numeric PostHog id, with every property PostHog holds and all of their distinct ids. Get the id from list_persons, a distinct id is not a person id. This returns another person's personal data, so the response is never written to the audit log.
list_feature_flagsList the project's feature flags with their key, name, active state, rollout conditions and variants. Call this before get_feature_flag or update_feature_flag, those take the numeric flag id, which only this returns, not the human-readable key. It is also the cheapest call here, so it is the connection's health check.
get_feature_flagFetch one feature flag by numeric id, with its complete filter groups, rollout percentages, variants and payloads. Read this before update_feature_flag: an update replaces the fields you send, so you need to know what is there now to avoid dropping a targeting rule.
list_cohortsList the project's cohorts, named groups of people defined by properties or behaviour, with their id, name, description and member count. Use it to find the cohort id you can then reference from a HogQL query in run_query, or to see how the team already segments its users.
list_session_recordingsList session replay recordings with their id, duration, start time, click and keypress counts and the person they belong to. Returns the index only, the replay data itself is not available through this endpoint. Use it to find a recording worth watching in PostHog, then open it there. Recordings are other people's browsing sessions, so the response is never written to the audit log.
list_dashboardsList the project's dashboards with their id, name, description and the insights on each. Use it to see how the team organises its reporting, and to find which insight ids belong to a dashboard before calling get_insight on them.
Deletes or permanently alters something. Worth granting on purpose.
update_feature_flagChange a feature flag: turn it on or off, rename it, archive it, or replace its targeting filters. Destructive because it changes what real end users see the moment it lands, flipping `active` can expose an unfinished feature to everyone, or switch one off underneath people mid-session, and because `filters` replaces the whole targeting object rather than merging into it. Call get_feature_flag first and send back the full filters object with your change applied, or you will silently delete the existing rollout rules.
The gateway enforces each of these, so they can be stated flatly.
12 named actions: 11 that only read and 1 that delete or permanently alter something. They include run_query, list_insights and get_insight. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
Personal API key. The connector asks for personal api key and project id, and optionally api host. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
Install PostHog in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
The 12 actions above are the whole of it. A call to any other name is refused before it reaches PostHog rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. Toolspoke holds no access to PostHog of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in PostHog. An agent has to ask. Toolspoke does not retry, queue or back off around PostHog's own rate limits. A call that PostHog refuses comes back to the agent as a failed call.
Yes, in two places. The project switches PostHog's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
Reads your PostHog funnel and feature events each week, finds where users drop off, and drafts ranked experiments in Notion.