agents.end-user.ask
Ask the app's agent a question. Runs a real agent session under the calling end-user's own authority: its tools are exactly the compositions this app exposed to end-users, every tool call is re-authorized, and the answer returns in the terminal state.
Answer an end-user's question with an agent bounded by their app's exposed compositions.
Overview
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-agents |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
question | string | Yes | — | — |
request_id | string | No | — | — |
conversation_uuid | string | No | — | Work the continuation grant is scoped to; defaults to identity_app_uuid |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
answer | string | No | — | — |
session_uuid | string | No | — | — |
question | string | No | — | — |
launch_workflow_id | string | No | — | — |
wait_phase | string | No | — | — |
launch_deadline_epoch | integer | No | — | — |
answer_deadline_epoch | integer | No | — | — |
wait_poll_count | integer | No | — | — |
request_id | string | No | — | — |
conversation_uuid | string | No | — | — |
continuation_grant_uuid | string | No | — | — |
continuation_issue_workflow_id | string | No | — | — |
continuation_redeem_workflow_id | string | No | — | — |
continuation_token | string | No | — | — |
continuation_redeemed | boolean | No | — | — |
failure_reason | string | No | — | — |
failed_at | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | integer | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
organization_uuid | json | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
waiting | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | execute | waiting | — |
waiting | poll | waiting | — |
waiting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "agents.end-user.ask",
"initial_data": {
"organization_uuid": "value",
"question": "value"
}
}