provider vision POST /api/projects/{project_id}/vision/actions/
@utdk/posthog /api/projects/{project_id}/vision/actions/
vision_actions_create
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
visionActionsCreate
POST/api/projects/{project_id}/vision/actions/
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required
required

Human-readable action name. Unique within the team.

required

Scanner whose observations this action operates on. Must belong to the same team.

When false, the scheduler skips this action.

Marks this action as the scanner's built-in daily digest, the one summary surfaced on the scanner overview. At most one digest per scanner.

What fires the action. MVP supports 'schedule' only. * `schedule` - Schedule * `threshold` - Threshold

What the action produces. MVP supports 'group_summary' only. * `group_summary` - Group summary * `per_observation` - Per observation

Trigger parameters. For schedule triggers: {rrule, timezone}.

Targeting predicate: which of the scanner's observations this action runs on.

Synthesis options for the group summary, e.g. {prompt_guide}.

List of delivery destinations the synthesized summary is sent to.

required

Computed next fire time for schedule triggers; the scheduler scans this.

required

Timestamp of the most recent run, or null if it has never run.

required

ID of the delivery flow provisioned for this action. Null until delivery is wired up.

required
required

User who created the action.

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.visionActionsCreate()