Skip to content

mixpanel_agent_flow (Resource)

Manages a Mixpanel agent flow — an automated workflow template that orchestrates AI-driven data analysis tasks within your project.

Example Usage

resource "mixpanel_agent_flow" "example" {
  name        = "Daily Insights Flow"
  description = "Automated daily data analysis workflow"
  type        = "metric_monitor"

  graph = jsonencode({
    nodes = []
    edges = []
  })
}

Schema

Required

  • name (String)
  • type (String) The agent-flow template type.

Optional

  • agent_flow_id (String)
  • description (String)
  • graph (String)
  • tags (List of String)

Read-Only

  • allow_staff_override (Boolean)
  • can_pin (Boolean)
  • can_share (Boolean)
  • can_update_basic (Boolean)
  • can_view (Boolean)
  • content_environments_id (Number)
  • content_type (String)
  • created (String)
  • creator_email (String)
  • creator_id (Number)
  • creator_name (String)
  • deleted (String)
  • frequency (String) Cadence values for scheduled trigger nodes.
  • id (String) The ID of this resource.
  • is_favorited (Boolean)
  • is_shared_with_project (Boolean)
  • is_superadmin (Boolean)
  • last_modified_by_email (String)
  • last_modified_by_id (Number)
  • last_modified_by_name (String)
  • last_run (String)
  • modified (String)
  • pinned_date (String)
  • project_id (Number)
  • project_name (String)
  • status (String)
  • user_id (Number)

Import

Import an agent flow by <project_id>:<id>.

import {
  to = mixpanel_agent_flow.example
  id = "1234567:7654321"
}