{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":24183,"path":"intelligent-experiences/now-assist-skill-kit/create-prompt-template.md","title":"Create a prompt","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a prompt\n\nAfter you create a custom skill, create a prompt. The prompt defines the instructions that the skill sends to the LLM and the skill inputs that it uses.\n\n## Before you begin\n\nRole required: sn\\_skill\\_builder.admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **AI Skill Kit** &gt; **Home**.\n\n2.  Select the skill that you want to create a prompt for.\n\n3.  Select the edit icon \\[Omitted image \"icon-edit-pencil.png\"\\] Alt text: and name the prompt.\n\n4.  Write the prompt.\n\n5.  Select **Skill Inputs**.\n\n    \\[Omitted image \"nask-add-skill-input.png\"\\] Alt text: Add skill input modal in AI Skill Kit.\n\n<table id=\"table_vmq_tgh_lcc\"><thead><tr><th>\n\nInput type\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nDatatype\n\n</td><td>\n\n-   Record\n-   String\n-   Numeric\n-   Boolean\n-   Simple Array\n-   JSON Object\n-   JSON Array\n\n\n</td></tr><tr><td>\n\nName\n\n</td><td>\n\nName of the input.\n\n</td></tr><tr><td>\n\nDescription\n\n</td><td>\n\nDescription of the input.\n\n</td></tr><tr><td>\n\nMandatory\n\n</td><td>\n\nOption to require a value for the input when the skill runs.\n\n</td></tr><tr><td>\n\nTruncate\n\n</td><td>\n\nOption to shorten the prompt context to fit the model context length when the prompt is too large.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nFor records\n\n</td></tr><tr><td>\n\nTable name\n\n</td><td>\n\nName of the table that contains the test record.\n\n</td></tr><tr><td>\n\nChoose test record\n\n</td><td>\n\nRecord used to test the prompt.\n\n</td></tr><tr><td class=\"sub-head\" colspan=\"2\">\n\nFor String, Numeric, Boolean, Simple Array, JSON Object, and JSON Array\n\n</td></tr><tr><td>\n\nTest values\n\n</td><td>\n\nValues used to test the prompt.\n\n</td></tr></tbody>\n</table>6.  Select **Add skill input**.\n\n7.  Select **Insert inputs**.\n\n    The input options change depending on the data type that you select.\n\n8.  Search for the inputs that you want to use for the prompt.\n\n    For example, you can search for the incident short description or priority.\n\n9.  If you're not ready to finalize the prompt and publish the skill, select **Save** or **Save as**.\n\n    **Note:** Skills can have multiple prompts. Usage conditions determine which prompt is executed. If no conditions are met, the default prompt is executed. To configure prompt usage conditions, see [Configure a skill prompt](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/now-assist-skill-kit/configure-skill-prompt.md).\n\n\n## What to do next\n\nAfter you create a prompt, test it. To learn more about testing your prompt, see [Test a prompt](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/now-assist-skill-kit/test-prompt-template.md).\n\n-   **[Add a tool](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/now-assist-skill-kit/add-a-tool.md)**  \nAdd and manage tools visually in the Tools editor, including decision branching, to execute different tools for your skill. Adding decision branches between tools enables you to define the conditions that must be met for a tool to run. If no conditions are met, the default branch's step is executed.\n\n**Parent Topic:**[Using AI Skill Kit](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/now-assist-skill-kit/using-now-assist-skill-kit.md)\n\n**Related topics**  \n\n\n[Create a skill]()\n\n[Use prompt assistance]()\n\n[Test a prompt]()\n\n[Evaluate a prompt]()\n\n[Finalize and publish a skill]()\n\n[Activate a skill]()\n\n[Call a custom skill from a script]()\n\n"}}