Demos

Working Mindset agents, each one showing off a feature. Open one and try it.

Trip planner · Wayfarer Travel

The finale: a script, functions, widgets, page tools, situational awareness and a governed connection, all in one trip.

A script opens the chat#

Three suggested trips, then the script hands over to the agent.

demos/trip-planner/script/trip-planner-flow.json
"$suggestReplies": {
  "replies": [
    { "label": "Lisbon Tue–Thu, hotel and car", "value": "Lisbon Tue–Thu, hotel and car" },
    …
  ]
}
…
"onComplete": "freeform"

A function ranks the options#

Declarative steps the platform runs over sample stock, with no model call.

demos/trip-planner/functions/trip-planner-plan-trip.json
"id": "bestHotels",
"heading": "Rank hotels by rating",
"do": {
  "$sortBy": {
    …
    "by": "rating",
    "dir": "desc"

A page tool builds the itinerary#

The itinerary lives in the page. The agent adds to it through a tool.

src/demos/trip-planner/itinerary.ts
execute: (args) => {
  const v = validateAdd(args)
  if (!v.ok) return `Not added: ${v.error}`
  set(addItem(get(), v.item))
  …
},

A governed booking#

The calendar booking is a write, so it runs only under the workspace's approval rules. Each booked hour appears on the live demo calendar beside the chat.

demos/trip-planner/demo.json
"name": "book_slot",
…
"access": "write",
"governed": true