Skip to content
Latch

Component

HandoffCard

Name who is handling the request, and log a wrong handoff.

“Handled by” with a way to change it. Choosing someone else is recorded as a misroute.

Handled by

Travel

Flights, rooms, and the group hold.

Do

  • Name the handler in plain language.
  • Let the person correct a wrong handoff.
  • Write the correction down as a misroute.

Don't

  • Switch agents with no trace.
  • Ask the person to restate the goal.
  • Hide the correction behind a settings page.

Props

PropTypeDescription
handledByHandlerWho is handling it now.
originalHandlerWho it was first given to. Used for the misroute log.
alternativesHandler[]Other handlers the person can choose.
onReroute(next, log) => voidFires with from and to. Same name means they kept the original.

A2UI message

v0.9.1 envelope. catalogId is latch://catalog/v1. The preview under the message is rendered by the adapter, not hand-built.

JSON

[
  {
    "version": "v0.9.1",
    "createSurface": {
      "surfaceId": "handler",
      "catalogId": "latch://catalog/v1"
    }
  },
  {
    "version": "v0.9.1",
    "updateComponents": {
      "surfaceId": "handler",
      "components": [
        {
          "id": "root",
          "component": "HandoffCard",
          "handledBy": {
            "id": "travel",
            "name": "Travel",
            "detail": "Flights, rooms, and the group hold."
          },
          "original": {
            "id": "travel",
            "name": "Travel",
            "detail": "Flights, rooms, and the group hold."
          },
          "alternatives": [
            {
              "id": "events",
              "name": "Events",
              "detail": "Venue, agenda, and the day-of plan."
            }
          ],
          "state": "idle",
          "action": {
            "event": {
              "name": "reroute"
            }
          }
        }
      ]
    }
  }
]

Handled by

Travel

Flights, rooms, and the group hold.