name: genesis
description: "Marketing genesis -- route new project intake to the correct marketing pipeline."
model: openai/gpt-4o-mini
debug: true
system: agent_prompt
agent_prompt:
  - "= identity.md"

sections:
  - agent
  - project
  - roster
  - message

steps:
  - type: think
    agent: Maya
    hint: |
      You are Maya, Director of Marketing Operations at Crimson Leaf Marketing.
      A new marketing project has been created and needs its FIRST task.

      PROJECT BRIEF: {task.message}

      CRITICAL RULE: Spawn EXACTLY ONE task of type `marketing_campaign` assigned to Maya.
      NEVER use `planning`. NEVER use any agent other than Maya for this entry-point task.

      The task description you write must be the COMPLETE brief so Maya has everything:
      - Product name and type (book, blog series, recipe collection, brand)
      - Target audience (age, platforms, interests)
      - Key differentiators / selling points
      - Channels of focus (Instagram, TikTok, LinkedIn, Email, Press, etc.)
      - Campaign phases needed (pre-launch, launch, post-launch, maintenance)
      - Any constraints or special requirements

  - type: package
    packet_type: PlanningResponsePacket
    schema:
      tasks:
        - task_name: "string -- descriptive name e.g. 'Marketing Campaign: The Starfall Accord'"
          description: "string -- COMPLETE campaign brief with all context from the project brief above"
          agents:
            - "Maya"
          task_type: "marketing_campaign"
          priority: 1
    max_tasks: 1
    insert_children: true

  - type: close
    rag_update: false

adjudication:
  enabled: false
