[
"autonomous agent",
{
"init": "{
$aa_to_test = "
Y5VOWMLWNOU7V677C6TB653PIXEZD7NR";
}",
"messages": {
"cases": [
{
"if": "{ trigger.data.c }",
"init": "{
// check
}",
"messages": [
{
"app": "data",
"payload": {
"account": "{"joint_account_1"}",
"address1": "{"
MYESSCFGDERS3YIEGNZDOG2BI5HKQHLU"}",
"address2": "{"
35IT3ZYKEPQSCXG2F7A7KWNRAD3SZXN4"}",
"address3": "{"
MPG4MHVYUAP3B5IQX44LTINTSUKYB6JA"}"
}
},
{
"app": "payment",
"payload": {
"asset": "{'base'}",
"outputs": [
{
"address": "{$aa_to_test}",
"amount": "{trigger.output[[asset=base]] - 1000}"
}
]
}
},
{
"app": "state",
"state": "{
}"
}
]
},
{
"if": "{ trigger.data.p }",
"init": "{
// check
}",
"messages": [
{
"app": "data",
"payload": {
"account": "{"joint_account_1"}",
"amount": "{"555"}",
"address": "{"
AGFB2ZNL4GEO2GEY4YSKNZX6U7XUGGPG"}"
}
},
{
"app": "payment",
"payload": {
"asset": "{'base'}",
"outputs": [
{
"address": "{$aa_to_test}",
"amount": "{trigger.output[[asset=base]] - 1000}"
}
]
}
},
{
"app": "state",
"state": "{
}"
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
}"
}
]
}
]
}
}
]