Skip to main content

Overview

Friday can query event data, manage feature flags, and retrieve analytics dashboards from PostHog. To enable these capabilities you must connect the PostHog integration to your account by providing a Personal API key. After setup, Friday will use the PostHog integration automatically whenever a task requires it.

Prerequisites

  1. A PostHog account with access to the projects you want Friday to interact with.
  2. A PostHog Personal API key. You can create one in PostHog under Settings → Personal API Keys.

Step-by-step guide

Friday will automatically detect when you need to connect to PostHog as part of your regular use.
1

Start with a real PostHog request

Tell Friday what you want to do with PostHog. This gives Friday the context it needs to request access and complete the setup.Example prompts:
  • “Show me the top events from PostHog in the last 7 days.”
  • “List all active feature flags in my PostHog project.”
  • “Every Monday at 9am, summarize last week’s PostHog analytics and post them to Slack #product.”
2

Connect your PostHog API key

If you haven’t connected PostHog previously, Friday will prompt you to add your Personal API key.
  • Click Connect PostHog.
  • Enter your Personal API key.
  • Friday validates the key and stores it securely.
3

Continue your task

After authentication, the task you set up in Step 1 will continue automatically, and Friday will now be able to interact with your PostHog projects.
4

Use PostHog for future automations

Whenever you need PostHog in a task, simply include the PostHog action in your prompt. Because the integration is now ready, Friday will handle the operation automatically; no further credential steps are required.

Security and permissions

  • Your PostHog API key is stored securely and encrypted; the raw key is never exposed after setup.
  • The key inherits the permissions of your PostHog user account. Friday can access any project and data that your account can access.
  • Deleting or rotating your Personal API key in PostHog automatically disables the connection; you’ll need to reconnect with a new key.

Revoking access

Note: By revoking access, any current and future Spaces set up with Friday will no longer be able to use PostHog until you reconnect. To remove the PostHog API key from Friday:
  1. In Friday, go to Settings → Integrations.
  2. Find the PostHog integration and click Remove.
To revoke the API key from PostHog:
  1. In PostHog, go to Settings → Personal API Keys.
  2. Find the key you used with Friday.
  3. Click Delete to remove it.

Next steps