ZBrain Documentation
  • ZBrain Documentation
    • Components of ZBrain
    • Getting started with ZBrain
    • 📚Knowledge base
      • How to create a knowledge base?
      • Knowledge source
      • Information schema
      • File summary
      • Automated reasoning
      • Retrieval testing
      • Knowledge base settings
    • 📱APP
      • How to create a new app?
      • How to set up and customize your app?
      • How to access the app reporting dashboard?
    • 🤖ZBrain AI agents
      • Get started with agents on ZBrain
      • Deploying pre-built agents
      • Creating custom AI agents
        • Agent setup
        • Define input sources
        • Define Flow
          • Key elements of a Flow
          • Flow Components
            • Activepieces Platform
            • AITable
            • Airtable
            • Amazon S3
            • Amazon SNS
            • Amazon SQS
            • Amazon Textract
            • Apify
            • Apollo
            • Approval
            • Asana
            • Azure Communication Services
            • Azure Cosmos DB
            • Azure Document Intelligence
            • Azure OpenAI
            • Azure Translation
            • Bannerbear
            • Baserow
            • Beamer
            • Bedrock Claude
            • Bettermode
            • Binance
            • Bing Search
            • Blackbaud
            • Bonjoro
            • Box
            • Brevo
            • Brilliant Directories
            • Bubble
            • CSV
            • Calendly
            • Certopus
            • Clearout
            • Clockodo
            • Code
            • Confluence
            • Connections
            • Constant Contact
            • Contiguity
            • Contentful
            • Customer.io
            • Crypto
            • Databricks
            • Data Mapper
            • Date Helper
            • DeepL
            • Delay
            • Discord
            • Discourse
            • Drip
            • Dropbox
            • Dust
            • Facebook Pages
            • Figma
            • Files Helper
            • Flowise
            • Flowlu
            • Formbricks
            • Frame
            • Freshdesk
            • Freshsales
            • GCloud Pub/Sub
            • GenerateBanners
            • GhostCMS
            • GitHub
            • GitLab
            • Gmail
            • Google Calendar
            • Google Contacts
            • Google Docs
            • Google Drive
            • Google Forms
            • Google Gemini
            • Google My Business
            • Google Search
            • Google Search Console
            • Google Sheets
            • Google Tasks
            • Groq
            • Hacker News
            • Heartbeat
            • HubSpot
            • HTTP
            • Image Helper
            • Inputs
            • Instagram for Business
            • Intercom
            • Invoice Ninja
            • Jira Cloud
            • Jotform
            • Kimai
            • Kizeo Forms
            • LeadConnector
            • Line Bot
            • Linear
            • LinkedIn
            • LinkedIn Actions
            • LLMRails
            • Lusha
            • MailerLite
            • Mailchimp
            • Mautic
            • Microsoft Dynamics 365 Business Central
            • Microsoft Dynamics CRM
            • Microsoft Excel 365
            • Microsoft OneDrive
            • Microsoft Outlook Calendar
            • Microsoft Teams
            • Mixpanel
            • MongoDB
            • Notion
            • Odoo
            • OpenAI
            • OpenRouter
            • Pastebin
            • PDF
            • Postgres
            • PostHog
            • Pushover
            • Qdrant
            • Queue
            • Razorpay
            • Router
            • Salesforce
            • SendGrid
            • ServiceNow
            • SFTP
            • SharePoint
            • Slack
            • SMTP
            • Snowflake
            • SOAP
            • Spotify
            • Stability AI
            • Stable Diffusion Web UI
            • Storage
            • Stripe
            • SurrealDB
            • SurveyMonkey
            • Taskade
            • Telegram Bot
            • Text Helper
            • Trello
            • Twilio
            • Twitter
            • Utilities
            • WhatsApp Business
            • WordPress
            • XML
            • YouTube
            • ZBrain
            • Zendesk
            • ZeroBounce
            • Zoho Books
            • Zoho CRM
            • Zoho Invoice
            • Zoom
          • How to Define a Flow?
          • How to Test Each Step in the Flow?
        • Configure Additional Settings
        • Test and Deploy Agents
        • How to access, monitor, and manage agent performance and tasks?
    • Settings
    • 📖API Tutorials
      • 📚Knowledge base
        • Automated Reasoning
      • 📱APP
      • 🤖Agents
