Decision

Compare actions and get a recommendation

Run simulations for 2–10 named actions and return them ranked by expected value. The top-ranked action is returned as recommended_action.

post/v1/recommend

Request

  • Base URL: https://api.algenta.ai
  • URL: https://api.algenta.ai/v1/recommend
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

runsinteger
seedinteger nullable

Example request

{
  "actions": [
    {
      "name": "launch_product_a",
      "request": {
        "mode": "auto",
        "scenario": {
          "objective": "maximize_net_value",
          "variables": {
            "revenue": {
              "high": 200000,
              "low": 80000
            }
          }
        }
      }
    },
    {
      "name": "launch_product_b",
      "request": {
        "mode": "auto",
        "scenario": {
          "objective": "maximize_net_value",
          "variables": {
            "revenue": {
              "high": 300000,
              "low": 50000
            }
          }
        }
      }
    }
  ],
  "runs": 10000
}

Response

Successful Response

recommended_actionstring required
confidencenumber required
rationalestring required
total_actionsinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.