WebRobot

App Studio guide

Sample app 4 / 5 · Group trips for young adults

Gruppi in Partenza

What was asked

A catalogue of trips and departures, an assistant that suggests a trip to visitors, a booking the trip’s coordinator approves, the profiles of the other travellers in the group, and reminders before departure: documents 45 days before, the balance 30 days before, luggage a week before.

How the manifest models it

Who

Visitors browse and chat without an account (40 messages a day per address). Travellers sign up. The coordinator role is derived from the departures that name them.

Data

Trips and departures are a shared catalogue. Profiles (with a file field for the travel document) and bookings belong to the traveller, for three years; the coordinator reaches and edits the bookings of their departures. Group profiles are visible to the group’s members.

Events

A new booking starts the operations agent; when the coordinator approves it the agent runs again, and when it is confirmed the traveller gets an email. Three more triggers fire on a date: 45, 30 and 7 days before departure_date, only for confirmed bookings, each emailing the traveller with a link to the right page.

Views

Pages for the trips, the departures table, the assistant, the forms for profile and booking, the traveller’s bookings, the group cards, the coordinator’s approval form and table, and the admin’s table with CSV export.

Money

Deposit and balance as two credit packs.

From the manifest: A reminder fired by a date in a record, and the derived coordinator role

An excerpt: 31 of the manifest’s 795 lines, copied as they are.

spec:
  triggers:
  - key: remind_documents
    'on':
      date:
        collection: bookings
        field: departure_date
        offsetDays: -45
        hour: 8
      where:
        status: confirmed
    notify:
      to:
      - record.traveler_email
      subject:
        it: Controlla documenti e visti per {record.trip_title}
        en: Check documents and visas for {record.trip_title}
      body:
        it: 'Mancano 45 giorni alla partenza: verifica che il documento di viaggio sia valido e, se serve,
          richiedi il visto. Carica il documento nel tuo profilo.'
        en: '45 days to departure: check your travel document is valid and apply for a visa if needed.
          Upload it in your profile.'
      link: profile
  auth:
    roles:
    - key: coordinator
      label:
        it: Coordinatore
        en: Coordinator
      assignedBy: derived
      from: collection:departures.coordinator_email

The whole manifest · Gruppi in PartenzaDownload
Loading…

The result

The home page with the assistant, open to visitors.
The home page with the assistant, open to visitors.
The departures, from the shared catalogue.
The departures, from the shared catalogue.
The booking form: it saves a record, and the record starts the agent.
The booking form: it saves a record, and the record starts the agent.
The other travellers of the group.
The other travellers of the group.

What it cannot express yet

Four needs stay in extensions: deposit and balance computed from each trip’s price (the packs have fixed amounts), a real-time group chat, an offline itinerary on the phone, and the check of the minimum number of participants with a waiting list.

What the manifest cannot express goes into spec.extensions, in words, so nothing is lost silently. A sample generated by the co-pilot; the records in the screenshots are made up.

← RadarAgevolazioni← All five appsUfficio Acquisti →