curl --request POST \
--url https://api.trymaitai.ai/api/v1/agents/{agent_id}/routing/rules \
--header 'Content-Type: application/json' \
--header 'X-Maitai-Api-Key: <api-key>' \
--data '
{
"label": "Route billing questions",
"route": {
"type": "action",
"action_id": 12
},
"conditions": [
{
"target_type": "message",
"variable_path": "content",
"operator": "sem_match",
"value_text": "billing"
}
],
"enabled": true
}
'