identity.app.set-end-user-agent ​
Write a single scalar AgentConfig pointer on one Identity App; two products need two Identity Apps
Point an identity app at the org-owned AgentConfig that backs its end-user agent.
This writes a single scalar pointer. Overwrite replaces; there is no list/map/product key. Two products (e.g. App vs Legacy) need two Identity Apps and two identity.app.set-end-user-agent calls onto distinct org-owned AgentConfigs — do not share one app. Callers / UIs must not treat AgentConfig UUID as an end-user selector; agents.end-user.ask refuses caller-supplied agent_config_uuid.
Inputs:
- actor, organization_uuid (required)
- identity_app_uuid: the app (required)
- end_user_agent_config_uuid: uuid of an AgentConfig owned by this org, or null to clear (turns the end-user agent surface off). Omitting the field is rejected — pass null explicitly to unset.
Outputs: identity_app_uuid, end_user_agent_config_uuid, previous_end_user_agent_config_uuid, enabled (whether an agent is now set)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
organization_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
end_user_agent_config_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
identity_app_uuid | uuid | Yes | — | — |
end_user_agent_config_uuid | uuid | No | — | — |
previous_end_user_agent_config_uuid | uuid | No | — | — |
enabled | boolean | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
reason | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "identity.app.set-end-user-agent",
"initial_data": {
"actor": "value",
"organization_uuid": "value",
"identity_app_uuid": "value"
}
}