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
| Input | Type | Required | Description |
|---|---|---|---|
action | Action | required | The Action waiting on the Question. |
question | Question | required | The Question answered. |
payload | json | required | The answer, matching the Question’s choices or schema. |
Outputs
| Output | Type | Required | Description |
|---|---|---|---|
action | Action | required | The resumed Action. |
Effects
- Emits
Action.answered. - Two-way: it runs at once, in the
try,sendanddomodes. - 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
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | Action.answer |
When it waits
| Gate | Default |
|---|---|
| Decision class | Low: two-way, nothing at stake |
| Delay window | None: it runs once review passes. |
| Limit | The call Limit of the Permission it runs under. |
| Over the Limit | It 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. |