---
sourceDocument: Australia Enable AI
sourceDocumentLink: https://www.servicenow.com/docs/r/intelligent-experiences

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Writing instructions for large language models

# General guidelines for writing instructions for generative AI large language models (LLMs) {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 7 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of General guidelines for writing instructions for generative AI large language models (LLMs)

When using Now Assist products and skills that leverage generative AI large language models (LLMs), crafting effective instructions is crucial.
Unlike keyword searches, instructions for LLMs must clearly direct the model to perform specific tasks.
This guidance helps ServiceNow customers maximize the accuracy and relevance of AI-generated responses by providing clear, detailed, and context-rich prompts.
Show full answer Show less  

## Key Features

* **Instruction Structure:** Effective LLM instructions typically include four parts:
  * **Goal:** Define the desired output (e.g., a list, summary, or new content).
  * **Context:** Explain why the information is needed and who it involves.
  * **Expectations:** Specify tone, style, or format preferences (e.g., simple language, bulleted lists).
  * **Source:** Indicate trusted information sources the LLM should reference (e.g., Teams chats, knowledge articles, incident records).
* **Instruction Writing Tips:** Use clear action verbs, simple sentences, and avoid jargon or pronouns to prevent ambiguity or misinterpretation by the model.
* **Task-Specific Instructions:** Tailor instructions depending on the task type---such as simple search, data gathering, conversational chat, content creation, or workflow execution---to guide the LLM effectively.
* **Providing Context:** Include definitions or explanations for terms that could be ambiguous, and consider the audience and user roles (admins, builders, agents, requesters) to ensure instructions are relevant.
* **Chain-of-Thought Instructions:** Detailed, step-by-step reasoning instructions improve accuracy, especially for complex problem-solving tasks.
* **Tone and Formatting Control:** Specify desired tone (professional, friendly) and output format (e.g., bulleted lists) to enhance the usability of LLM responses.
* **Data Source Configuration:** Admins must configure access to various content sources on the ServiceNow instance so that AI skills and agents can retrieve relevant data for generating accurate answers.
* **Iterative Improvement:** Continually test and refine instructions as both user needs and LLM capabilities evolve to achieve optimal results.

## Key Outcomes

* ServiceNow users can create precise and actionable instructions that enable generative AI to deliver relevant, context-aware responses tailored to specific business needs.
* By following structured guidelines, customers reduce ambiguity and improve the quality and consistency of AI-generated content and assistance.
* Admins and builders can efficiently configure AI skills and agents with appropriate data sources, ensuring that AI tools leverage up-to-date and pertinent organizational information.
* Users benefit from customizable tones and formats in AI outputs, making interactions with Now Assist products more natural and aligned with organizational communication standards.  
When using Now Assist products and skills, you may have the option to give specific instructions or other guidance to the LLM. Writing generative AI instructions is different from conducting a keyword search. Use the following
general guidelines when crafting your instructions.
Writing instructions for generative AI is very different from using search keywords. Keywords are the words that you might expect to appear in your results. For example, if you search for "gray bobtail cats," then you can reasonably
expect your search results to return with topics or media that is about gray cats, bobtail cats, or even just cats in general. But with generative AI, you are asking the LLM to perform a task for you. The phrase "gray bobtail cats" does
not include a verb to tell the LLM what to do. What about these gray cats? Should it locate all there is to know about them? Should it find gray bobtail cats to adopt? Should it create a picture of a gray bobtail cat? Should it be a
realistic picture, or more of a line drawing? Generative AI needs more than just keywords.

## General LLM instructions {#llm-instruction-guidelines__section_stk_mpt_pfc}

Use instructions or questions to tell the LLM what you want. They can include four parts:

Goal
:   What kind of result do you want from the LLM?
:   Example: <kbd class="ph userinput">I want a list of 3-5 bullet points to prepare me...</kbd>

Context
:   Why do you need it, and who is involved?
:   Example: <kbd class="ph userinput">...for an upcoming meeting with [client], focusing on their current state and what they're looking to achieve with their "Phase 3+" brand campaign.</kbd>

Expectations
:   How should the LLM best fulfill your request?
:   Example: <kbd class="ph userinput">Please use simple language so I can get up to speed quickly.</kbd>

Source
:   What information or other resources would you like the LLM to use?
: Example: <kbd class="ph userinput">Focus on email and Teams chats with [people] since June.</kbd>  
Figure 1. Sample LLM instructions

Continually test and refine your instructions. Creating good LLM instructions is an iterative process, and as the LLM model learns, you may want to modify your instructions over time.

## Stating your goal {#llm-instruction-guidelines__section_mf5_xl5_pfc}

When constructing an LLM description or instruction, consider these basic guidelines.

