Skip to content

Action.ask

POST /{namespace}/actions/{action}/ask

Ask puts a Question to a Party, a Role, or a Worker and holds the Action `pending` with reason `awaitingInput`.

Noun
Action
Mode
do
Event
Action.asked

Ask puts a Question to a Party during an Action and holds it pending with reason awaitingInput until it is answered.

Inputs

InputTypeRequiredDescription
actionActionrequiredThe Action that needs an answer to go on.
toThingrequiredWho is asked: a Party, a Role, or a Worker.
texttextrequiredThe question, in one message.
choicesstring[]The answers offered.
schemajsonThe typed answer’s shape.
answerBydatetimeWhen the Action’s timeout rule applies.

Outputs

OutputTypeRequiredDescription
questionQuestionrequiredThe Question, posted in the record’s Thread.
actionActionrequiredThe Action, now pending with reason awaitingInput.

Effects

  • Emits Action.asked.
  • Two-way: it runs at once, in the try, send and do modes.
  • Pauses an Order’s delivery window and service level while the Customer is the one asked.
  • Renders as a Portal form, an email, a chat card, or an MCP elicitation, by where the asked party is.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Action.ask

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.