Powered by GitBook
On this page
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow
  5. Flow Components

PostHog

The PostHog piece in ZBrain Flow provides integration with PostHog's product analytics platform. This connector enables you to create events and projects and interact with analytics data directly from your workflows. This piece is ideal for teams looking to enhance their analytics capabilities and maintain consistent data collection across their business processes.

How to Use PostHog in ZBrain Flow?

Step 1: Select PostHog as Your Connection

  • Click on the '+' button in the Flow and search for PostHog.

  • Select PostHog.

  • Decide on the action you need, then select it. ZBrain Flow provides several options:

    • Create Event – Create events in your PostHog instance.

    • Create Project – Set up new projects within PostHog.

    • Custom API Call – Make specialized requests to the PostHog API.

How to Create Event

Step 1: Connect to PostHog

  • From the ‘Personal API Key' dropdown, click on ‘Create Connection.’

  • A small window will appear where you need to enter:

    • A descriptive 'Connection Name'

    • Your 'Personal API Key' from your PostHog account

  • Click 'Save' to create the connection.

Step 2: Configure Event Details

  • In the 'Event name' field, enter a descriptive name for the action you want to create.

  • From the 'Event type' dropdown, select the category that best describes this interaction.

Step 3: Specify User Identification

  • In the 'Distinct Id' field, enter the unique identifier for the user performing this action. This could be a user ID, email, or another identifier.

Step 4: Add Event Properties (Optional)

  • Click 'Add Item' in the 'Properties' section to include additional data points about the event. Each property consists of a key-value pair that provides context about the action.

Step 5: Set Additional Context (Optional)

  • Click 'Add Item' in the 'Context' section to add environment information. This might include device details, location, or application state.

Step 6: Configure Advanced Options (Optional)

  • In the 'Message ID' field, you can provide a unique identifier for deduplication.

  • In the 'Category' field, you can add a higher-level grouping for the event.

How to Create Project

Step 1: Connect to PostHog

  • To connect to your PostHog account, follow the first step in the "How to Create Event" section above.

Step 2: Define Project Details

  • In the 'Name' field, enter a descriptive title for your new analytics project.

Step 3: Configure Slack Integration (Optional)

  • In the 'Slack Incoming Webhook' field, enter a webhook URL if you want to receive notifications in Slack. This allows PostHog to send alerts and insights directly to your team.

Step 4: Set Privacy Options

  • Toggle 'Anonymize IPs' if you want to mask user IP addresses for privacy compliance automatically.

Step 5: Specify Project Type

  • Toggle 'Is demo project' if this is for testing or demonstration purposes. Demo projects may have different limitations or features than production projects.

How to Make PostHog API Requests

Step 1: Connect to PostHog

  • To connect to your PostHog account, follow the first step in the "How to Create Event" section above.

Step 2: Specify the API Endpoint

  • In the 'URL' field, enter the base PostHog URL with the endpoint you want to access.

Step 3: Select Request Method

  • From the 'Method' dropdown, choose the appropriate HTTP method (GET, POST, etc.).

Step 4: Add Custom Headers (Optional)

  • Click 'Add Item' in the 'Headers' section to add any special headers. Note that authorization headers are automatically included in your connection.

Step 5: Configure Query Parameters (Optional)

  • Click 'Add Item' in the 'Query Parameters' section to add URL parameters.

Step 6: Provide Request Body (Optional)

  • For POST, PUT, or PATCH requests, enter the JSON data to send. This contains the specific parameters for your API operation.

PreviousPostgresNextPushover

Last updated 1 month ago

🤖