Email

Change an inbox

email_update_inbox · Changes data · Markdown

Changes an inbox's sender name, switches saving its attachments to the file store on or off, or changes how much it saves a day.

$0.001 a call

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

An example

Save every attachment that arrives at invoices@ in our files. In spring we get about 30 bills a day there.

Your agent callsemail_update_inbox$0.001 a call

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "inbox": "invoices@halverson-cycle-repair.useconecto.com",
  "save_attachments": true,
  "save_files_per_day": 50
}
What comes back
{
  "inbox": "invoices@halverson-cycle-repair.useconecto.com",
  "display_name": "Halverson Accounts",
  "opens_tickets": false,
  "save_attachments": true,
  "save_caps": {
    "files_per_day": 50,
    "mb_per_day": 250
  }
}

Use it when

An inbox's sender name changes, or the attachments it receives (bills, documents) should be filed.

What it does

Change an inbox's sender name, switch email-in on or off (save_attachments saves each attachment of mail received from now on to the file store, linked to its email), or raise or lower what email-in saves in 24 hours (save_files_per_day, save_mb_per_day). $0.001.

What comes back

The inbox, its sender name, opens_tickets, save_attachments and the daily caps on what it saves, as they now are. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
inboxRequiredstringUp to 254 characters.
display_namestringUp to 120 characters.
save_attachmentsbooleanEmail-in: save each attachment of mail received here to the file store, linked to its email (files.added tells you, with its text). The store's space counts; when it is full an attachment is skipped and the email says so. Anyone can write to an inbox, so it saves at most save_files_per_day files and save_mb_per_day MB in 24 hours (100 and 250 by default); past that the email still arrives with its attachments listed as not saved.
save_files_per_dayintegerEmail-in: the most attachments saved in 24 hours. Default 100. 1 to 1,000.
save_mb_per_dayintegerEmail-in: the most MB of attachments saved in 24 hours. Default 250. 1 to 2,500.

The call

Over MCP, call email_update_inbox on https://api.conecto.chat/mcp/email. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/email_update_inbox \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inbox":"invoices@halverson-cycle-repair.useconecto.com","save_attachments":true,"save_files_per_day":50}'

When it refuses

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

CodeWhenWhat to do
not_found404No active inbox of the business has that address.Call email_list_inboxes and use one of its addresses.
invalid_input400Nothing to change was given, or a daily cap is outside 1-1,000 files or 1-2,500 MB.Send at least one field, within its limits.

Give this to your agent.

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