# Build a Team of Agents

# Building a Team of Agents: Example Use Case: "Customer Order Status Checker"

This example walks you through creating a ReAct Agent that uses a tool to check the status of a customer's order.

  1. Prerequisites: Ensure at least one tool is ready and configured within the platform. For this example, assume you have an "Order Lookup API" tool that takes customer_id and order_id as input and returns order_status and delivery_date.

  2. Step 1: Navigate to Expert Agent Studio and Start Building

    • Action: From your Purple Fabric workspace:
      • Open Expert Agent Studio.

      • Click + Build to create a new agent.

      • Select Team of Agents.

  3. Step 2: Setup Agent

    • Configure basic details:
      • Solution Name: Customer Order Status Checker

      • Interaction Type: Conversation

      • Visibility: Private (or appropriate for customer service team)

  4. Step 3: Define Perspective

    • Define the role, tone, and behavior of your agent team in the"Perspective" field.
      • Example Perspective: "You are a Customer Service Agent.Your primary role is to assist customers by providing theirorder status. You have access to an 'Order Lookup API' tool.Always ask for both Customer ID and Order ID if not provided.Provide clear and concise order status updates."
  5. Step 4: Configure Tools and Agents

    • Attach the necessary tools that the ReAct agent team will use.

      • Attach Tool: Select your Order Lookup API tool.
    • Link any individual agents that will participate in the team's orchestration (for this simple case, no other agents are needed).

  6. Step 5: Define ReAct Instructions

    • In the "Experience" section, define the chain of thought usingthe ReAct framework. This guides the agent on how to use the tool.
      • Question: The user's query (e.g., "What's the status of my order? My customer ID is 123 and order ID is ABC.")

      • Thought: The agent's reasoning to break down the problem.

        • Example Thought: "The user wants to know their orderstatus. I need to use the 'Order Lookup API' tool. This toolrequires customer_id and order_id. Both are provided in thequery."
      • Action: The selection of a specific tool.

        • Example Action: Order Lookup API
      • Action Input: The parameters passed to the tool.

        • Example Action Input: {"customer_id": "123","order_id": "ABC"}
      • Observation: The output captured from the tool.

        • Example Observation: {"order_status": "Shipped","delivery_date": "2025-08-10"}
      • Final Answer: The delivered result.

        • Example Final Answer: "Your order ABC (Customer ID 123) has been Shipped and is expected to be delivered by August 10, 2025."

        • Alternative Final Answer (if IDs missing): "I can help with that! Please provide your Customer ID and Order ID."

  7. Step 6: Test and Publish

    • Use the "Test & Debug" interface to run trial queries:

      • Example Query 1: "What's the status of order XYZ for customer 456?"

      • Example Query 2: "Check my order." (Verify it asks for IDs)

    • Review the detailed trace steps to confirm correct tool usage and reasoning.

    • Adjust Perspective, Instructions, or Tools as needed.

    • Review agent details and publish.