Skip to content

Action.answer

POST /{namespace}/actions/{action}/answer

Answer gives the reply to an Action’s open Question, through any Interface, and the Action resumes.

Noun
Action
Mode
do
Event
Action.answered

Answer replies to an open Question on an Action, from the asked Party or an Agent under its Mandate, and resumes the Action.

Inputs

InputTypeRequiredDescription
actionActionrequiredThe Action waiting on the Question.
questionQuestionrequiredThe Question answered.
payloadjsonrequiredThe answer, matching the Question’s choices or schema.

Outputs

OutputTypeRequiredDescription
actionActionrequiredThe resumed Action.

Effects

  • Emits Action.answered.
  • Two-way: it runs at once, in the try, send and do modes.
  • Records who answered and through which Interface; an agent answering for a Human records both, under a Mandate.
  • A free-text reply in the record’s Thread becomes an answer once an agent maps it to the schema.

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.answer

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.