Objective: Create a manager style orchestration to create a detailed plan of any feature or application. It has to take in the company’s guidelines for creating a PRD, break it down into tasks and then assign it to different resources.

Pre-requisites

  1. Signup / login to https://studio.lyzr.ai/
  2. That’s it!

Orchestration

Step 1: Let’s get those guidelines

We will be creating an agent to just give us those PRD guidelines

  1. Navigate to Agents in the sidebar
  2. Click on the button “Create New”
  3. Create the agent
    1. Give it a suitable name and description (PRD Guidelines Generator)
    2. Select an LLM Provider - OpenAI
    3. Select a model - gpt-4o-mini
    4. Provide the following Agent Role: You are an expert product manager that give clear and concise guidelines on how to create a PRD document
    5. Hit “Improve” button to instantly get a high quality prompt!
    6. You can select short term memory to enable full conversation style
    7. Create!
  4. Ask the agent: Create guidelines for creating a PRD document
  5. Copy the generated guidelines

Step 2: Create a knowledge base to store the PRD guidelines of the company

  1. Navigate to Knowledge Base in the sidebar
  2. Click on the button “Create New”
    1. Provide a name and description
    2. Select Qdrant as the vector store
    3. Select text-embedding-adda-002 as the embedding model
  3. Click “Upload” and in the Raw Text area paste the guidelines you had copied earlier
  4. Upload
  5. You can test out retrieval right here in the knowledge base playground

Step 3: Create the PRD Generator Agent

  1. Navigate to Agents in the sidebar
  2. Click on the button “Create New”
  3. Create the agent
    1. Give it a suitable name and description (PRD Generator)
    2. Select an LLM Provider - OpenAI
    3. Select a model - gpt-4o-mini
    4. Provide the following Agent Role: You are an expert product manager that can create PRD documents based on the guidelines fetched from RAG
    5. Hit “Improve” button
    6. Select the feature “Knowledge Base” and select the knowledge base you have created
    7. Create the agent
  4. Test out the agent: Create a PRD document for a weather app

Step 4: Create the Task Breakdown Agent

  1. Navigate to Agents in the sidebar
  2. Click on the button “Create New”
  3. Create the agent
    1. Give it a suitable name and description (Task breakdown agent)
    2. Select an LLM Provider - OpenAI
    3. Select a model - gpt-4o-mini
    4. Provide the following Agent Role: You are an expert project analysis specialist that can transform a project description or PRD into a set of tasks in structured JSON
    5. Hit “Improve” button
    6. Enable “Examples” and select “JSON (For Structured Outputs)
    7. Select “JSON”. Provide the following JSON
    {
      "tasks": [
        {
          "name": "",
          "description": "",
          "dependencies": "",
          "priority": ""
        }
      ]
    }
    
    1. Create the agent
  4. Test out the agent: Breakdown the tasks for creating a weather app

Step 5: Create the Resource Assignment Agent

  1. Navigate to Agents in the sidebar

  2. Click on the button “Create New”

  3. Create the agent

    1. Give it a suitable name and description (Resource Manager agent)
    2. Select an LLM Provider - OpenAI
    3. Select a model - gpt-4o-mini
    4. Provide the following Agent Role: You are an Expert TEAM MANAGEMENT SPECIALIST. Your task is to EFFICIENTLY ASSIGN tasks to a team of diverse professionals, including product managers, designers, and engineers.
    5. Provide the following in agent instructions (feel free to change the assignments):
    Your task is to OPTIMIZE the task assignment process. You MUST follow these steps:
    1. IDENTIFY the specific TASKS that need to be completed.
    2. MATCH each TASK with the MOST SUITABLE team member based on their ROLE and EXPERTISE. This will be the assignee
    3. Ensure that each team member, namely Jithin (Backend engineer), Manoj (Product manager), Khush (Full stack engineer), Shreyas (Full stack engineer), Naveen (QA engineer) and Umashankar (Designer), is assigned tasks that ALIGN with their SKILLS.
    4. REVIEW and CONFIRM the task assignments to ensure BALANCE in workload and MAXIMUM EFFICIENCY.
    5. COMMUNICATE the assignments CLEARLY to each team member, offering SUPPORT and CLARITY on their TASKS.
    
    By following these steps, you will ensure the team operates effectively and PROJECTS are executed SUCCESSFULLY.
    
    

    f. Enable “Examples” and select “JSON (For Structured Outputs)

    g. Select “JSON”. Provide the following JSON

    {
      "tasks": [
        {
          "name": "",
          "description": "",
          "dependencies": "",
          "priority": "",
          "assignee": ""
        }
      ]
    }
    

    h. Create the agent

  4. Test out the agent: Breakdown the tasks for creating a weather app

Step 6: Create a manager / supervisor agent

  1. Navigate to Agents in the sidebar

  2. Click on the button “Create New”

  3. Create the agent

    1. Give it a suitable name and description (Software Manager)
    2. Select an LLM Provider - OpenAI
    3. Select a model - gpt-4o-mini
    4. Provide the following Agent Role: You are a manager of AI agents and call upon the correct agent to get the tasks done
    5. Provide the following Agent Instructions:
    You are a software manager that take in any requirement and then uses the PRD generator agent, the task breakdown agent and resource manager to develop a complete plan for the project. 
    
    Output the complete plan:
    1. The complete PRD
    2. The task breakdown along with the assignments
    3. Anything to watch out for
    

    f. Enable “Manager Agent” toggle

    g. Add the agents:

    1. PRD Generator Agent - used to develop a PRD when given a feature description
    2. Task breakdown Agent - able to use a PRD and break it into a list of tasks in json format
    3. Resource Manager - takes a list of tasks and is able to assign it to the correct person

    h. Create the agent i. Test it out. “Create a detailed plan for a weather app” and go to the activity tab to see the orchestration!