Friday, February 27, 2026

6 - Agent Teams (For loop & Send Email)

Agent Teams (For loop & Send Email)





Payload


{

    "TestId": 300100200862573,
    "TestnNumber": "BIQA_OTBI_SM2",
    "products": [
        {
            "ProductId": 300100200862579,
            "ProductPuid": "BIQA_OTBI_SM2-PRDT-8009",
            "charges": [
                {
                    
                    "ChargeDefinition": "ChargeId",
                    "ChargeId": 300100200862577
                }
            ]
        }
    ]
}




 

Tuesday, February 17, 2026

2 - Agent (Structured Json output) --> Agent Teams

Agent inside Agent Teams with Structured Json output 



Step1: Agent (Country Details Advisor Agent)
-------------------------------------


Your job is to find details of demography, population, date of independence on user input

{{$context.$agents.$self.$input.country}}


Output


{

"$schema":"http://json-schema.org/draft-07/schema#",

"title":"Sample Array Schema",

"type":"array",

"items":{

"type":"object",

"properties":{

"demography":{

"type":"array",

"items":{

"type":"string"

}

},

"population":{

"type":"number"

}

  }

  }


}


Step2: Agent Teams (MyFirst Agent Teams)
-------------------------------------


//use Agent



//We will give output of one agent to another agent/LLM


Your job is to read below variable values and then present in a nice tabular format


{{$context.$nodes.CALL_COUNTRY_AGENT.$input.country}}

 {{$context.$nodes.CALL_COUNTRY_AGENT.$output.population}}

1 - Agent --> Agent Teams

Agent inside Agent Teams

Step1: Agent (Country Details Advisor Agent)

-------------------------------------


Your job is to find details of demography, population, date of independence on user input

{{$context.$agents.$self.$input.country}}



Step2: Agent Teams (MyFirst Agent Teams)
-------------------------------------

//use Agent



6 - Agent Teams (For loop & Send Email)

Agent Teams (For loop & Send Email) Payload {     "TestId": 300100200862573,     "TestnNumber": "BIQA_OTBI_SM2...