HR

Attach, change or remove a document

hr_save_document · Changes data · Markdown

Keeps a file from the store on a person's record (a contract, an ID, a certificate), or changes or removes it.

$0.01 a call

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

An example

File Felix's signed employment contract on his record.

Your agent callshr_save_document$0.01 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
{
  "person": "felix.wagner@hansenvoss.example",
  "file_id": "7d9b1f3a-5c2e-4b6d-8f0a-1c3e5a7b9d2f",
  "category": "contract",
  "title": "Employment contract"
}
What comes back
{
  "document": {
    "document_id": 4101,
    "person": {
      "person_id": 4105,
      "name": "Felix Wagner"
    },
    "category": "contract",
    "title": "Employment contract",
    "expires_on": null,
    "expired": false,
    "file": {
      "file_id": "7d9b1f3a-5c2e-4b6d-8f0a-1c3e5a7b9d2f",
      "name": "felix-wagner-contract.pdf",
      "content_type": "application/pdf",
      "size": "1.1 KB",
      "size_bytes": 1147,
      "sha256": "24cfafaca922f96f27862a78624077499c6933a1caf04ba986e83cc228a836c3",
      "created_at": "2026-10-14T08:00:00+00:00",
      "download_url": "https://cncto.co/d/7d9b1f3a-5c2e-4b6d-8f0a-1c3e5a7b9d2f?t=eyJmIjoiMzA2NTg0ZDQtYWZlNi00ZTBkLTg0NTgtMWNhZDgxNjZjNmI1IiwiZXhwIjoxNzkyNDM5OTA0fQ:1xIX1U:g0cZ2DqF_RAcQIwuNqLjEL3AezYbFKXOxzuBYsT0AKw",
      "link_expires_in_hours": 24
    }
  },
  "attached": true
}

Use it when

A contract, ID or certificate belongs on someone's record, with its expiry if it has one.

What it does

Keep a file from the file store on a person's record: give person and file_id, a category (contract, id, certificate, review, other), a title (default: the file's name) and expires_on for things like work permits and certificates (the daily digest mentions them 30 days ahead). With document_id, change its category, title or expiry, or take it off the record with remove: true. While attached, the file can't be deleted; removed, it stays in the store.

What comes back

document: its document_id, person, category, title, expiry and file with a download link; and attached. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
personinteger or stringThe person_id, or their work email. 1 to 254 characters, at least 1.
file_idstringA file_id from the file store. Exactly 36 characters.
document_idintegerAt least 1.
categorystringOne of: contract,id,certificate,review,other.
titlestringUp to 200 characters.
expires_onstring or nullYYYY-MM-DD, or null to clear it. Matches ^\d{4}-\d{2}-\d{2}$.
removebooleanDefault: false.

The call

Over MCP, call hr_save_document on https://api.conecto.chat/mcp/hr. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/hr_save_document \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person":"felix.wagner@hansenvoss.example","file_id":"7d9b1f3a-5c2e-4b6d-8f0a-1c3e5a7b9d2f","category":"contract","title":"Employment contract"}'

When it refuses

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

CodeWhenWhat to do
not_found404No person of the business has that person_id or work email.Find them with hr_list_people.
not_found404The document or file does not exist.Upload the file with files_upload first.
invalid_input400Neither person with file_id nor document_id was given.Attach with person and file_id, or change one with document_id.
already_attached409The file is on the person's record already.Change it by document_id.

Give this to your agent.

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