Actions Open to Agents

Which of HotCRM's actions an agent may run over MCP, how it asks before an irreversible one, and what an agent does without an action.

Actions Open to Agents

An action is a button a person clicks: Convert Lead, Submit for Reimbursement, Mark as Paid. An action is open to agents only when its author says so, one by one. Today nine of HotCRM's actions are:

ActionOnWhat it doesAsks first?
Convert LeadA leadTurns a qualified lead into an account, a contact and an opportunityYes — it cannot be undone
Schedule Follow-upA leadFiles the next follow-up task on the lead, for its ownerNo — it only adds a task
Submit for ReimbursementThe person's own expensesPuts them on one expense report per project and sends each report for approvalYes — it sends to an approver
Submit for a TripThe person's own expensesThe same, against one of their approved travel requestsYes — it sends to an approver
SubmitThe person's own Draft expense reportSends it for approval againYes — it sends to an approver
Back to DraftThe person's own Rejected expense reportMoves it and its expenses back to Draft to be correctedNo — it is undone by submitting again
SubmitThe person's own Draft travel requestSends it to their manager for approvalYes — it sends to an approver
Cancel TripThe person's own Approved travel requestThe trip is called offYes — it cannot be undone
CloseThe person's own Approved travel requestThe trip is over; the request takes no new reportYes — it cannot be undone

Mark as Paid is not open to agents: paid is final, so that click stays a person's (finance's). The two expense skills, Expense Filing and Expense Check, are what teaches an agent to use these (see Skills).

An agent finds them with list_actions and runs them with run_action, as the person it connects as (see Connect Your Agent). The action's own checks run as they do for the button: Convert Lead is refused on a lead that is already converted, unqualified, or held by a conversion approval.

Asking before an irreversible action

Every action above marked Yes needs confirmation. Measured on ObjectStack 18.5.0 with Convert Lead, and again with Submit for Reimbursement: an agent's first run_action call does nothing and answers ACTION_CONFIRMATION_REQUIRED (status: 428), telling the agent to confirm with the person and call again with "confirm": true. Only that second call runs the action. An agent that runs unattended therefore cannot convert a lead, or send an expense to an approver, by accident.

Beside them: the platform's actions

list_actions also lists actions the platform provides, not HotCRM — among them Approve, Reject, Recall and Resubmit on an approval request. An agent connected as an approver can decide that person's approvals, as the person could from their Inbox. HotCRM's Expense Check skill tells its agent never to use them: it reports what it found, and the approver decides.

Without an action

Everything else an agent does through the record tools, under the same rules as a form:

  • Reading any record the person may read, with query_records and get_record.
  • Writing a field the person may write, with update_record. The object's validations, status rules and hooks run as for a save in the app, so a write a person would be refused is refused for the agent too.
  • Recording findings. An expense, an expense report and a travel request each carry Review Notes, a field where an agent (or a rule) writes what it found for the approver to read — a missing receipt, a hotel above a standard. HotCRM does not check receipts or standards itself; that is the agent's job. Write the notes on each expense before it is sent: a sent expense locks, and a report under approval is locked as a whole, so its own Review Notes can be written only while the report is back in Draft (measured on 18.5.0: RECORD_LOCKED, even for the approver).

Actions not on the list above — Mark as Paid, Close Case and the rest — stay buttons for people until their authors open them to agents.

On this page