Create a prompt

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • After you create a custom skill, create a prompt. Creating a prompt enables you to choose what skill inputs to use, as well as the type of tool.

    Before you begin

    Role required: sn_skill_builder.admin

    Procedure

    1. Navigate to All > Now Assist Skill Kit > Home.
    2. Select the skill that you want to create a prompt for.
    3. Select the edit icon (Now Assist Skill Kit Edit icon.) and name the prompt.
    4. Write the prompt.
    5. Select Skill Inputs.
      Add skill input modal in Now Assist Skill Kit.
      Table 1. Skill input options
      Input type Description
      Datatype
      • Record
      • String
      • Numeric
      • Boolean
      • Simple Array
      • JSON Object
      • JSON Array
      Name A name for the input.
      Description A description for the input.
      Mandatory The Mandatory option means that you must supply a value for the input when you run the skill.
      Truncate The Truncate option means that, if your prompt is too big, the prompt context will be shortened to fit the model context length.
      For Records
      Table name A name for the table.
      Choose test record The record that is used to test the prompt.
      For Strings, Numeric. Boolean, Simple Array, JSON Object, JSON Array
      Test values The values that are used to test the prompt.
    6. Select Add skill input.
    7. Select Insert inputs.
      The input options change depending on what kind of data type you choose.
    8. Search for the inputs that you want to use for the prompt.
      For example, you can search for the incident short description or priority.
    9. Add a tool.
      Add tool modal in Now Assist Skill Kit.
    10. On the form, fill in the fields.
      Table 2. Tools form
      Field Description
      Type Flow Action.
      Retriever.
      Subflow.
      Script.
      Name The name of the tool.
      Conditions
      • Always
      • Script
    11. Select Add.
    12. If you're not ready to finalize the prompt and publish the skill, select Save or Save as.

    What to do next

    After you have created a prompt, you must test it. To learn more about testing your prompt, see Test a prompt.