How to create an Assistant

Learn how to use the Assistants Editor to create and customize interactive Assistants.

Creating Assistants is simple! To get started, you just type your steps and tasks as you would with a word document. This page will describe how you can add interactive elements and customization to your Assistant including:

Accessing the Assistants Editor

To create a new Assistant:

  1. Click on Assistants on the left hand applications panel
  2. Click on +
  3. Name your Assistant
  4. Select the Lab to associate the Assistant
  5. Indicate whether you want the Assistant in "Compliance Mode"
  6. Press Continue

Currently, you can only assign Assistants to a single Lab. So, if an Assistant applies to multiple Labs, you must create a new Assistant and associate it with the other Lab. You can select all the text and use keyboard shortcuts to copy and paste it!  

You are now in the Assistants Editor application. 

Anatomy of an Assistant Editor

ASSISTANT-EDITOR-ANATOMY

Upon entering the Editor, you will see the following:

  1. Editor panel where you create your steps and tasks in the Assistants
  2. Lab Scene where your Digital Twin is shown
    • Please note that you cannot edit the Digital Twin here. This can only be done in the Labs application. Learn how here
  3. Materials, Parameters, and Outputs open a table where you define the materials, parameters, and outputs used in your Assistant. Learn more about them here
  4. Preview button where you can preview your Assistant in the player form

Editor Panel Features

The Editor Panel includes:

  • Camera Preview Toggle: This turns the camera preview on and off for each step/task. This is turned off by default. 
  • Assistant Step Field: Open text field to write the step
  • Assistant Task Field: Open text field to write tasks for each step
  • Step/Task Toolbar: Toolbar with critical functions such as duplicate, move ordering, delete, and add interactive features
  • Camera Button: This sets the camera view for that specific step or task

Writing and formatting steps and tasks

Assistants are organized across pages. Each page has one step, which is the header for the page, and any number of tasks required to complete the step.

Typically, an Assistant Step or Page is by instrument, but it can be organized however you like! 

How do I reference something in my Digital Twin?

equipment_ref

There are three ways to link text in your task/step with a model in the Digital Twin:

  • Option 1: Type "/" and start typing the name of the model
    • This will pull up a list of assets in the Digital Twin with that name, and you can select your desired item from the list.
  • Option 2: Hold "Shift" and mouse-click the model in the Digital Twin
  • Option 3: Highlight the text you want to link to the Digital Twin, click the box icon in the formatting toolbar, and click on the model in the Digital Twin.

How do I reference a Material or Parameter?

material-reference

After you've added your parameters and materials to the table, you can start typing "/" and its name, then select it from the dropdown list.

For more information on creating a material or parameter, visit this page

How do I format my text?

formatting-toolbar_V1

When you highlight text, a formatting toolbar will appear with options to:

  • Bold
  • Italicize
  • Underline
  • Hyperlink
  • Color
  • Link to a Digital Twin model

You can also use keyboard shortcuts to bold, italicize, and underline text! 

Assistant Step/Task Toolbar

assistant-task-step-toolbar

The Step/Task Toolbar appears when you have a step/task selected. The toolbar includes functions to help you:

  • Duplicate a task or step
  • Move the order of a task or step up or down
  • Delete a task or step
  • Add interactive features

How do I add media like photos and videos?

add-media

Supported file formats include: png, jpeg (jpg), gif, mp4, webm


There are a few different ways to add references to photos + videos: 

  1. Copy and paste an image directly into the step/task
  2. Drag and drop an image/video into the step/task
  3. Copy/paste or type a URL - it will automatically hyperlink once you hit return
  4. Upload media:
    1. Click the + button on the step/task toolbar, select "Upload Media" and select the image/video from your files.
  5. Add media link (this is for publicly hosted media on GitHub, AWS, or Imgur):
    1. Click the + button on the step/task toolbar, select "Add Media Link," and copy and paste the image URL.

How do I add callouts?

add-callout

  1. Click the + button on the step/task toolbar, select "Add Callout"
    1. You can also use the keyboard shortcut Ctrl/Cmd + + c
  2. Type your message into the yellow box

How do I add user prompts to collect information?

  1. Click the + button on the step/task toolbar, select "Add User Prompt"
  2. Select the User Prompt type:
    1. Text 
    2. Number
    3. Boolean
    4. Barcodes
    5. Equipment
    6. File
  3. Label the prompt and associate it with a Material or an Output, if desired.
    1. If you associate it with an output, ensure the output type and the user prompt type match. 
      1. For files, the type must be string. 

How do I add a timer?

add_timer

  1. Click the + button on the step/task toolbar, select "Add Timer"
    1. You can also use the keyboard shortcut Ctrl/Cmd + + 0
  2. Label the timer, if desired, and indicate the number of minutes and/or seconds

How do I add a conditional?

add_conditional

This allows you to hide a task if a parameter is less than, equal to, or greater than a value.
  1. Click the + button on the step/task toolbar, select "Add Condition"
    1. You can also use the keyboard shortcut Ctrl/Cmd + + i
  2. Select the corresponding parameter and logic to follow for hiding that specific task

Adding camera angles 

Every step and task can have a set camera view to position the user to a specific angle of the Digital Twin.  

Camera_Angle

To set the view:

  1. Navigate to the desired camera angle in the right-hand Lab View
  2. Click on the camera icon of the task or step to save
  3. To update the view, navigate to the new camera angle and click on the camera icon again 

To preview the camera views, you can either:

  1. Toggle on Camera Preview at the top and click on each step and task to see the specific view
  2. Hit Preview in the top right corner to open the entire Assistant in the Player 

Turning on Compliance Mode

Compliance mode enforces strict rules for completing the Assistant, including:

  • All boxes must be checked
  • Steps must be completed in the order they are presented in
  • All input fields are required to be completed
  • "Mark Complete" is no longer an option for the Assistant

You can turn compliance mode on by checking the "Compliance Mode" request when you are creating a new Assistant.

For an existing Assistant, go to the Assistants section and click on the Assistant. This will open up a pane. Then, check the box for "Compliance Mode" to turn it on.

 

Previewing your Assistant

Once you are all done and ready to preview your Assistant in the player, click the "Preview" button in the top right-hand corner.

This preview mode is a simulation of the Assistant. Values dependent upon parameters may not appear since the parameter values still need to be set. These values would be set during a real job. You must connect the Assistant to a Workflow with parameters to see values. 

Next Steps

Now that you've created your Assistant, it is time to schedule it! You can learn about the different ways Assistants can be scheduled here

Or, build your first Assistant with an exercise and tutorial here