Account

Create or change a team

account_save_team · Changes data · Markdown

Makes or changes a team: the areas its keys may use, a monthly budget that refuses or warns, and its ERP cost center code.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Set up a Support team for the help desk and chat only, with a $200 monthly budget, and warn me at 80%.

Your agent callsaccount_save_team$0.001 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "name": "Support",
  "areas": [
    "helpdesk",
    "chat"
  ],
  "monthly_budget_usd": 200,
  "budget": "hard",
  "alert_percent": 80,
  "erp_code": "KST-4100"
}
What comes back
{
  "team": {
    "team_id": 4102,
    "name": "Support",
    "company_wide": false,
    "areas": [
      "chat",
      "helpdesk"
    ],
    "read_only": false,
    "drafts_only": false,
    "sees_sensitive": false,
    "idp_groups": null,
    "mailboxes": null,
    "monthly_budget_usd": "$200.00",
    "budget_usd": "$200.00",
    "budget_period": "month",
    "budget_ends_on": null,
    "raise": null,
    "budget": "hard",
    "alert_percent": 80,
    "spent_this_period_usd": "$0.00",
    "spent_this_month_usd": "$0.00",
    "erp_code": "KST-4100",
    "paused": false,
    "paused_at": null,
    "keys": [
      {
        "key_id": 4102,
        "bot_name": "Support bot"
      }
    ],
    "people": []
  },
  "created": false
}

Use it when

A department, location or project group should have its own agents, limited to its own areas and spending against a budget of its own.

What it does

A department, location or project group of the account, like Support, Finance or the Hamburg shop. Its keys (POST /v1/keys with "team") can only work in its areas, only read when read_only is on, and spend against its budget (monthly_budget_usd per budget_period: a month, a fiscal quarter or year, or a project total): a hard budget refuses the call that would pass it, a soft one only warns. At alert_percent you get the event account.budget_alert and the owner an email, once a period. erp_code is the team's cost center in the company's ERP, for statements. drafts_only makes every write of its keys wait for one of its managers (or the owner), for a new bot that should only draft. mailboxes are the Microsoft 365 or Google mailboxes its keys may act as. You may make a team and narrow one; widening its areas, letting it write, ending drafts only, switching a hard budget to soft, and raising or removing a budget are the owner's, on their account page, when the account has an owner email. The company-wide team holds every key no other team does and is never limited to areas. $0.001.

What comes back

team: its id, name, areas, whether it only reads, monthly budget (hard or soft), alert percent, this month's spend, ERP code, whether it is paused, and its keys; created. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
nameRequiredstring1 to 80 characters.
new_namestringRenames the team; its keys, spend and budget stay with it. 1 to 80 characters.
areasarray or nullThe areas its keys may work in (account tools always); null for every area. Up to 50 items.
read_onlyboolean
monthly_budget_usdnumber or nullnull counts the spend without a cap. 0 to 1,000,000.
budgetstringhard refuses calls past the budget; soft only warns. One of: hard,soft.
alert_percentinteger1 to 100.
erp_codestring or nullUp to 40 characters.
drafts_onlybooleanEvery write of its keys waits for a person.
mailboxesarray or nullThe Microsoft 365 or Google mailboxes its keys may act as; null for every mailbox the connection lists. Up to 20 items.
budget_periodstringWhat the budget is for: a month, a quarter or a year of the account's fiscal calendar, or a project total until budget_ends_on. One of: month,quarter,year,project.
budget_ends_onstring or nullThe last day of a project budget, like 2026-12-31.
sees_sensitivebooleanfalse hides suppliers' bank details and HR notes and contracts from its keys; only the owner turns it on.

The call

Over MCP, call account_save_team on https://api.conecto.chat/mcp/account. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/account_save_team \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Support","areas":["helpdesk","chat"],"monthly_budget_usd":200,"budget":"hard","alert_percent":80,"erp_code":"KST-4100"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
owner_required403The team would widen, start writing, or get a softer, higher or no budget, which is the owner's when the account has an owner email.Ask the owner to change it on their account page.
name_taken409Another team already has the new name.Pick another name.
invalid_input400An area doesn't exist, or the company-wide team was given areas.Use names from GET /v1/areas; the company-wide team always works in every area.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md