Configuring and Creating Apps

Prev Next

Configuring an App

An app is a self-contained screen (potentially with multiple pages) that reads from data you’ve chosen, displays it in interactive ways, and (optionally) lets people record notes or statuses back onto rows. Think of it as a very capable dashboard builder, not a full software platform. Knowing the boundaries up front will help you ask for things that can actually be built.

Here’s what apps can include

  • Filters, search boxes, tabs, and toggles
  • Sortable tables that page through large amounts of data
  • Summary tiles (KPIs), flag lists, status labels, and callouts
  • Charts: bar, line, area, stacked, and multi-axis charts, with custom titles, legends, and hover details
  • Pop-up panels for more detail on a selected item
  • Writeback abilities: reviewers can mark rows with a status, a date, a number, or a note (for example, “Reviewed / Not Reviewed”)
  • Downloads: users with permission can export table rows or a summary as a CSV, and charts can be saved as PNG images
  • Handoff to Compass Explorer: clicking a row or item can open Compass Explorer in a new tab with a pre-written question for the user to review and run. You can also set a default persona for the Explorer session for that app.

A few things to keep in mind

  • The app only sees what you tell it to use. Every app is given a specific list of data sources, and it can read those and nothing else.
  • Data is combined in the browser, not in the database, so the app can’t join two large tables on the fly. It works well when combining summary-level results (up to thousands of rows), but not so well when matching individual records across big tables. If your idea needs data from multiple tables linked together, it’s best to prepare that in advance as a single combined table or measure.

Here’s how to configure an existing app

  1. Open the app you want to edit and click Build.
  2. In the prompt window at the bottom, describe the change you’d like to make to the app.
  3. If the change is within the agent’s capabilities, it will make it and ask for your review (it may ask a few clarifying questions first).
  4. Note: if you need to add a new concept or data point to the app, it has to be part of an existing object that underlies the app. The agent will let you know if it can’t access the concept on any of the existing objects. If the concept isn’t on one of those objects, you have a few options:
    1. Add the concept to one of the existing objects. You’ll need to go this route if you want to join the concept with existing data so it shows up on an existing tile within the app.
      1. If the existing object is a standard Ursa Studio object, you can add the new column using the normal engineering process.
      2. If the existing object is a Custom Compass object, you can iterate with the object builder to add the column.
    2. Add a new object to support the new ask. You’ll typically only want to do this if the new concept is meant to live only in new visualizations or tables within the app, rather than being added into existing tiles.
      1. If a standard Ursa object already exists that contains all the columns you need, give the name of that object to the app agent.
      2. If you need to create a new object just for this purpose, open a new Explorer session using the App Builder persona and follow the steps below for creating a new app.
  5. Once you’re happy with the changes, click the Publish button so the changes are visible to end users.

Here’s how to create a new app

  1. Start a new Explorer session with the App Builder persona. (If you don’t see App Builder in the dropdown, head to the Personas tab within Explorer first and click the star beside the App Builder persona.)
  2. In the Explorer prompt window, describe the app you want to build in plain language, along with any features you’d like included (based on the list above). You can be as specific or as general as you’d like.
  3. Here’s a sample prompt: "I want to create an app about ED Utilization. It should have high-level trending information on the first page along with other helpful metrics about these visits. The second page should have a patient-level list of patients with ED visits sorted by # of ED visits descending. Clicking on a patient should open an overlay containing information on all the patient's ED visits as well as a Notes field where the user can add comments from their review. The user should have the ability to download the patient-level list as a CSV file, as well as export any visualizations as a PNG. The user should also be able to left-click on any data point to open a new Explorer session. The new Explorer session should have context about the data point the user was looking at and default to the persona "Analyst Assistant for Non-Technical Users"."
  4. The agent will review your prompt and ask clarifying questions, including whether you want to add specific features you may not have mentioned.
  5. Next, the agent will come back with a plan for creating the app, including the measures / objects it will use and whether they already exist or need to be created as custom Compass objects. It will also include a high-level description of the UI. Feel free to go back and forth with the agent to refine its plan until it meets your expectations.
  6. Once you’ve approved the plan, the agent will give you instructions for creating any new Compass objects that are needed.
  7. To create the object(s), go to Objects in the left-hand menu and click New Object.
  8. Fill in the Name, Table Name, and Description provided by the App Builder persona and click Create Object.
  9. In the prompt window that appears, enter some general text like “create an object as described below,” then paste in the SQL and field list / descriptions provided by the App Builder persona. The Object Builder agent will ask any clarifying questions and create the object.
  10. Repeat #7-9 for any additional objects.
  11. Go back to your session with the App Builder and tell it that the objects have been created. The agent will review the objects and let you know about any changes that need to be made. If changes are needed, go back to the Object Builder session for that object and ask the agent to make the change.
  12. Important note: the Object Builder creates any new objects (or edited versions of objects) in the Compass schema. You can build an app based on objects in the Compass schema, but in order to publish the app, the objects must be published in the Ursa schema. See the Object Builder training here for more info on that process.
  13. Once the new objects are approved, the agent will give you the UI instructions for the app builder agent. Select and copy those instructions to use in the actual app builder.
  14. Go to the App section of Compass (in the left menu bar) and click New App.
  15. Fill out the Name and Description of the app and click Create.
  16. Paste the UI instructions (from #13) into the prompt window and click Start Building.
  17. The agent will review the instructions, declare the objects to be used in the app (the SET_FOUNDATION tool call), and create the app (CREATE_COMPONENT). This step typically takes a few minutes.
  18. After the agent creates the initial version of the app, it will summarize what it did and ask for your feedback, possibly with some specific questions.
  19. Review the draft app by clicking the thumbnail to open it full-size in a new tab. Iterate with the agent as needed to make any changes.
  20. Once you’re happy with the initial version of the app, click Publish.
  21. Also click the Edit Metadata button for the app and add the users who should be able to use the app (as Viewers) or edit the app (as Editors). Please note that we recommend giving Editor permission only to technical users.

Here’s how to set up row-level security

  1. Apps support row-level security, which lets you restrict the data an individual user can access.
  2. To set it up for an app, go to Edit Metadata and, in the Row-Level Security dropdown, select Row-level security via direct filter. You’ll see a view that lists the app’s users, their access level, and the entities they have access to.
  3. Note: a user’s entity access is configured in the User Admin panel, and you need Admin-level access to edit it.
  4. Map the entities needed for these users to the appropriate columns in the various objects the app uses, then click Save.