Create a prompt
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
- Navigate to All > Now Assist Skill Kit > Home.
- Select the skill that you want to create a prompt for.
-
Select the edit icon (
) and name the prompt.
- Write the prompt.
-
Select Skill Inputs.
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. - Select Add skill input.
-
Select Insert inputs.
The input options change depending on what kind of data type you choose.
-
Search for the inputs that you want to use for the prompt.
For example, you can search for the incident short description or priority.
-
Add a tool.
-
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
- Select Add.
- 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.