Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

3.0 KB
Raw Blame
import { LegacyDestinationPlugin } from '../../types'
import { onEvent, setupPlugin } from './index'

// NOTE: This is a deprecated plugin and should never be shown to new users

export const avoPlugin: LegacyDestinationPlugin = {
    setupPlugin: setupPlugin as any,
    onEvent,
    template: {
        free: false,
        status: 'deprecated',
        type: 'destination',
        id: 'plugin-posthog-avo-plugin',
        name: 'Avo Inspector Plugin',
        description: 'Export PostHog events to Avo inspector.',
        icon_url: 'https://raw.githubusercontent.com/PostHog/posthog-avo-plugin/main/logo.png',
        category: [],
        code_language: 'javascript',
        code: 'return event',
        inputs_schema: [
            {
                templating: false,
                key: 'avoApiKey',
                label: 'Avo API Key',
                type: 'string',
                required: true,
                secret: true,
            },
            {
                templating: false,
                key: 'environment',
                label: 'Environment',
                type: 'string',
                default: 'dev',
                required: false,
                secret: false,
            },
            {
                templating: false,
                key: 'appName',
                label: 'App name',
                type: 'string',
                default: 'PostHog',
                required: false,
                secret: false,
            },
            {
                templating: false,
                key: 'excludeEvents',
                label: 'Events to exclude',
                type: 'string',
                description: 'Comma-separated list of events that will not be sent to Avo.',
                default: '',
                required: false,
                secret: false,
            },
            {
                templating: false,
                key: 'includeEvents',
                label: 'Events to include',
                type: 'string',
                description: 'Comma separated list of events to send to Avo (will send all if left empty).',
                default: '',
                required: false,
                secret: false,
            },
            {
                templating: false,
                key: 'excludeProperties',
                label: 'Properties to exclude',
                type: 'string',
                description: 'Comma-separated list of event properties that will not be sent to Avo.',
                default: '',
                required: false,
                secret: false,
            },
            {
                templating: false,
                key: 'includeProperties',
                label: 'Properties to include',
                type: 'string',
                description: 'Comma separated list of event properties to send to Avo (will send all if left empty).',
                default: '',
                required: false,
                secret: false,
            },
        ],
    },
}