Skip to content

Commit 89302f9

Browse files
Merge branch 'ServiceNowDevProgram:main' into main
2 parents e54e03e + cf5dfcb commit 89302f9

7 files changed

Lines changed: 103 additions & 53 deletions

CONTRIBUTING.md

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
1-
# Contributing
1+
![promptlibrary Banner](https://github.com/user-attachments/assets/247f5479-90ce-4928-a15d-dabeab7797d8)
22

3-
## General requirements
3+
# Contributing to the ServiceNow's GenAI Prompt Library 🎉
44

5-
- Pull requests should be **only** to add or modify files inside the `Prompts` folder.
6-
- The filename **must** be a description of what the prompt does.
7-
- Filenames should not have special characters that are not allowed on normal file systems (eg. do not put ! in the file name).
8-
- No low-effort submissions.
9-
- example of low-effort: "Generate discussion topics about ServiceNow"
10-
- example of good-effort: including an example of what you are looking for, giving context of what this will be used for, giving a goal with the prompt, adding what kind of audience would be benefitting from this, etc.
5+
Thank you for your interest in contributing to the Prompt Library! We appreciate your help in making this resource better for everyone. 🙌
116

12-
## Recommendations
7+
## How to Contribute
138

14-
Need some guidance? The RISEN framework helps structure tasks for generative AI into actionable steps:
9+
### 1. Think of a Prompt 💭
1510

16-
- **R** — Role: Define the AI's role. (e.g., "Act as an agile coach.")
17-
- **I** — Instructions: Provide clear instructions. (e.g., "Write a guide on crafting a good agile development story.")
18-
- **S** — Steps: Outline specific steps. (e.g., "Start with a user persona, describe the user's goal, list the tasks to achieve the goal, and define the acceptance criteria.")
19-
- **E** — End goal: State the goal and audience. (e.g., "Help team members understand how to write clear and effective agile stories.")
20-
- **N** — Narrowing: Add constraints. (e.g., "Max 800 words, avoid technical jargon, use practical examples.")
11+
Consider a prompt you frequently use in your day-to-day work as a ServiceNow professional. This could include:
12+
13+
- Prompts that help write emails ✉️.
14+
- Prompts for generating specific code snippets 💻.
15+
- Prompts that assist in creating documentation 📚.
16+
- Prompts tailored for using providers like ChatGPT with your ServiceNow experience.
17+
18+
For inspiration, you can view the top-voted prompts in the library [here](https://communityresources.service-now.com/ai?id=library&display=10&sort=true).
19+
20+
### 2. Submit a Prompt 📥
21+
22+
To submit your prompt, follow these steps:
23+
24+
#### Creating a New File
25+
26+
1. **Fork the Repository:** Click the "Fork" button at the top right of this page to create your own copy of the repository.
27+
2. **Create a New Branch:** In your forked repository, create a new branch for your prompt submission.
28+
3. **Add a New File:** Navigate to the `Prompts` folder in your branch and create a new file. Make sure to follow the guidelines outlined below to ensure your submission is acceptable.
29+
![Creating a file](https://github.com/user-attachments/assets/64a259da-7ff8-491c-91ba-eddf1414219e)
30+
4. **Submit a Pull Request:** Once your prompt is ready, submit a pull request to the main repository. One of our moderators will review your submission.
31+
32+
<br />
33+
34+
## Guidelines for Submission 📝
35+
36+
- Ensure that your prompt is clear and concise.
37+
- Include any necessary context or examples to help others understand its use.
38+
- Follow the naming conventions and formatting as specified in the repository.
39+
40+
<hr />
41+
42+
### See Your Prompt Live 🌟
43+
44+
Once your submission is accepted, it will immediately appear in the Prompt Library, which can be viewed at [Prompt Library](https://devlink.sn/PromptLibrary).
45+
46+
![Result in Prompt Library](https://github.com/user-attachments/assets/d9606aec-da1c-400c-9ba8-273c663e9807)
47+
48+
Any logged-in user will be able to comment on and vote for your submission, helping to highlight valuable prompts. 👍
49+
50+
### Thank you for contributing to the Prompt Library! We look forward to seeing your creative prompts. 🚀
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Assume the role of a cybersecurity analyst tasked with creating a playbook for managing security incidents in ServiceNow.
2+
The playbook should provide a structured, repeatable process for addressing any type of security incident.
3+
4+
Follow these steps:
5+
6+
1. Detection: Define how to identify and validate a wide range of security incidents, including proper documentation.
7+
2. Analysis: Guide the team through assessing scope, impact, and root cause, using logs and relevant tools.
8+
3. Containment: Outline short-term and long-term strategies to prevent the threat from spreading.
9+
4. Eradication: Provide steps for removing the root cause, such as eliminating malware or securing compromised accounts.
10+
5. Recovery: Describe how to restore affected systems and validate that the environment is secure and operational.
11+
6. Post-Incident Review: Include a process for conducting a review, capturing lessons learned, and identifying improvements for future incidents.
12+
13+
The playbook should provide IT teams with a clear, repeatable process for addressing security incidents in ServiceNow, ensuring minimal downtime and data loss.
14+
The template should be concise, limited to 600 words, clear, and easy to follow for both technical and non-technical users.
15+
It should provide practical examples without delving too deep into technical jargon.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Prompt for removing all logging statements from a script.
2+
3+
PURPOSE
4+
This prompt would assist developers who use logging statements to troubleshoot issues but forget to remove them from scripts before moving to production.
5+
6+
PROMPT
7+
Review the JavaScript code in <INSERT RECORD HERE> and remove all logging statements that use the gs.log, gs.info, gs.debug, gs.logError and gs.logWarning functions.
8+
Provide the updated script back to me, identifying where logging statements have been removed.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Prompt for summarising my assigned stories for a stand-up meeting.
2+
3+
PURPOSE
4+
As a developer, I have already added all the necessary comments to my stories. This prompt should summarise the current status of my assigned stories using the state and notes fields on the records in order to
5+
provide a summary that would be suitable to present in a stand-up.
6+
7+
PROMPT
8+
You will be presenting a summary of agile stories during a stand-up meeting with the team. Please summarise all of my assigned stories, utilising fields such as state, work notes and comments, focussing on anything
9+
that might be considered a blocker. Keep the response to something that can be presented in 2 to 3 minutes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Prompt to create a description for a catalog item.
2+
3+
PURPOSE
4+
As a developer, lanugage is not always our strongest skill. Often customers are also very vague when it comes to what they want in a description field for a catalog item. Using AI, generate a suitable description
5+
for a catalog item.
6+
7+
PROMPT
8+
You are creating a new catalog item/form with the main audience being non-technical end users. Please provide a customer centric, non-technical description for the catalog item/form whos purpose is the following:
9+
<INSERT DETAILED DESCRIPTION OF CATALOG ITEM/FORM HERE>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
You’re a ServiceNow Virtual Agent developer with extensive experience in creating interactive and user-friendly topics. You have a knack for engaging users while efficiently guiding them through processes based on their needs and preferences. Your goal is to design a ServiceNow Virtual Agent topic that facilitates user interactions regarding requests and incidents seamlessly.
2+
3+
Your task is to create a ServiceNow Virtual Agent topic that begins by greeting the user and then offers them a choice between creating a Request or creating an Incident. If the user chooses to create an Incident, the topic should redirect the user to the Create Incident Record Producer on the Service Portal. Conversely, if the user opts to create a Request, it should prompt the user for a description of the request, recommend relevant catalog items based on the description, and subsequently ask the user to select the required catalog item before redirecting them to the Service Portal page for fulfillment.
4+
5+
Please keep in mind the following details while creating the topic flow:
6+
- The initial greeting should be friendly and welcoming.
7+
- Ensure that the options are clear and concise for easy user selection.
8+
- When collecting the request description, encourage the user to provide as much detail as possible for accurate recommendations.
9+
- Use appropriate ServiceNow terminology to maintain professionalism.
10+
- The flow should be straightforward and guide the user without overwhelming them.
11+
12+
Here’s a structured flow for the ServiceNow Virtual Agent topic:
13+
- Greeting: “Hello! How can I assist you today?”
14+
- Ask for the user’s choice: “Would you like to create a Request or an Incident?”
15+
- Based on the user’s selection, provide the appropriate redirect or prompt:
16+
- If Incident is chosen: “You’ve chosen to create an Incident. Redirecting you to the Create Incident Record Producer on the Service Portal…”
17+
- If Request is chosen: “Please provide a description of the request you would like to create: .” Based on the description, recommend catalog items like: “Based on your description, here are some relevant catalog items: . Please select the required catalog item: and I will redirect you to the Service Portal page for fulfillment.”

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,3 @@ The Prompt Library itself, is a community-driven hub for ServiceNow professional
1010

1111
Note, this repository _can_ be installed on your ServiceNow instance but contributions to this repository are for **Prompt Submission only**. See [CONTRIBUTING.md](CONTRIBUTING.md) for full details.
1212

13-
## Contributing process
14-
15-
### Think of a prompt
16-
17-
Have a prompt you use often in your day-to-day work as a ServiceNow professional?
18-
19-
Examples:
20-
- Prompts that write emails for you
21-
- Prompts that generate very specific code snippets
22-
- Prompts that help you create documentation
23-
- Prompts that help you tailor providers like ChatGPT to your ServiceNow experience specifically
24-
- Etc.
25-
26-
That's what we're looking for! If you want examples, you can see the top-voted ones at the library at this link: https://communityresources.service-now.com/ai?id=library&display=10&sort=true
27-
28-
### Submit a prompt
29-
30-
In this repository, create a new file in the `Prompts` folder and submit it.
31-
32-
![Creating a file](https://github.com/user-attachments/assets/64a259da-7ff8-491c-91ba-eddf1414219e)
33-
34-
35-
#### How to submit (walkthrough)
36-
37-
1. Fork this repo
38-
2. Create a new branch on your forked repo
39-
3. Add a new file to your `Prompts` folder. Make sure to follow all the instructions on [CONTRIBUTING.md](CONTRIBUTING.md) to ensure your submission is acceptable.
40-
4. Submit a pull request!
41-
42-
One of our moderators will then review your pull request.
43-
44-
### See it live in the Prompt Library
45-
46-
Accepted submissions/pull requests will immediately be visible at the Prompt Library at https://devlink.sn/PromptLibrary
47-
48-
![Result in Prompt Library](https://github.com/user-attachments/assets/d9606aec-da1c-400c-9ba8-273c663e9807)
49-
50-
Any logged in user will be able to comment and vote on your submission!

0 commit comments

Comments
 (0)