* Lead with action verbs. Use the imperative form or direct commands.
* Be direct and use simple sentences rather than complex ones.
* Be specific.
* Don't use jargon or slang terms.
* Avoid references to third parties or pronouns. Removing the subject or any identifiers generally prevents the LLM from personifying or otherwise misidentifying the end user.
* Your words instruct the logic that generative AI will use. Detailed, chain-of-thought instructions work well for this.
{#llm-instruction-guidelines__va-llm-instruction-guidelines_ul_tcg_mvz_kbc}

Instructions should also be tailored to the type of task. The following table describes the different kinds of tasks and the sort of instructions you might write for each circumstance.  
{#llm-instruction-guidelines__table_hph_klj_mbc__entry__3}

| Task type | Description | Example instruction |
|-|-|-|
| Simple search | Simple search for an answer. | When is the next company holiday? |
| Answer | Gather information from multiple sources and provide a summarized answer. | What were the major customer support issues in the past 30 days? |
| Chat | A back-and-forth conversation in which the LLM is getting additional information from the requester. | I have a new phone and now I can't access Okta. |
| Create | Create a new ServiceNow component. | Write a new KB on common reasons for slow query execution and how to fix it, based on problems created in the last 12 months. |
| Workflow | Leverage existing workflows and create conversations from them. | Reset my Okta password. |
[Table 1. Types of generative AI tasks and example instructions]

{#llm-instruction-guidelines__table_hph_klj_mbc}  
Figure 2. LLM instruction workflow

## Providing context in your instructions {#llm-instruction-guidelines__section_ctw_tzk_mbc}

Providing context to the LLM may feel like you are stating the obvious. For example, you may need to explain why your user would want to perform the task, or explain more about what the task is about. If you're using language that
could have alternative meanings, you may want to define your terms. For example, if your instructions are about Microsoft Teams, you may need to say something like, "Teams refers to Microsoft Teams, an application that employees in a company can use to communicate with one another individually or in groups."

When providing context, think about the target audience for the task. This will help you to write better instructions. Mentioning whom the task is for also helps the LLM carry out the task.  
Types of users to consider:

Admins
:   Admins configure skills in the AI Admin Hub console. They work with platform owners and product owners for tasks and requirements. Subject-matter experts check the accuracy of generative AI results. Governance boards or committees may oversee
    final sign-off on the skill.

Builders
:   Builders create assets such as applications and workflows. Their skill level may vary from no-code, low-code, mid-skill, or high-skill. They mostly interact with each other and admins.

Agents
:   Agents provide technical assistance, customer support, or other problem-solving help for users of a product, service, or organization. Agents work with their peers and support many kinds of requesters.

Requesters
:   Requesters may include your organization's employees, partners, or customers. Requesters encounter generative AI mostly in a self-service context. Generative AI provides the opportunity to requesters to solve the problem
    themselves before they resort to asking an agent for help.

In addition, you may need to "instruct" the LLM how to arrive at the kind of answer you want. Detailed chain-of-thought instructions are more likely to produce the results you're looking for. If you make assumptions in your
instructions, your results may vary wildly.  
{#llm-instruction-guidelines__table_kjx_zkq_mbc__entry__2}

| Standard instructions | Chain-of-thought instructions |
|-|-|
| Q: Start with 5 tennis balls. Buy 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls are there now? A: The answer is 11. Q: The cafeteria had 23 apples. If the cafeteria used 20 to make lunch and bought 6 more, how many apples does the cafeteria have? | Q: Start with 5 tennis balls. Buy 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls are there now? A: There are 5 balls. 2 cans of 3 tennis balls each is 6 tennis balls. 5+6=11. The answer is 11. Q: The cafeteria had 23 apples. If the cafeteria used 20 to make lunch and bought 6 more, how many apples does the cafeteria have? |
| LLM results (incorrect!) | LLM results (correct!) |
| A: The answer is 27. | A: The cafeteria had 23 apples originally. They used 20 to make lunch. So they had 23-20=3. They bought 6 more apples, so they have 3+6=9. The answer is 9. |
[Table 2. Example of chain-of-thought instructions]

{#llm-instruction-guidelines__table_kjx_zkq_mbc}

## Expectations {#llm-instruction-guidelines__section_ud1_42v_pfc}

You can specify how you want your results to sound and look. For example, you can tell the LLM what kind of tone you want it to use.  
{#llm-instruction-guidelines__section_ud1_42v_pfc__entry__3}

| Instruction | LLM result | Evaluation of result |
|-|-|-|
| Greet the user with a casual, laid-back tone. | Hey there! (: Welcome to May 22, 2024, a Wednesday. Chill and have a great day! | Too casual! |
| Greet the user with a professional, business-like tone. | Good day, welcome to our business. How may I assist you today? | A little too formal. |
| Greet the user with a professional, but friendly tone. | Hello there! I'm glad to assist you today, May 22, 2024. How can I help you? | Great, but I don't want the date. |
| Greet the user with a professional, but friendly tone. Do not include the date. | Hello! I'm here to help. How can I assist you today? | Perfect. |
| Instruction | LLM result | Evaluation of result |
[Table 3. Modifying the tone of LLM results]

In some Now Assist applications, you may have the option to specify formatting. In those cases, you can tell the LLM to provide answers in a bulleted list, for example. Bulleted lists are often easier to read.  
Figure 3. Enabling bulleted list results in the chat summarization skill

## Source {#llm-instruction-guidelines__section_ewl_r2v_pfc}

You can suggest a variety of sources that the LLM should use to find answers, including Microsoft Teams conversations, Microsoft SharePoint Online sites, incidents and cases, and internal knowledge articles. In order for an agent or skill to access all of these sources, an admin must configure access on the instance.

For developers, the sources that a skill or AI agent can access may vary depending on the desired outcome. For example, the incident summarization skill uses the Incident table as its source. AI agents use different tools and
knowledge sources, customized for the task they perform.  
For more information about configuring sources for skill or AI agent use, see the following topic areas:

* [AI Search](https://www.servicenow.com/docs/access?context=overview-ais&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
* [ServiceNow Otto for AI Search](https://www.servicenow.com/docs/access?context=now-assist-ais&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
* [External Content Connectors](https://www.servicenow.com/docs/access?context=ext-cont-connectors-landing-page&version=australia&pubname=australia-platform-administration&ft:locale=en-US)
* [Overview tab in AI Admin Hub](https://www.servicenow.com/docs/BrmFVIgT_98Gz8zdKst5Pw "The AI Admin Hub console provides quick and effortless access to the important information that you need to set up, configure, and monitor ServiceNow Otto applications and features.")
* [AI Agent Studio (legacy)](https://www.servicenow.com/docs/RshCtgpefnbPO35oJg8USg "The ServiceNow AI agents are entities that mimic human-like intelligence by using large language models (LLMs). AI agents can perform tasks that range from simple automated responses to complex problem solving. By using AI agents, you can reduce the workloads of your live agents and help increase their productivity.")
{#llm-instruction-guidelines__ul_nzs_rjv_pfc}

## Additional guidelines for Now Assist skills and tools {#llm-instruction-guidelines__section_axm_fqq_mbc}

{#llm-instruction-guidelines__table_rrb_mrv_xbc__entry__2}

| Skill | Reference |
|-|-|
| App generation | [General guidelines for using app generation](https://www.servicenow.com/docs/access?context=sns-app-gen-guidelines&version=australia&pubname=australia-application-development&ft:locale=en-US) |
| Analytics generation | [Guidelines and example questions](https://www.servicenow.com/docs/access?context=example-questions-generating-dv&version=australia&pubname=australia-now-intelligence&ft:locale=en-US) |
| Catalog item generation | [Suggestions to describe catalog items](https://www.servicenow.com/docs/access?context=how-to-describe-catalog-item&version=australia&pubname=australia-servicenow-platform&ft:locale=en-US) |
| Code generation | [General guidelines for code generation](https://www.servicenow.com/docs/access?context=general-guidelines-code-generation&version=australia&pubname=australia-api-reference&ft:locale=en-US) |
| Flow generation | [Exploring flow generation](https://www.servicenow.com/docs/access?context=exploring-flow-generation&version=australia&pubname=australia-build-workflows&ft:locale=en-US) |
| LLM topic skill for Virtual Agent |   |
| AI Skill Kit | [General guidelines for AI Skill Kit](https://www.servicenow.com/docs/5GQOpNWQnpMOj_jQA1un9g "General guidelines are available to use AI Skill Kit.") |
| RPA bot generation | [General guidelines for RPA bot generation](https://www.servicenow.com/docs/access?context=rpa-bot-generation&version=australia&pubname=australia-integrate-applications&ft:locale=en-US) |
| Test generation | [Design considerations for prompting](https://www.servicenow.com/docs/access?context=tg-prompt-design-considerations&version=australia&pubname=australia-application-development&ft:locale=en-US) |
| UI generation | [General guidelines UI generation](https://www.servicenow.com/docs/access?context=general-guidelines-ui-generation&version=australia&pubname=australia-application-development&ft:locale=en-US) |
[Table 4. Resources for writing LLM instructions for Now Assist skills]

{#llm-instruction-guidelines__table_rrb_mrv_xbc}

